diff --git a/server/product/internal/logic/gettagproductlistlogic.go b/server/product/internal/logic/gettagproductlistlogic.go index 34b03831..96f48d25 100644 --- a/server/product/internal/logic/gettagproductlistlogic.go +++ b/server/product/internal/logic/gettagproductlistlogic.go @@ -165,7 +165,7 @@ func (l *GetTagProductListLogic) GetTagProductList(req *types.GetTagProductListR return resp.SetStatusAddMessage(basic.CodeServiceErr, "failed to deal with tag data") } return resp.SetStatusWithMessage(basic.CodeOK, "success", types.GetTagProductListRsp{ - TotalCategory: len(mapTagLevel), + TotalCategoryProduct: len(productList), TagList: l.organizationLevelRelation(mapTagLevel), //组装等级从属关系 }) } diff --git a/server/product/internal/types/types.go b/server/product/internal/types/types.go index 5802ad5f..b1e3d42f 100644 --- a/server/product/internal/types/types.go +++ b/server/product/internal/types/types.go @@ -251,8 +251,8 @@ type GetTagProductListReq struct { } type GetTagProductListRsp struct { - TotalCategory int `json:"total_category"` - TagList []TagItem `json:"tag_list"` + TotalCategoryProduct int `json:"total_category_product"` + TagList []TagItem `json:"tag_list"` } type TagItem struct { diff --git a/server_api/product.api b/server_api/product.api index aec9f87e..1d7f60a7 100644 --- a/server_api/product.api +++ b/server_api/product.api @@ -296,8 +296,8 @@ type GetTagProductListReq { WithProduct bool `form:"with_product,optional"` //是否携带分类下的产品 } type GetTagProductListRsp { - TotalCategory int `json:"total_category"` - TagList []TagItem `json:"tag_list"` + TotalCategoryProduct int `json:"total_category_product"` + TagList []TagItem `json:"tag_list"` } type TagItem { TypeName string `json:"type_name"`