+FixMtwmCategory

This commit is contained in:
gazebo
2019-10-17 18:50:33 +08:00
parent 54bee1e26f
commit 85f78bbaa4
3 changed files with 107 additions and 0 deletions

View File

@@ -333,3 +333,22 @@ func (c *TempOpController) CheckStoreAlert() {
return retVal, "", err
})
}
// @Title 修复美团商品分类(emoji)
// @Description 修复美团商品分类(emoji)
// @Param token header string true "认证token"
// @Param mtwmStoreIDs formData string false "门店列表"
// @Param isAsync formData bool false "是否异步操作"
// @Param isContinueWhenError formData bool false "单个同步失败是否继续缺省false"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /FixMtwmCategory [post]
func (c *TempOpController) FixMtwmCategory() {
c.callFixMtwmCategory(func(params *tTempopFixMtwmCategoryParams) (retVal interface{}, errCode string, err error) {
var mtwmStoreIDs []int
if err = jxutils.Strings2Objs(params.MtwmStoreIDs, &mtwmStoreIDs); err == nil {
retVal, err = tempop.FixMtwmCategory(params.Ctx, mtwmStoreIDs, params.IsAsync, params.IsContinueWhenError)
}
return retVal, "", err
})
}