- UpdateStoresSkusByBind
This commit is contained in:
@@ -217,6 +217,26 @@ func (c *StoreSkuController) UpdateStoresSkus() {
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 按门店商品维度批量修改多商家商品绑定
|
||||
// @Description 按门店商品维度批量修改多商家商品绑定
|
||||
// @Param token header string true "认证token"
|
||||
// @Param payload formData string true "json数据,StoreSkuBindInfo对象数组"
|
||||
// @Param isContinueWhenError formData bool false "单个同步失败是否继续,缺省false"
|
||||
// @Param isAsync formData bool false "是否异步操作"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /UpdateStoresSkusByBind [put]
|
||||
func (c *StoreSkuController) UpdateStoresSkusByBind() {
|
||||
c.callUpdateStoresSkusByBind(func(params *tStoreSkuUpdateStoresSkusByBindParams) (retVal interface{}, errCode string, err error) {
|
||||
var skuBindInfos []*cms.StoreSkuBindInfo
|
||||
if err = jxutils.Strings2Objs(params.Payload, &skuBindInfos); err != nil {
|
||||
return retVal, "", err
|
||||
}
|
||||
retVal, err = cms.UpdateStoresSkusByBind(params.Ctx, skuBindInfos, params.IsAsync, params.IsContinueWhenError)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 拷贝门店SKU信息
|
||||
// @Description 拷贝门店SKU信息(此函数当前只是本地数据操作,要同步到远端需要调用SyncStoresSkus)
|
||||
// @Param token header string true "认证token"
|
||||
|
||||
Reference in New Issue
Block a user