coupons - TimYi/FengHuang GitHub Wiki
请求URL
http://101.200.229.135:8080/api/user/coupons
请求方式
GET
请求参数
token:用户凭据
notUsed:是否只获取未使用且未过期的优惠券,默认为true
返回参数
id:id
name:优惠券名称
couponsMoney:优惠金额
expireTime:过期时间
expired:是否过期
used:是否使用
readed:用户是否已读
user:用户信息
返回示例
{
"result": [
{
"id": "404040e64e2f5993014e2f59a20d0000",
"user": {
"id": "8aac48364dd68c74014dd6c031f10000",
"username": "chxy020",
"verified": true,
"cnname": "TTTTT",
"realName": "DDDD",
"ename": "FFFFF",
"sex": {
"id": "404040e64dd26ab5014dd26ac64e0014",
"name": "女",
"attr": null,
"attr2": null,
"type": "sex"
},
"mobile": "15810880522",
"intro": "fffsdfsfdsdf",
"email": "FFFF",
"qqnum": null,
"qqid": null,
"weixinnum": null,
"weixinid": null,
"birthDay": null,
"bloodType": {
"id": "404040e64dd26ab5014dd26ac3320001",
"name": "A",
"attr": null,
"attr2": null,
"type": "blood"
},
"constellation": {
"id": "404040e64dd26ab5014dd26ac41c0007",
"name": "双鱼座",
"attr": null,
"attr2": null,
"type": "constellation"
},
"avatar": null,
"trade": "",
"address": "",
"expVal": 0,
"integra": 0,
"regTime": "2015-06-09 13:17:09",
"regIp": "211.103.234.234",
"loginTime": "2015-06-26 10:26:08",
"loginip": "211.103.234.234",
"weiboid": null,
"infoComplete": true
},
"name": "测试优惠券",
"couponsMoney": 100,
"expireTime": "2015-06-26 18:11:19",
"expired": true,
"used": false,
"readed": false
}
],
"status": "OK"
}