瑞辛咖啡

小组项目


获取优惠卷信息2.0

简要描述
  • 用户注册接口
请求URL
  • /coupon/getCoupon2
请求方式
  • POST
参数
参数名 必选 类型 说明
返回示例
{
    "status": 200,
    "msg": "获取用户优惠卷数据成功",
    "data": [
        {
            "category": 1,
            "content": "B1全国通用",
            "children": [
                {
                    "coupon_id": 9,
                    "coupon_price": 21,
                    "coupon_category": 1,
                    "coupon_content": "B1全国通用",
                    "coupon_master_id": 7,
                    "coupon_status": 1,
                    "coupon_createTime": "2022-08-02T11:51:28.000Z",
                    "coupon_term": 24
                },
                {
                    "coupon_id": 10,
                    "coupon_price": 21,
                    "coupon_category": 1,
                    "coupon_content": "B1全国通用",
                    "coupon_master_id": 7,
                    "coupon_status": 1,
                    "coupon_createTime": "2022-08-02T11:51:28.000Z",
                    "coupon_term": 24
                }
            ],
            "price": 21
        },
        {
            "category": 2,
            "content": "B2全国通用",
            "children": [],
            "price": 24
        },
        {
            "category": 3,
            "content": "B3全国通用",
            "children": [
                {
                    "coupon_id": 5,
                    "coupon_price": 24,
                    "coupon_category": 3,
                    "coupon_content": "B5全国通用",
                    "coupon_master_id": 7,
                    "coupon_status": 1,
                    "coupon_createTime": "2022-08-02T06:35:47.000Z",
                    "coupon_term": 24
                }
            ],
            "price": 27
        },
        {
            "category": 4,
            "content": "B4全国通用",
            "children": [],
            "price": 21
        },
        {
            "category": 5,
            "content": "B5全国通用",
            "children": [
                {
                    "coupon_id": 51,
                    "coupon_price": 24,
                    "coupon_category": 5,
                    "coupon_content": "B5全国通用",
                    "coupon_master_id": 7,
                    "coupon_status": 1,
                    "coupon_createTime": "2022-08-02T12:12:37.000Z",
                    "coupon_term": 24
                }
            ],
            "price": 24
        },
        {
            "category": 6,
            "content": "B6全国通用",
            "children": [],
            "price": 27
        }
    ]
}

{
    "status": 200,
    "msg": "获取用户优惠卷数据成功",
    "data": []
}
返回参数说明
参数名 类型 说明
备注
  • 更多返回错误代码请看首页的错误代码描述

页面列表

ITEM_HTML