mirror of https://gitee.com/answerdev/answer.git
update tag info add reserved
This commit is contained in:
parent
9e5196c0c2
commit
2abec78482
|
@ -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