- 重构配送门店管理

This commit is contained in:
gazebo
2019-07-23 14:29:58 +08:00
parent 79d81fdd73
commit 22737c7681
13 changed files with 325 additions and 159 deletions

View File

@@ -335,18 +335,19 @@ func (c *StoreController) DeleteStoreCourierMap() {
})
}
// @Title 根据绑定的京东定,自动创建达达
// @Description 根据绑定的京东定,自动创建达达
// @Title 自动创建或更新快递门
// @Description 自动创建或更新快递门
// @Param token header string true "认证token"
// @Param storeID formData int false "门店ID"
// @Param isForceUpdate formData bool false "是否强制更新"
// @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, params.StoreID, params.IsAsync, params.IsContinueWhenError)
// @router /UpdateOrCreateCourierStores [put]
func (c *StoreController) UpdateOrCreateCourierStores() {
c.callUpdateOrCreateCourierStores(func(params *tStoreUpdateOrCreateCourierStoresParams) (retVal interface{}, errCode string, err error) {
retVal, err = cms.UpdateOrCreateCourierStores(params.Ctx, params.StoreID, params.IsForceUpdate, params.IsAsync, params.IsContinueWhenError)
return retVal, "", err
})
}