饿鲜达分类查询初尝试

This commit is contained in:
苏尹岚
2020-02-13 16:44:21 +08:00
parent 79ec7ec932
commit f78d71d191
5 changed files with 12 additions and 7 deletions

View File

@@ -33,6 +33,7 @@ func (c *SkuController) GetVendorCategories() {
// @Description 得到商品类别区别于厂商家SKU类别
// @Param token header string false "认证token"
// @Param parentID query int false "父ID-1表示所有缺省为-1"
// @Param isExd query bool false "是否要查饿鲜达分类"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetCategories [get]
@@ -41,7 +42,7 @@ func (c *SkuController) GetCategories() {
if c.GetString("parentID") == "" {
params.ParentID = -1
}
retVal, err = cms.GetCategories(params.Ctx, params.ParentID)
retVal, err = cms.GetCategories(params.Ctx, params.ParentID, params.IsExd)
return retVal, "", err
})
}