eg:
{
"status": 200,
"msg": "成功",
"data": {
"ids": [
"polaris_dashboard_home_achievement_head_total",
"polaris_dashboard_home_achievement_head_car_source",
"polaris_dashboard_home_achievement_head_c2c",
"polaris_dashboard_home_achievement_head_consign",
"polaris_dashboard_home_achievement_head_c2b",
"polaris_dashboard_home_achievement_head_city_dev"
]
}
}
不如定义成:
{
"status": 200,
"msg": "成功",
"data": {
"ids": [
{
"id": "polaris_dashboard_home_achievement_head_total"
},
{
"id": "polaris_dashboard_home_achievement_head_car_source"
},
{
"id": "polaris_dashboard_home_achievement_head_c2c"
},
{
"id": "polaris_dashboard_home_achievement_head_consign"
},
{
"id": "polaris_dashboard_home_achievement_head_c2b"
},
{
"id": "polaris_dashboard_home_achievement_head_city_dev"
}
]
}
}