This commit is contained in:
laodaming 2023-07-19 19:33:26 +08:00
parent 31132364ad
commit 3bd08c8c2b
3 changed files with 5 additions and 5 deletions

View File

@ -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), //组装等级从属关系
})
}

View File

@ -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 {

View File

@ -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"`