You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/11/30 07:58:00 UTC
[GitHub] [apisix-dashboard] nic-chen commented on a change in pull request #902: fix: make field ID compatible with both string and int
nic-chen commented on a change in pull request #902:
URL: https://github.com/apache/apisix-dashboard/pull/902#discussion_r532403337
##########
File path: api/internal/core/entity/entity.go
##########
@@ -17,24 +17,30 @@
package entity
import (
+ "reflect"
"time"
"github.com/apisix/manager-api/internal/utils"
)
type BaseInfo struct {
- ID string `json:"id"`
- CreateTime int64 `json:"create_time"`
- UpdateTime int64 `json:"update_time"`
+ ID interface{} `json:"id"`
Review comment:
Hi, @tokers
we support id as any string not only number.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org