nutz有没有JsonView
比如 返回用户 数据 至展示某些字段
定义一个 类 返回数据
有解决方案吗
6 回复
如下 json 数据 是查询到的model 返回 转换的json 实际移动端 可能只需要 id,loginName,userName,gender,email 其他不需要 这个 有没有什么很好的解决办法呢
{
"id": "1ae5c43a77e24621beb5043c142bd86f",
"loginName": "18187119325",
"userName": "小明00",
"gender": 1,
"email": "abc123@qq.com",
"password": "CC3F5CA+gAuHMewliTFNa+0a+PPGKTtU5XczYtmaf74=",
"salt": "1tfgR1cWqGur4LVsxDtZ6A==",
"userImage": null,
"signature": null,
"status": false,
"device": null,
"platform": null,
"openid": "",
"remark": null,
"delFlag": false,
"identityCardFront": "http://pta939yrg.bkt.clouddn.com/1ae5c43a77e24621beb5043c142bd86f/be784950485eade90762df97de686c91.jpg",
"identityCardReverse": "http://pta939yrg.bkt.clouddn.com/1ae5c43a77e24621beb5043c142bd86f/d1da0a48e693c280f8d95c88bc786ba4.jpg",
"auditStatus": "under_review",
"leaderId": null,
"employeeCardUrl": null,
"agentStatus": "approved",
"serviceFeesId": "1b557aaf724f45ac87ef207ef0963919",
"serviceFees": {
"id": "1b557aaf724f45ac87ef207ef0963919",
"name": "默认服务费",
"landlordEarnings": 0.9,
"tenantsRent": 1.15,
"brokerageFee": 0.9,
"defaults": false,
"createBy": "1",
"createTime": "2019-07-18 10:36:12",
"updateBy": "1",
"updateTime": "2019-07-18 10:36:12"
},
"sysUserId": null,
"realName": null,
"idCardNo": null,
"createBy": null,
"createTime": "2019-07-11 10:26:20",
"updateBy": null,
"updateTime": null
}
添加回复
请先登陆