- prevent modify promotion store sku. lack callback handler

This commit is contained in:
gazebo
2018-11-06 14:36:21 +08:00
parent d48b867dae
commit ae267dcdbe
6 changed files with 172 additions and 16 deletions

View File

@@ -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
})