优惠券列表
开发中/coupon/list
请求参数
Query 参数
status
integer
可选
开启状态 1开启 0未开启
receive_type
integer
可选
优惠券类型 默认为全部 1手动领取 2新人券 3赠送券 4会员券 5购买券
coupon_title
string
优惠券名称
page
string
分页
示例值:
1
limit
string
条数
示例值:
10
Header 参数
authori-zation
string
token
示例值:
Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ0ZXN0LnByby53dWh0Lm5ldCIsImF1ZCI6InRlc3QucHJvLnd1aHQubmV0IiwiaWF0IjoxNjQ5NzQ2MjAyLCJuYmYiOjE2NDk3NDYyMDIsImV4cCI6MTY1MDM1MTAwMiwianRpIjp7ImlkIjoxLCJ0eXBlIjoiYWRtaW4ifX0.-xDXOdYfBNsu3IqF3nMO_E_fop2lxkwNw25fdQpzGVQ
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSON
数据结构
status
integer
状态码
msg
string
信息描述
data
object {2}
返回值
list
array [object {15}]
列表
count
integer
总条数
示例成功示例
{
"status": 200,
"msg": "success",
"data": {
"list": [
{
"id": 3,
"coupon_title": "新人券",
"type": 0,
"coupon_price": "10.00",
"use_min_price": "0.00",
"receive_type": 2,
"is_permanent": 1,
"add_time": 1658301477,
"start_time": 0,
"end_time": 0,
"start_use_time": 0,
"end_use_time": 0,
"coupon_time": 1,
"status": 1,
"total_count": 0,
"remain_count": 0
},
{
"id": 2,
"coupon_title": "不限量优惠券",
"type": 0,
"coupon_price": "10.00",
"use_min_price": "100.00",
"receive_type": 1,
"is_permanent": 1,
"add_time": 1658301118,
"start_time": 1657728000,
"end_time": 1660665600,
"start_use_time": 0,
"end_use_time": 0,
"coupon_time": 5,
"status": 1,
"total_count": 0,
"remain_count": 0
},
{
"id": 1,
"coupon_title": "通用优惠券",
"type": 0,
"coupon_price": "11.00",
"use_min_price": "25.00",
"receive_type": 1,
"is_permanent": 0,
"add_time": 1658300781,
"start_time": 1658332800,
"end_time": 1661184000,
"start_use_time": 0,
"end_use_time": 0,
"coupon_time": 1,
"status": 1,
"total_count": 60,
"remain_count": 60
}
],
"count": 3
}
}
修改时间 2 年前