简要描述:

  • 获取我的项目列表

请求URL:

GET/plugin.appointment.frontend.appointment-order.get-list

参数:

参数名 是否必须 类型 说明
status int 状态 0:可以约,1:已完成
page int 页码

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "total": 2,
        "per_page": 10,
        "current_page": 1,
        "last_page": 1,
        "next_page_url": null,
        "prev_page_url": null,
        "from": 1,
        "to": 2,
        "data": [
            {
                "id": 2,
                "uniacid": 5,
                "uid": 281,
                "order_id": 2740,
                "project_id": 1,
                "project_title": "预约项目1",
                "project_thumb": "https://dev1.yunzmall.com/attachment/images/5/2020/01/ox3tKMXFQ06dXCF44Oy3K0CzEu86QD.jpg",
                "total_count": 10,
                "used_count": 0,
                "status": 0,
                "rest_count": 10
            },
            {
                "id": 1,
                "uniacid": 5,
                "uid": 281,
                "order_id": 2740,
                "project_id": 2,
                "project_title": "预约项目2",
                "project_thumb": "https://dev1.yunzmall.com/attachment/images/5/2020/01/my5aAwK5WWLm9lzM2w5MM2cd04DDLA.jpg",
                "total_count": 10,
                "used_count": 1,
                "status": 0,
                "rest_count": 9
            }
        ]
    }
}

错误时返回:

  

返回参数说明:

参数名 类型 说明
id int 预约订单ID(核销时使用)
order_id int 商城订单ID
project_id int 项目ID
project_title string 项目名称
project_thumb string 缩略图
total_count int 项目服务总次数
used_count int 项目已预约次数
rest_count int 项目可预约次数或超时未使用数量
project_period_desc string 使用截止日期

备注:

  • 更多返回错误代码请看首页的错误代码描述