This commit is contained in:
suyl
2021-08-31 10:26:27 +08:00
parent 03e255519f
commit 2e2a636228
5 changed files with 94 additions and 9 deletions

View File

@@ -1195,3 +1195,18 @@ func (c *StoreController) UpdateBrandUser() {
return retVal, "", err
})
}
// @Title 根据品牌自动创建或更新快递门店
// @Description 根据品牌自动创建或更新快递门店
// @Param token header string true "认证token"
// @Param brandID formData int true "品牌ID"
// @Param vendorID formData int true "平台ID"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /UpdateOrCreateCourierStoresByBrand [post]
func (c *StoreController) UpdateOrCreateCourierStoresByBrand() {
c.callUpdateOrCreateCourierStoresByBrand(func(params *tStoreUpdateOrCreateCourierStoresByBrandParams) (retVal interface{}, errCode string, err error) {
retVal, err = cms.UpdateOrCreateCourierStoresByBrand(params.Ctx, params.BrandID, params.VendorID)
return retVal, "", err
})
}