Skip to content

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.

update tags

aichy1267fc5dbbf6375
diff --git a/internal/schema/tag_schema.go b/internal/schema/tag_schema.go
index 8e768ce0..021f8bca 100644
--- a/internal/schema/tag_schema.go
+++ b/internal/schema/tag_schema.go
@@ -271,7 +271,8 @@ type GetFollowingTagsResp struct {
}
type SearchTagLikeResp struct {
- SlugName string `json:"slug_name"`
- Recommend bool `json:"recommend"`
- Reserved bool `json:"reserved"`
+ SlugName string `json:"slug_name"`
+ DisplayName string `json:"display_name"`
+ Recommend bool `json:"recommend"`
+ Reserved bool `json:"reserved"`
}
diff --git a/internal/service/tag_common/tag_common.go b/internal/service/tag_common/tag_common.go
index da7ec466..593157b2 100644
--- a/internal/service/tag_common/tag_common.go
+++ b/internal/service/tag_common/tag_common.go
@@ -88,6 +88,7 @@ func (ts *TagCommonService) SearchTagLike(ctx context.Context, req *schema.Searc
for _, tag := range tags {
item := schema.SearchTagLikeResp{}
item.SlugName = tag.SlugName
+ item.DisplayName = tag.DisplayName
item.Recommend = tag.Recommend
item.Reserved = tag.Reserved
resp = append(resp, item)