mirror of https://gitee.com/answerdev/answer.git
question tags add recommend
This commit is contained in:
parent
2f6448b2c7
commit
d701ae60fb
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue