update tag info add reserved

This commit is contained in:
aichy126 2022-11-15 19:00:48 +08:00
parent 9e5196c0c2
commit 2abec78482
2 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ type TagResp struct {
// if main tag slug name is not empty, this tag is synonymous with the main tag
MainTagSlugName string `json:"main_tag_slug_name"`
Recommend bool `json:"recommend"`
Reserved bool `json:"reserved"`
}
type SearchResp struct {

View File

@ -181,6 +181,7 @@ func (ts *TagCommonService) GetObjectTag(ctx context.Context, objectId string) (
DisplayName: tagInfo.DisplayName,
MainTagSlugName: tagInfo.MainTagSlugName,
Recommend: tagInfo.Recommend,
Reserved: tagInfo.Reserved,
})
}
return objTags, nil