This commit is contained in:
苏尹岚
2021-01-08 18:09:01 +08:00
parent 9f73470bc2
commit b161e4d55a
3 changed files with 25 additions and 0 deletions

View File

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