adminCoupons - TimYi/FengHuang GitHub Wiki
请求URL
http://101.200.229.135:8080/api/admin/coupons
字段说明
字段分为显示和保存两部分。
保存字段会有一些关联实体的id,显示字段会把一些关联实体的内容扁平化显示。
显示字段
id:id
name:优惠券名称
couponsMoney:优惠金额
expireTime:过期时间
expired:是否过期
used:是否使用
readed:用户是否已读
user:用户信息
传参字段
id:id
name:优惠券名称
couponsMoney:优惠金额
expireTime:过期时间
expired:是否过期
used:是否使用
userId:用户Id
返回示例
{
"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"
}