- 出行纪元APP-API
- APP系统数据
- 用户模块
- 收货地址
- 购物车
- 商品收藏
- 优惠券
- 视频
- 足迹
- 收藏
- 关注/粉丝
- 设置备注
- 资料相关
- 设置相关
- 新建合集
- 金币打赏
- 补充相关
- 闪照
- 博客音乐
- 热闻模块
- 公用接口
- 登录退出
- 视频模块
- 商城模块
- 第三方API
- 微信支付
优惠券列表
GET
/app/user/api/v1/coupon/list
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Query 参数
pageNum
integer
页数
示例值:
1
pageSize
integer
条数
示例值:
10
type
string
可选
示例值:
0
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://47.93.16.76:8080/app/user/api/v1/coupon/list?pageNum=1&pageSize=10&type=0'
返回响应
🟢200成功
application/json
Body
msg
string
必需
code
integer
必需
data
array [object {9}]
必需
createTime
string
获得时间
id
integer
主键ID
userId
integer
用户ID
couponId
integer
优惠券ID
goodsCoupon
object
优惠券信息
status
string
可选
usedTime
null
使用时间
startTime
string
开始时间
endTime
string
过期时间
示例
{
"msg": "操作成功",
"code": 200,
"data": [
{
"createBy": null,
"createTime": "2023-11-30 17:37:59",
"updateBy": null,
"updateTime": null,
"remark": null,
"id": 2,
"userId": 1,
"couponId": 10,
"goodsCoupon": {
"createBy": null,
"createTime": "2023-11-30 17:37:16",
"updateBy": null,
"updateTime": null,
"remark": null,
"id": 10,
"couponName": "全场通用",
"discount": 10,
"consumptionAmount": 200,
"status": "0",
"effectiveDays": 7,
"delFlag": "0"
},
"orderId": null,
"status": "0",
"usedTime": null,
"startTime": "2023-11-30",
"endTime": "2023-12-06"
},
{
"createBy": null,
"createTime": "2023-11-30 17:36:51",
"updateBy": null,
"updateTime": null,
"remark": null,
"id": 1,
"userId": 1,
"couponId": 9,
"goodsCoupon": {
"createBy": null,
"createTime": "2023-11-30 16:49:45",
"updateBy": null,
"updateTime": null,
"remark": null,
"id": 9,
"couponName": "全场通用",
"discount": 10,
"consumptionAmount": 100,
"status": "0",
"effectiveDays": 7,
"delFlag": "0"
},
"orderId": null,
"status": "0",
"usedTime": null,
"startTime": "2023-11-30",
"endTime": "2023-12-06"
}
]
}
修改于 2023-12-07 06:01:06