关于postman传两个请求体,json格式应该怎么写
这是我在postman写的格式,没有报错
{
"order": [
{
"flightId": 10002,
"flightTime": "2022-11-22 12:00:00",
"baseFee": 1000,
"source": "佛山",
"destination": "深圳",
"flightSpace": 0,
"flightSeat": "A1",
"hadinsurance": 0,
"hadbaby": 0,
"state": 0,
"isCheckIn": 1,
"fuelOilTax": 30.5,
"flightFix": 20.0,
"gmtCreate": "2022-11-22 11:29",
"gmtModified": "2022-11-22 11:29"
},
{
"flightId": 10002,
"flightTime": "2022-11-22 12:00:00",
"baseFee": 1000,
"source": "佛山",
"destination": "深圳",
"flightSpace": 0,
"flightSeat": "A1",
"hadinsurance": 0,
"hadbaby": 0,
"state": 0,
"isCheckIn": 1,
"fuelOilTax": 30.5,
"flightFix": 20.0,
"gmtCreate": "2022-11-22 11:29",
"gmtModified": "2022-11-22 11:29"
}
]
,
"user": [
{
"realName": "胡古月",
"indentityCard": "45321198007231948",
"phone":"18876073195"
},
{
"realName": "111",
"indentityCard": "222",
"phone":"333"
}
]
}
这是controller层
会报这个错误,json格式怎么写