不用补改价
This commit is contained in:
@@ -233,6 +233,27 @@ func (c *StoreSkuController) UpdateStoresSkus() {
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 批量修改多商家商品绑定(不同步)
|
||||
// @Description 批量修改多商家商品绑定(不同步)
|
||||
// @Param token header string true "认证token"
|
||||
// @Param storeIDs formData string true "门店ID列表"
|
||||
// @Param payload formData string true "json数据,StoreSkuBindInfo对象数组"
|
||||
// @Param isRefreshHigh formData bool true "是否只刷门店价高于给的价"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /UpdateStoresSkusWithoutSync [put]
|
||||
func (c *StoreSkuController) UpdateStoresSkusWithoutSync() {
|
||||
c.callUpdateStoresSkusWithoutSync(func(params *tStoreSkuUpdateStoresSkusWithoutSyncParams) (retVal interface{}, errCode string, err error) {
|
||||
var storeIDs []int
|
||||
var skuBindInfos []*cms.StoreSkuBindInfo
|
||||
if err = jxutils.Strings2Objs(params.StoreIDs, &storeIDs, params.Payload, &skuBindInfos); err != nil {
|
||||
return retVal, "", err
|
||||
}
|
||||
err = cms.UpdateStoresSkusWithoutSync(params.Ctx, storeIDs, skuBindInfos)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 按门店商品维度批量修改多商家商品绑定
|
||||
// @Description 按门店商品维度批量修改多商家商品绑定
|
||||
// @Param token header string true "认证token"
|
||||
|
||||
Reference in New Issue
Block a user