A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
question tags add recommend
aichy126d701ae60fb28
diff --git a/docs/docs.go b/docs/docs.goindex eb16fc2d..c91f4263 100644--- a/docs/docs.go+++ b/docs/docs.go@@ -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"}diff --git a/docs/swagger.json b/docs/swagger.jsonindex 4428992e..8c12e472 100644--- a/docs/swagger.json+++ b/docs/swagger.json@@ -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"}diff --git a/docs/swagger.yaml b/docs/swagger.yamlindex 03a44709..53f7449a 100644--- a/docs/swagger.yaml+++ b/docs/swagger.yaml@@ -1205,6 +1205,8 @@ definitions:description: if main tag slug name is not empty, this tag is synonymous withthe main tagtype: string+ recommend:+ type: booleanslug_name:type: stringtype: objectdiff --git a/internal/schema/search_schema.go b/internal/schema/search_schema.goindex 5cf8c577..143a93c1 100644--- a/internal/schema/search_schema.go+++ b/internal/schema/search_schema.go@@ -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 tagMainTagSlugName string `json:"main_tag_slug_name"`+ Recommend bool `json:"recommend"`}type SearchResp struct {diff --git a/internal/service/tag_common/tag_common.go b/internal/service/tag_common/tag_common.goindex 4ed9a209..4ed9af2f 100644--- a/internal/service/tag_common/tag_common.go+++ b/internal/service/tag_common/tag_common.go@@ -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