Appearance
停车场车位数据接口文档
文档阅读对象
三方平台的系统开发⼈员
接口对接说明
1. 更新停车场车位数据接口
请求参数:(JSON 格式)
| 参数名 | 解释 | 示例 |
|---|---|---|
| itemId | String,停车场 ID | |
| parkName | String,停车场名称 | 百伦广场 |
| parkCode | String,停车场编号 | |
| totalSpace | String,总车位数 | |
| remainSpace | String,剩余车位数 | 100 |
| remainBookSpace | String,剩余预定车位数 | |
| totalBookSpace | String,总预定车位数 | |
| attach | String,备用字段 |
接口响应:
| 参数名 | 解释 | 示例 |
|---|---|---|
| status | String,SUCCESS 为处理成功;ERROR 为处理失败 | SUCCESS |
| message | String,处理失败的原因 | 未登录或登录已失效 |
| data | Object,返回的数据 | - |
请求示例
bash
# 请求
POST http://parkinglot.jztda.top/api/open/updateParking
Accept: application/json
Content-Type: application/json
{
"parkName": "测试",
"parkCode": "test",
"totalSpace": "100",
"remainSpace": "50",
"remainBookSpace": "5",
"totalBookSpace": "10",
"attach": " "
}
# 失败响应
{
"status": "ERROR",
"promptWay": "DIALOG",
"message": "停车场名称有误",
"data": null,
"errorIntercept": true
}
# 失败响应
{
"status": "ERROR",
"promptWay": "DIALOG",
"message": "剩余车位数必须是整数",
"data": null,
"errorIntercept": true
}
# 成功响应
{
"status": "SUCCESS",
"promptWay": "MESSAGE",
"message": null,
"data": {
"parkName": "百伦广场",
"usedSpace": "16",
"leftSpace": 384,
"totalSpace": 400
},
"errorIntercept": true
}