tianxiaoliang commented on a change in pull request #126: modify the return
body format of kv and history
URL: https://github.com/apache/servicecomb-kie/pull/126#discussion_r398275796
##########
File path: pkg/model/kv.go
##########
@@ -55,16 +57,18 @@ type ViewResponse struct {
//DocResponseSingleKey is response doc
type DocResponseSingleKey struct {
- CreateRevision int64 `json:"create_revision"`
- CreateTime string `json:"create_time"`
- ID string `json:"id"`
- Key string `json:"key"`
- LabelID string `json:"label_id"`
- Labels map[string]string `json:"labels"`
- UpdateRevision int64 `json:"update_revision"`
- UpdateTime string `json:"update_time"`
- Value string `json:"value"`
- ValueType string `json:"value_type"`
+ CreateRevision int64 `json:"create_revision"
bson:"create_revision" yaml:"create_revision"`
+ CreateTimestamp int64 `json:"create_time,omitempty"
bson:"create_time" yaml:"create_time,omitempty"`
Review comment:
CreateTimestamp CreateTim都有,但是对应的文档名是一个,混乱了
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services