ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC] ## 列表 ~~~[api] get:/lease_time <<< success { "code": 0, "data": { "data": [ { "id": 1, "month": 3,//月数 "order": 1//排序 } ], "currentPage": 1,//当前页 "pageNumber": 10,//页码 "count": 1 } } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 列表分页 ~~~[api] get:/lease_time/pag *int:currentPage=1#当前页 *int:pageNumber=10#页码 <<< success { "code": 0, "data": { "data": [ { "id": 1, "month'": 1,//月数 "order": 1//排序 } ] } } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 搜索 ~~~[api] get:/lease_time/search *string:search=搜索内容#月数 <<< success { "code": 0, "data": { "data": [ { "id": 1, "month": 1,//月数 "order": 1//排序 } ] } } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 新增保存 ~~~[api] post:/lease_time/save *string:month=1#月数 *int:order=1#排序 <<< success { "code":0 } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 修改查询 ~~~[api] get:/lease_time/edit *int:id=1#列表 id <<< success { "code": 0, "data": { "data": { "id": 1, "month": 1, "order": 1 } } } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 修改保存 ~~~[api] post:/lease_time/update *int:id=1#列表 id *string:month=1#月数 *int:order=1#排序 <<< success { "code":0 } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 删除 ~~~[api] post:/lease_time/delete *int:id=1#列表 id <<< success { "code":0 } <<< error { "code": -1, "msg": "参数错误!" } ~~~