多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
[TOC] ## 列表 ~~~[api] get:/mail <<< success { "code": 0, "data": { "data": [ { "id": 4, "title": "123", "content": "123", "send_time": "2017-11-01 19:44:52", "type": 2 } ], "currentPage": 1, "pageNumber": 10, "count": 4 } } <<< ~~~ ## 分页 ~~~[api] get:/mail/pag *int:currentPage=1#当前页 *int:pageNumber=10#页码 <<< success { "code": 0, "data": { "data": [ { "id": 4, "title": "123", "content": "123", "send_time": "2017-11-01 19:44:52", "type": 2 } ] } } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 搜索 ~~~[api] get:/mail/search *string:search=搜索内容#标题 <<< success { "code": 0, "data": { "data": [ { "id": 4, "title": "123", "content": "123", "send_time": "2017-11-01 19:44:52", "type": 2 } ] } } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 新增保存 ~~~[api] post:/mail/save *string:title=标题#标题 *string:content=内容#内容 *int:type=0#接收用户(0:用户 1:物业 2:销售) <<< success { "code":0 } <<< error { "code":-1, "msg":"参数错误" } ~~~ ## 删除 >[info] 删除不会删除已发送的站内信,只会删除记录中的站内信 ~~~[api] post:/mail/delete *int:id=1#列表的 id <<< success { "code": 0 } <<< error { "code": -1, "msg": "参数错误!" } ~~~