🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## :-: **获取我的优惠券** ~~~[api] get:/index/User/coupon *varchar:token=100069&950b09e3299fe283065b2d1255516e53#登录密钥 *tinyint:status=1#1=未使用;0=已过期;-1=已使用 <<< ssuccess { "code": 1, "msg": "获取成功", "data": [ { "id": 1, "user_id": 2, "coupon_id": 1, "status": 1, "difference": 1, "coupon": { "id": 1, "name": "ACTEV优惠券", "full_price": "300.00", "price": "1.00", "info": "满300元立减30", "is_over": 1, "begin_time": "2019-10-15 14:12:35", "over_time": "2019-10-18 00:00:00", "difference": 1 } }, { "id": 2, "user_id": 2, "coupon_id": 3, "status": 1, "difference": 1, "coupon": { "id": 3, "name": "通用商城优惠券", "full_price": "300.00", "price": "1.00", "info": "通用商城优惠券", "is_over": 1, "begin_time": "2019-10-15 17:35:39", "over_time": "2019-10-16 00:00:00", "difference": 1 } } ] } ~~~ ### 返回字段说明 | 字段 | 说明 | | --- | --- | | user_id | 用户ID | | coupon_id | 优惠券ID | | status | 1=未使用;0=已过期;-1=已使用 | | coupon | 优惠券信息 | | name | 优惠券名字 | | full_price | 达标金额 | | price | 优惠价格 | | info | 优惠详情 | | site | 活动地址 | | is_over | 1=进行中;0=已过期| |begin_time | 优惠券起始时间 | |over_time | 优惠券过期时间 |