[TOC] ## 获取套餐组列表 ~~~[api] get:/v1/package-groups integer:page=1#当前页码 integer:limit=10#单页显示数量 <<< 返回结果 { "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 } ] } ~~~ ## 新增套餐组 ~~~[api] post:/v1/package-groups *name#套餐组名称 des#备注 integer:sort#排序 <<< 返回结果 { "code":0, "data": "2", "msg": "套餐组添加成功" } <<< 提交内容 { "name": "VIP1" } ~~~ ## 获取指定套餐组 ~~~[api] get:/v1/package-groups/<套餐组ID> <<< 返回结果 { "code": 0, "data": { "create_at": null, "des": "", "id": 1, "name": "VIP1", "sort": 100, "update_at": null }, "msg": "" } ~~~ ## 修改指定套餐组 ~~~[api] put:/v1/package-groups/<套餐组ID> name#套餐组名称 des#备注 integer:sort#排序 <<< 返回结果 { "code":0, "data": "", "msg": "套餐组修改成功" } <<< 提交内容 { "name": "VIP1" } ~~~ ## 删除套餐组 ~~~[api] delete:/v1/package-groups/<套餐组ID,多个以逗号分隔> <<< 返回结果 { "code": 0, "data": "", "msg": "套餐组删除成功" } ~~~