文档
测试

优惠券

POST
http://localhost:8080/app/userCenter/myCoupon/detail

请求参数

参数名
类型
描述
必填
user_id
string
当前登录用户id 示例:4c3dcd469f894c5689b1c96e74716cda
必填
page
int
当前页数 示例:1
必填
limit
int
每页加载条数 示例:6
必填
coupon_status
int
优惠券状态 优惠券状态 -1全部 0待使用 1已使用 2已过期 示例:-1
必填
sign
string
请求接口签名 示例:91f06c8b66989aee898a4ba0f1993443
必填

响应参数

参数名
类型
描述
必填
code
int
示例:1
必填
errors
object
数据字典
必填
msg
string
示例:操作成功
必填
result
object
数据字典
必填
coupon_list
array
优惠券列表
必填
coupon_amount
double
优惠券面值 示例:5
必填
coupon_title
string
优惠券标题 示例:惠拼优选优惠券
必填
use_condition
string
使用条件 示例:需订单金额大于200.0元
必填
expire_time
string
过期时间 示例:2022-08-31 10:08:22
必填
coupon_status
int
优惠券状态 0待使用 1已使用 2已过期 示例:0
必填

说明 / 示例

{ "code": 1, "errors": { }, "msg": "操作成功", "result": { "coupon_list": [ { "coupon_amount": 5, "coupon_title": "惠拼优选优惠券", "use_condition": "需订单金额大于200.0元", "expire_time": "2022-08-31 10:08:22", "coupon_status": 0 }, { "coupon_amount": 500, "coupon_title": "惠拼优选优惠券", "use_condition": "需订单金额大于500.0元", "expire_time": "", "coupon_status": 0 }, { "coupon_amount": 8, "coupon_title": "惠拼优选优惠券", "use_condition": "需订单金额大于80.0元", "expire_time": "2022-08-31 10:08:22", "coupon_status": 0 }, { "coupon_amount": 500, "coupon_title": "惠拼优选优惠券", "use_condition": "需订单金额大于500.0元", "expire_time": "", "coupon_status": 0 }, { "coupon_amount": 10, "coupon_title": "惠拼优选优惠券", "use_condition": "需订单金额大于500.0元", "expire_time": "", "coupon_status": 0 }, { "coupon_amount": 500, "coupon_title": "惠拼优选优惠券", "use_condition": "需订单金额大于500.0元", "expire_time": "", "coupon_status": 0 } ] } }