码路前台
  1. 订单
码路前台
  • 登录相关
    • 我的信息
      POST
    • 登录
      POST
    • 注册
      POST
    • 重置密码
      POST
    • 登出
      POST
  • 首页
    • 商品列表(搜索+分类筛选+最新上架+销量倒序)
      POST
    • 轮播图
      POST
    • 分类列表
      POST
  • 商品
    • 详情
      POST
    • 收货地址三级列表
      POST
    • 同类商品推荐
      POST
  • 购物车
    • 购物车列表
      POST
    • 添加购物车
      POST
    • 编辑购物车
      POST
    • 删除购物车
      POST
  • 优惠券
    • 领券
      POST
    • 优惠券列表
      POST
  • 订单
    • 修改订单状态
      POST
    • 创建订单
      POST
    • 我的订单列表
      POST
  • 售后
    • 申请售后
      POST
    • 我的售后列表
      POST
  • 收货地址
    • 添加收货地址
    • 编辑收货地址
    • 删除收货地址
    • 我的收货地址列表
  • 收藏
    • 添加收藏
    • 删除我的收藏(根据id)
    • 删除我的收藏(根据类型+对象id)
    • 我的收藏列表
  • 点赞
    • 点赞
    • 取消点赞(根据id)
    • 取消点赞(根据类型+对象id)
    • 我的点赞列表
  • 评论
    • 评论
    • 删除评论(根据id)
    • 删除评论(根据类型+对象id+父级评论id)
    • 我的评论列表
  • 种草文章
    • 添加
    • 编辑
    • 删除
    • 列表
    • 文章详情
    • 我的文章列表
  • 上传
    • 上传图片
  1. 订单

我的订单列表

开发中
POST
/frontend/order/list/

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Query 参数
status
string 
必需
订单状态: 1待支付 2已支付待发货 3已发货 4已收货待评价 0查询全部
示例值:
0
page
string 
必需
示例值:
1
limit
string 
必需
示例值:
10

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/frontend/order/list/?status=0&page=1&limit=10'

返回响应

