Merge branch 'ai/0.4.0/tag' into 'test'

update tag info add reserved

See merge request opensource/answer!238
This commit is contained in:
aichy 2022-11-15 11:06:57 +00:00
commit 5f1ebbd950
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