- add param storeID to RefreshMissingDadaStores

This commit is contained in:
gazebo
2019-02-18 21:29:11 +08:00
parent 2a458d8c93
commit f8071859a3

View File

@@ -291,14 +291,15 @@ func (c *StoreController) DeleteStoreCourierMap() {
// @Title 根据绑定的京东定,自动创建达达店
// @Description 根据绑定的京东定,自动创建达达店
// @Param token header string true "认证token"
// @Param isAsync query bool true "是否异步操作"
// @Param isContinueWhenError query bool false "单个同步失败是否继续缺省false"
// @Param storeID formData int false "门店ID"
// @Param isAsync formData bool false "是否异步操作"
// @Param isContinueWhenError formData bool false "单个同步失败是否继续缺省false"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /RefreshMissingDadaStores [put]
func (c *StoreController) RefreshMissingDadaStores() {
c.callRefreshMissingDadaStores(func(params *tStoreRefreshMissingDadaStoresParams) (retVal interface{}, errCode string, err error) {
retVal, err = cms.RefreshMissingDadaStores(params.Ctx, 0, params.IsAsync, params.IsContinueWhenError)
retVal, err = cms.RefreshMissingDadaStores(params.Ctx, params.StoreID, params.IsAsync, params.IsContinueWhenError)
return retVal, "", err
})
}