Skip to content

停车场车位数据接口文档

文档阅读对象

三方平台的系统开发⼈员

接口对接说明

1. 更新停车场车位数据接口

请求参数:(JSON 格式)

参数名解释示例
itemIdString,停车场 ID
parkNameString,停车场名称百伦广场
parkCodeString,停车场编号
totalSpaceString,总车位数
remainSpaceString,剩余车位数100
remainBookSpaceString,剩余预定车位数
totalBookSpaceString,总预定车位数
attachString,备用字段

接口响应:

参数名解释示例
statusString,SUCCESS 为处理成功;ERROR 为处理失败SUCCESS
messageString,处理失败的原因未登录或登录已失效
dataObject,返回的数据-

请求示例

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
}

Released under the MIT License.