避免标签为空时,未返回{data:[]}结构

This commit is contained in:
ioito
2019-04-19 11:21:47 +08:00
parent 6b8ed262e3
commit 74fdcd97b7
+1 -1
View File
@@ -117,7 +117,7 @@ func (manager *SMetadataManager) GetPropertyTagValuePairs(ctx context.Context, u
Data []struct {
Key string
Value string
}
} `json:"data,allowempty"`
}{
Total: 0,
Data: []struct {