🟢200成功
application/json
Body
code
integer 
必需
message
string 
必需
data
object 
必需
count
integer 
必需
list
array [object {16}] 
必需
示例
{
    "code": 1,
    "message": "ok",
    "data": {
        "count": 8,
        "list": [
            {
                "id": 1,
                "number": "1659231316407832000111",
                "user_id": 1,
                "pay_type": 1,
                "remark": "0",
                "status": 1,
                "price": 10000,
                "coupon_price": 100,
                "actual_price": 9900,
                "consignee_name": "王先生",
                "consignee_phone": "13269477432",
                "consignee_address": "北京丰台汽车博物馆",
                "order_goods_infos": [
                    {
                        "id": 1,
                        "order_id": 1,
                        "goods_id": 1,
                        "goods_info": {
                            "id": "1",
                            "name": "东鹏特饮1",
                            "price": 50000,
                            "brand": "东鹏2",
                            "tags": "饮料,功能饮料",
                            "pic_url": "https://assasda.png",
                            "detail_info": "东鹏 详情富文本"
                        },
                        "count": 1,
                        "pay_type": 0,
                        "remark": "",
                        "status": 1,
                        "price": 100,
                        "coupon_price": 10,
                        "actual_price": 90,
                        "created_at": "",
                        "updated_at": ""
                    }
                ],
                "created_at": "2022-08-27 09:35:16",
                "updated_at": "2022-07-31 09:35:16"
            },
            {
                "id": 2,
                "number": "1659231554317361000757",
                "user_id": 1,
                "pay_type": 1,
                "remark": "0",
                "status": 1,
                "price": 10000,
                "coupon_price": 200,
                "actual_price": 9800,
                "consignee_name": "王先生",
                "consignee_phone": "13269477432",
                "consignee_address": "北京丰台汽车博物馆",
                "order_goods_infos": null,
                "created_at": "2022-07-31 09:39:14",
                "updated_at": "2022-07-31 09:39:14"
            },
            {
                "id": 3,
                "number": "1661603467832912000516",
                "user_id": 1,
                "pay_type": 0,
                "remark": "",
                "status": 0,
                "price": 0,
                "coupon_price": 0,
                "actual_price": 0,
                "consignee_name": "",
                "consignee_phone": "",
                "consignee_address": "",
                "order_goods_infos": null,
                "created_at": "2022-08-27 20:31:07",
                "updated_at": "2022-08-27 20:31:07"
            },
            {
                "id": 4,
                "number": "1661603562656619000513",
                "user_id": 1,
                "pay_type": 1,
                "remark": "放到快递柜就可以,不用打电话。",
                "status": 0,
                "price": 0,
                "coupon_price": 0,
                "actual_price": 0,
                "consignee_name": "王先生",
                "consignee_phone": "13269477432",
                "consignee_address": "北京丰台汽车博物馆",
                "order_goods_infos": null,
                "created_at": "2022-08-27 20:32:42",
                "updated_at": "2022-08-27 20:32:42"
            },
            {
                "id": 5,
                "number": "1661604424031843000546",
                "user_id": 1,
                "pay_type": 0,
                "remark": "",
                "status": 0,
                "price": 0,
                "coupon_price": 0,
                "actual_price": 0,
                "consignee_name": "",
                "consignee_phone": "",
                "consignee_address": "",
                "order_goods_infos": null,
                "created_at": "2022-08-27 20:47:04",
                "updated_at": "2022-08-27 20:47:04"
            },
            {
                "id": 6,
                "number": "1661604530142913000770",
                "user_id": 1,
                "pay_type": 1,
                "remark": "这是备注",
                "status": 1,
                "price": 100,
                "coupon_price": 0,
                "actual_price": 0,
                "consignee_name": "",
                "consignee_phone": "",
                "consignee_address": "",
                "order_goods_infos": null,
                "created_at": "2022-08-27 20:48:50",
                "updated_at": "2022-08-27 20:48:50"
            },
            {
                "id": 7,
                "number": "166160461284091500027",
                "user_id": 1,
                "pay_type": 1,
                "remark": "这是备注",
                "pay_at": "2022-09-09 11:51:21",
                "status": 1,
                "price": 100,
                "coupon_price": 0,
                "actual_price": 9800,
                "consignee_name": "",
                "consignee_phone": "",
                "consignee_address": "",
                "order_goods_infos": null,
                "created_at": "2022-09-08 20:50:12",
                "updated_at": "2022-08-27 20:50:12"
            },
            {
                "id": 8,
                "number": "166160465089079000090",
                "user_id": 1,
                "pay_type": 1,
                "remark": "这是备注",
                "pay_at": "2022-09-09 11:51:17",
                "status": 1,
                "price": 100,
                "coupon_price": 0,
                "actual_price": 9800,
                "consignee_name": "",
                "consignee_phone": "",
                "consignee_address": "",
                "order_goods_infos": [
                    {
                        "id": 2,
                        "order_id": 8,
                        "goods_id": 1,
                        "goods_info": {
                            "id": "1",
                            "name": "东鹏特饮1",
                            "price": 50000,
                            "brand": "东鹏2",
                            "tags": "饮料,功能饮料",
                            "pic_url": "https://assasda.png",
                            "detail_info": "东鹏 详情富文本"
                        },
                        "count": 1,
                        "pay_type": 0,
                        "remark": "",
                        "status": 0,
                        "price": 0,
                        "coupon_price": 0,
                        "actual_price": 0,
                        "created_at": "",
                        "updated_at": ""
                    },
                    {
                        "id": 3,
                        "order_id": 8,
                        "goods_id": 2,
                        "goods_info": {
                            "id": "2",
                            "name": "东鹏特饮2",
                            "price": 50000,
                            "brand": "东鹏2",
                            "tags": "饮料,功能饮料",
                            "pic_url": "https://assasda.png",
                            "detail_info": "东鹏 详情富文本"
                        },
                        "count": 3,
                        "pay_type": 0,
                        "remark": "",
                        "status": 0,
                        "price": 0,
                        "coupon_price": 0,
                        "actual_price": 0,
                        "created_at": "",
                        "updated_at": ""
                    }
                ],
                "created_at": "2022-09-09 20:50:50",
                "updated_at": "2022-08-27 20:50:50"
            }
        ]
    }
}
修改于 2022-12-29 09:10:42
上一页
创建订单
下一页
申请售后
Built with