企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
[TOC] ## 列表 ~~~[api] get:/house_type <<< success { "code": 0, "data": { "data": [ { "id": 1, "name": "三室两厅",//户型名 "order": 1//排序 } ], "currentPage": 1, "pageNumber": 10, "count": 1 } } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 列表分页 ~~~[api] get:/house_type/pag *int:currentPage=1#当前页 *int:pageNumber=10#页码 <<< success { "code": 0, "data": { "data": [ { "id": 1, "name": "三室两厅",//户型名 "order": 1//排序 } ] } } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 搜索 ~~~[api] get:/house_type/search *string:search=搜索内容#户型名称 <<< success { "code": 0, "data": { "data": [ { "id": 1, "name": "三室两厅",//户型名 "order": 1//排序 } ] } } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 新增保存 ~~~[api] post:/house_type/save *string:name=三室一厅#户型名 *int:order=1#排序 <<< success { "code":0 } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 修改查询 ~~~[api] get:/house_type/edit *int:id=1#列表 id <<< success { "code": 0, "data": { "data": { "id": 1, "name": "三室一厅", "order": 1 } } } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 修改保存 ~~~[api] post:/house_type/update *int:id=1#列表 id *string:name=三室一厅#户型名 *int:order=1#排序 <<< success { "code":0 } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 删除 ~~~[api] post:/house_type/delete *int:id=1#列表 id <<< success { "code":0 } <<< error { "code": -1, "msg": "参数错误!" } ~~~