- SendAdvertingByGoodsOrder

This commit is contained in:
gazebo
2018-10-19 20:15:30 +08:00
parent 68db928187
commit 3f94410904
3 changed files with 111 additions and 0 deletions

View File

@@ -84,3 +84,19 @@ func (c *PromotionController) CreatePromotionByExcel() {
})
}
}
// @Title 创建促销
// @Description 创建促销
// @Param token header string true "认证token"
// @Param advertising formData string true "广告语"
// @Param days formData int false "多少天以内订单数据中的用户(-1全部060天缺省0"
// @Param isAsync formData bool false "是否异步,缺省否"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /SendAdvertingByGoodsOrder [post]
func (c *PromotionController) SendAdvertingByGoodsOrder() {
c.callSendAdvertingByGoodsOrder(func(params *tPromotionSendAdvertingByGoodsOrderParams) (retVal interface{}, errCode string, err error) {
retVal, err = promotion.SendAdvertingByGoodsOrder(params.Advertising, params.Days, params.IsAsync, GetUserNameFromToken(params.Token))
return retVal, "", err
})
}