This commit is contained in:
suyl
2021-09-07 16:30:31 +08:00
parent 4288f1307d
commit 0fcc8291eb
5 changed files with 70 additions and 7 deletions

View File

@@ -527,3 +527,21 @@ func (c *ActController) GetActEbaiVendorSku() {
return retVal, "", err
})
}
// @Title 刷新平台活动
// @Description 刷新平台活动
// @Param token header string true "认证token"
// @Param vendorID query int true "平台ID"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /RefreshVendorAct [post]
func (c *ActController) RefreshVendorAct() {
c.callRefreshVendorAct(func(params *tActRefreshVendorActParams) (retVal interface{}, errCode string, err error) {
if params.VendorID == model.VendorIDMTWM {
act.RrefreshMtwmVendorAct(params.Ctx)
} else {
act.RrefreshEbaiVendorAct(params.Ctx)
}
return retVal, "", err
})
}