aa
This commit is contained in:
@@ -284,3 +284,18 @@ func (c *JxOrderController) TestDefend() {
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 查询优惠券
|
||||
// @Description 查询优惠券
|
||||
// @Param token header string true "认证token"
|
||||
// @Param couponType query int false "优惠券类型,1为商品总额满减,2为运费优惠"
|
||||
// @Param keyword query string false "关键字"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /GetCoupons [get]
|
||||
func (c *JxOrderController) GetCoupons() {
|
||||
c.callGetCoupons(func(params *tJxorderGetCouponsParams) (retVal interface{}, errCode string, err error) {
|
||||
retVal, err = localjx.GetCoupons(params.Ctx, params.CouponType, params.Keyword)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user