添加API SyncStoresCourierInfo

This commit is contained in:
gazebo
2019-10-11 16:12:09 +08:00
parent 7946ab6207
commit 470f54f705
9 changed files with 124 additions and 7 deletions

View File

@@ -510,3 +510,22 @@ func (c *StoreController) GetStoreAlertList() {
return retVal, "", err
})
}
// @Title 同步快递平台门店信息并报警
// @Description 同步快递平台门店信息并报警
// @Param token header string true "认证token"
// @Param storeIDs formData string false "京西门店ID列表必须非空值"
// @Param isAsync formData bool false "是否异步操作"
// @Param isContinueWhenError formData bool false "单个同步失败是否继续缺省false"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /SyncStoresCourierInfo [post]
func (c *StoreController) SyncStoresCourierInfo() {
c.callSyncStoresCourierInfo(func(params *tStoreSyncStoresCourierInfoParams) (retVal interface{}, errCode string, err error) {
var storeIDs []int
if err = jxutils.Strings2Objs(params.StoreIDs, &storeIDs); err == nil {
retVal, err = cms.SyncStoresCourierInfo(params.Ctx, storeIDs, params.IsAsync, params.IsContinueWhenError)
}
return retVal, "", err
})
}