- SendAdvertingByGoodsOrder
This commit is contained in:
@@ -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:全部,0:60天,缺省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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user