- RefreshPromotionStatus
- call UpdatePromotionStatusFromRemote in LockPromotionSkus.
This commit is contained in:
@@ -175,3 +175,17 @@ func (c *PromotionController) LockPromotionSkus() {
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 锁定解锁活动SKU
|
||||
// @Description 锁定解锁活动SKU
|
||||
// @Param token header string true "认证token"
|
||||
// @Param promotionID formData int true "活动id"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /RefreshPromotionStatus [put]
|
||||
func (c *PromotionController) RefreshPromotionStatus() {
|
||||
c.callRefreshPromotionStatus(func(params *tPromotionRefreshPromotionStatusParams) (retVal interface{}, errCode string, err error) {
|
||||
err = promotion.UpdatePromotionStatusFromRemote(params.Ctx, params.PromotionID)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user