This commit is contained in:
suyl
2021-09-03 10:41:05 +08:00
parent 0fc51af382
commit fcd4a01de6

View File

@@ -1289,7 +1289,7 @@ func (c *StoreController) UpdateBrandCategoryMap() {
// @Failure 200 {object} controllers.CallResult
// @router /ReorderBrandCategories [put]
func (c *StoreController) ReorderBrandCategories() {
c.callReorderBrandCategories(func(params *tSkuReorderBrandCategoriesParams) (retVal interface{}, errCode string, err error) {
c.callReorderBrandCategories(func(params *tStoreReorderBrandCategoriesParams) (retVal interface{}, errCode string, err error) {
var idList []int
if err = utils.UnmarshalUseNumber([]byte(params.CategoryIDs), &idList); err == nil {
err = cms.ReorderBrandCategories(params.Ctx, params.CategoryID, params.BrandID, idList)