ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[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": "参数错误!" } ~~~