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.

fix(#993): incorrect json format name

LinkinStar8c41debd1150
diff --git a/internal/schema/search_schema.go b/internal/schema/search_schema.go
index a75ead91..9fdd5728 100644
--- a/internal/schema/search_schema.go
+++ b/internal/schema/search_schema.go
@@ -27,8 +27,8 @@ type SearchObject struct {
}
type TagResp struct {
- SlugName string `json:"display_name"`
- DisplayName string `json:"slug_name"`
+ SlugName string `json:"slug_name"`
+ 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"`
}