apijson-column 1.0.0-1.2.2 更新内容
-
支持 字段名映射 和 !key 反选字段;
-
完善文档;
-
升级自身, APIJSON 版本分别为 1.2.2, 5.1.0;
具体见 Release 发布版本。
apijson-column ![](https://camo.githubusercontent.com/8dac7121e8d02ac614953deab241d41f47d3db73ea8c42191d8f1d5e12b679be/68747470733a2f2f6a69747061636b2e696f2f762f4150494a534f4e2f6170696a736f6e2d636f6c756d6e2e737667)
腾讯 APIJSON 4.6.6+ 的字段插件,支持 !key 反选字段 和 字段名映射,可通过 Maven, Gradle 等远程依赖。
1.反选字段
"@column": "!columnKey" // 返回排除 columnKey 后的全部其它字段
{ "User": { // id,sex,name,tag,head,contactIdList,pictureList,date "id": 82001, "@column": "!contactIdList" // -> id,sex,name,tag,head,pictureList,date } }
2.字段名映射
"@column": "showKey" // 隐藏了数据库的对应真实字段名
{ "User": { // id,sex,name,tag,head,contactIdList,pictureList,date "id": 82001, "@column": "gender" // -> sex } }
https://gitee.com/APIJSON/apijson-column
创作不易,右上角点 ⭐Star 支持下吧 ^_^