fix
This commit is contained in:
parent
31132364ad
commit
3bd08c8c2b
|
@ -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), //组装等级从属关系
|
||||
})
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"`
|
||||
|
|
Loading…
Reference in New Issue
Block a user