多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
为了方便客户端开发,返回的json有两种格式(在Header头“X-Response-Type”或者在请求参数response-type中传递类型值): **simple**(默认格式) 直接返回实体,分页主要在头部: <pre> [ { "id":1, "username": "overtrue", //... }, { "id":2, "username": "noname", //... }, //... ] </pre> **fractal** 分页与数据都放置在body体里(头部仍然保留分页信息),数据在data,分类在paginator对象: <pre> { "data": { "tasks": [ { "id":1, "username": "overtrue", //... }, { "id":2, "username": "noname", //... }, //... ]}, "paginator":{ "current": 1, "last": 1, "size": 20, "offset": 0 } } </pre>