mirror of https://gitee.com/answerdev/answer.git
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:
commit
5f1ebbd950
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue