饿鲜达分类修改等接口修改

This commit is contained in:
苏尹岚
2020-02-13 17:07:35 +08:00
parent 0477de8916
commit 721c0eda3d
2 changed files with 8 additions and 3 deletions

View File

@@ -87,6 +87,7 @@ func (c *SkuController) UpdateCategory() {
// @Param token header string true "认证token"
// @Param categoryID formData int true "父ID"
// @Param categoryIDs formData string true "同一父类别下的所有子类别ID列表([1,2,3,4])"
// @Param isExd query bool false "是否要查饿鲜达分类"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /ReorderCategories [put]
@@ -94,7 +95,7 @@ func (c *SkuController) ReorderCategories() {
c.callReorderCategories(func(params *tSkuReorderCategoriesParams) (retVal interface{}, errCode string, err error) {
var idList []int
if err = utils.UnmarshalUseNumber([]byte(params.CategoryIDs), &idList); err == nil {
err = cms.ReorderCategories(params.Ctx, params.CategoryID, idList, params.Ctx.GetUserName())
err = cms.ReorderCategories(params.Ctx, params.CategoryID, idList, params.Ctx.GetUserName(), params.IsExd)
}
return retVal, "", err
})