{
"receivingUnit": "string",
"visitingFloor": "string",
"cargoInformation": "string",
"useTime": "string",
"deliveryUnit": "string",
"freightElevatorPersonDTOList": [
{
"name": null,
"phone": null,
"idCard": null,
"sex": "MALE"
}
]
}
curl --location --request POST 'http://test-cn.your-api-server.com/eservice/web/fe/save' \
--header 'Content-Type: application/json' \
--data-raw '{
"receivingUnit": "string",
"visitingFloor": "string",
"cargoInformation": "string",
"useTime": "string",
"deliveryUnit": "string",
"freightElevatorPersonDTOList": [
{
"name": null,
"phone": null,
"idCard": null,
"sex": "MALE"
}
]
}'
返回一个Result对象,表示操作的结果
该对象包含了操作状态和可能的消息,用于前端界面展示或进一步处理
注释解释: - @POST:指定该接口通过POST请求方式访问 - @Path("save"):定义访问该接口的URL路径 - @Consumes(MediaType.APPLICATION_JSON):指定该接口接收JSON格式的请求数据 - @Produces(MediaType.APPLICATION_JSON):指定该接口返回JSON格式的响应数据 - registrationFreightElevatorService.save(...):调用注册货运电梯服务的save方法,保存订单信息 - new Result():创建一个新的Result对象,作为接口的返回值,表示操作结果
{
"code": 0,
"status": "",
"message": "",
"data": 0,
"resultMap": {
"": {}
}
}