question tags add recommend

This commit is contained in:
aichy126 2022-11-14 16:44:48 +08:00
parent 2f6448b2c7
commit d701ae60fb
5 changed files with 10 additions and 0 deletions

View File

@ -5891,6 +5891,9 @@ const docTemplate = `{
"description": "if main tag slug name is not empty, this tag is synonymous with the main tag",
"type": "string"
},
"recommend": {
"type": "boolean"
},
"slug_name": {
"type": "string"
}

View File

@ -5879,6 +5879,9 @@
"description": "if main tag slug name is not empty, this tag is synonymous with the main tag",
"type": "string"
},
"recommend": {
"type": "boolean"
},
"slug_name": {
"type": "string"
}

View File

@ -1205,6 +1205,8 @@ definitions:
description: if main tag slug name is not empty, this tag is synonymous with
the main tag
type: string
recommend:
type: boolean
slug_name:
type: string
type: object

View File

@ -29,6 +29,7 @@ type TagResp struct {
DisplayName string `json:"display_name"`
// 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"`
}
type SearchResp struct {

View File

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