🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
[TOC] ## 列表 ~~~[api] get:/room_supplies <<< success { "code": 0, "data": { "data": [ { "id": 1, "name": "冰箱",//设施名 "order": 1//排序 } ], "currentPage": 1, "pageNumber": 10, "count": 1 } } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 列表分页 ~~~[api] get:/room_supplies/pag *int:currentPage=1#当前页 *int:pageNumber=10#页码 <<< success { "code": 0, "data": { "data": [ { "id": 1, "name": "冰箱",//设施名 "order": 1//排序 } ] } } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 搜索 ~~~[api] get:/room_supplies/search *string:search=搜索内容#设施名称 <<< success { "code": 0, "data": { "data": [ { "id": 1, "name": "冰箱",//设施名 "order": 1//排序 } ] } } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 新增保存 ~~~[api] post:/room_supplies/save *string:name=冰箱#设施名 *int:order=1#排序 <<< success { "code":0 } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 修改查询 ~~~[api] get:/room_supplies/edit *int:id=1#列表 id <<< success { "code": 0, "data": { "data": { "id": 1, "name": "冰箱", "order": 1 } } } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 修改保存 ~~~[api] post:/room_supplies/update *int:id=1#列表 id *string:name=冰箱#设施名 *int:order=1#排序 <<< success { "code":0 } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 删除 ~~~[api] post:/room_supplies/delete *int:id=1#列表 id <<< success { "code":0 } <<< error { "code": -1, "msg": "参数错误!" } ~~~