Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

response 是多层复杂json,而且是调用第三方的,可能随时加字段,怎么解决在ui显示问题 #42

Open
huang-xuan opened this issue Jan 8, 2019 · 1 comment

Comments

@huang-xuan
Copy link

{
"code": 0,
"data": {
"cancel_fee_detail": [],
"booking_cancel_fee_detail": [],
"drivers": [],
"bookings": [],
"polling_state": 2,
"polling_count": "1",
"next": 10
},
"message": "成功"
}

image

@caspar-chen
Copy link
Owner

如果第三方的无法控制显示的描述的话,建议自己定义一个对象,这个对象里面的字段跟第三方的字段保持一致,并写上注释;然后再response指定你的 @ApiOperation(response = YourObj.class)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants