{
"trainId": "2",
"passengers": [
{
"passengerId": "1666343851196878848",
"seatType": "0"
},
{
"passengerId": "1666343166634420046496153651196878848",
"seatType": "0"
}
],
"chooseSeats": [],
"departure": "北京南",
"arrival": "杭州东"
}
curl --location --request POST 'http://127.0.0.1:9000/api/ticket-service/ticket/purchase' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"trainId": "2",
"passengers": [
{
"passengerId": "1666343851196878848",
"seatType": "0"
},
{
"passengerId": "1666343166634420046496153651196878848",
"seatType": "0"
}
],
"chooseSeats": [],
"departure": "北京南",
"arrival": "杭州东"
}'
{
"code": "0",
"message": null,
"data": {
"orderSn": "1677929762971848704",
"ticketOrderDetails": [
{
"seatType": 0,
"carriageNumber": "01",
"seatNumber": "01A",
"realName": "马百万",
"idType": 0,
"idCard": "1234567890",
"ticketType": 0,
"amount": 231300
},
{
"seatType": 0,
"carriageNumber": "01",
"seatNumber": "01F",
"realName": "花花",
"idType": 0,
"idCard": "1234567890",
"ticketType": 0,
"amount": 231300
}
]
},
"requestId": null,
"success": true
}