返回数据 如下
{
"code": "0",
"data": {
"current": 1,
"pages": 1,
"records": [
{
"consumeScoreTotal": 0,
"contributionTotal": 0,
"createdTime": "2018-11-13 13:53:25",
"isDelete": 0,
"lastContributionTotal": 0,
"scoreTotal": 0,
"systemId": "1",
"updatedTime": "2018-11-13 13:53:25",
"userId": "1",
"userName": "yexh2222"
}
],
"size": 10,
"total": 2
},
"message": "获取成功"
}
前端对接时,可能只显示返回数据中的3、4个字段,其它字段是没用的
但由于我们开发时,使用的是生成器,所以要过滤掉这些的话就要花些时间。
而且维护也不方便。请问一下大家是怎么做的呢?