饿鲜达分类修改等接口修改
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user