- prevent modify promotion store sku. lack callback handler
This commit is contained in:
@@ -140,9 +140,9 @@ func (c *PromotionController) GetPromotions() {
|
||||
// @Param promotionID query int true "活动id"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /CancelPomotion [put]
|
||||
func (c *PromotionController) CancelPomotion() {
|
||||
c.callCancelPomotion(func(params *tPromotionCancelPomotionParams) (retVal interface{}, errCode string, err error) {
|
||||
// @router /CancelPromotion [put]
|
||||
func (c *PromotionController) CancelPromotion() {
|
||||
c.callCancelPromotion(func(params *tPromotionCancelPromotionParams) (retVal interface{}, errCode string, err error) {
|
||||
err = promotion.CancelJdPromotion(params.Ctx, params.PromotionID)
|
||||
return retVal, "", err
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user