获取套餐组列表

GET/v1/package-groups
page
integer
当前页码
limit
integer
单页显示数量
返回结果
{
    "code": 0,
    "count": 5,
    "data": [
        {
            "create_at": null,
            "des": null,
            "id": 11,
            "name": null,
            "sort": null,
            "update_at": null
        },
        {
            "create_at": null,
            "des": null,
            "id": 13,
            "name": null,
            "sort": null,
            "update_at": null
        },
        {
            "create_at": null,
            "des": null,
            "id": 14,
            "name": null,
            "sort": null,
            "update_at": null
        },
        {
            "create_at": null,
            "des": "",
            "id": 1,
            "name": "VIP1",
            "sort": 100,
            "update_at": null
        },
        {
            "create_at": null,
            "des": "",
            "id": 10,
            "name": "VIP2",
            "sort": 100,
            "update_at": null
        }
    ]
}

新增套餐组

POST/v1/package-groups
name
string
required
套餐组名称
des
string
备注
sort
integer
排序
返回结果
提交内容
{
  "code":0, 
  "data": "2", 
  "msg": "套餐组添加成功"
}

获取指定套餐组

GET/v1/package-groups/<套餐组ID>
返回结果
{
    "code": 0,
    "data": {
        "create_at": null,
        "des": "",
        "id": 1,
        "name": "VIP1",
        "sort": 100,
        "update_at": null
    },
    "msg": ""
}

修改指定套餐组

PUT/v1/package-groups/<套餐组ID>
name
string
套餐组名称
des
string
备注
sort
integer
排序
返回结果
提交内容
{
  "code":0, 
  "data": "", 
  "msg": "套餐组修改成功"
}

删除套餐组

DELETE/v1/package-groups/<套餐组ID,多个以逗号分隔>
返回结果
{
  "code": 0, 
  "data": "", 
  "msg": "套餐组删除成功"
}
© 版权声明
评论 抢沙发

请登录后发表评论

    暂无评论内容