获取-订单列表
GET
/orders获取-订单列表
请求参数
Query 参数
query
string
搜索关键词
pagenum
string
当前页码
示例值:
1
pagesize
string
当前页数据条数
示例值:
2
Header 参数
Authorization
string
必需
token字符串 例如: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2NTc5Nzg4MjAsImV4cCI6MTY1ODA2NTIyMH0.Pr_IVEw-H4gXY8fNjJpG6YpUlRqCmlEgvfepkUYa3nk
示例值:
{{Pin_ACCESS_TOKEN}}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
data
object
响应数据
total
integer
数据总数
pagenum
string
当前页码
goods
array [object {14}]
数据数组
meta
object
响应提示
msg
string
响应消息
status
integer
业务状态码
200成功, 其他失败
示例
成功示例
{
"data": {
"total": 27,
"pagenum": "1",
"goods": [
{
"order_id": 68,
"user_id": 1,
"order_number": "itcast-g7kmck725jaujgdts",
"order_price": 40,
"order_pay": "0",
"is_send": "否",
"trade_no": "",
"order_fapiao_title": "个人",
"order_fapiao_company": "",
"order_fapiao_content": "",
"consignee_addr": "",
"pay_status": "0",
"create_time": 1512535620,
"update_time": 1512535620
},
{
"order_id": 67,
"user_id": 1,
"order_number": "itcast-g7kmck71vjaujfgoi",
"order_price": 20,
"order_pay": "0",
"is_send": "否",
"trade_no": "",
"order_fapiao_title": "个人",
"order_fapiao_company": "",
"order_fapiao_content": "",
"consignee_addr": "",
"pay_status": "0",
"create_time": 1512533560,
"update_time": 1512533560
}
]
},
"meta": {
"msg": "获取成功",
"status": 200
}
}
最后修改时间: 2 年前