- RefreshStoresSkuByVendor

This commit is contained in:
gazebo
2019-05-17 17:09:33 +08:00
parent 40d02beee0
commit 0ed0d40a2d
13 changed files with 362 additions and 12 deletions

View File

@@ -304,3 +304,22 @@ func (c *StoreSkuController) HandleStoreOpRequest() {
return retVal, "", err
})
}
// @Title 根据厂家门店商品信息相应刷新本地数据
// @Description 根据厂家门店商品信息相应刷新本地数据
// @Param token header string true "认证token"
// @Param storeIDs formData string true "门店ID列表"
// @Param vendorID formData int true "厂商ID当前只支持京东"
// @Param isAsync formData bool false "是否异步操作"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /RefreshStoresSkuByVendor [put]
func (c *StoreSkuController) RefreshStoresSkuByVendor() {
c.callRefreshStoresSkuByVendor(func(params *tStoreSkuRefreshStoresSkuByVendorParams) (retVal interface{}, errCode string, err error) {
var storeIDList []int
if err = jxutils.Strings2Objs(params.StoreIDs, &storeIDList); err == nil {
retVal, err = cms.RefreshStoresSkuByVendor(params.Ctx, storeIDList, params.VendorID, params.IsAsync)
}
return retVal, "", err
})
}