查询停车场列表
用于查询指定小区内的停车场信息,支持分页查询,并返回停车场的基本信息及对应的二维码访问链接。
http://{ip}:{port}/iot/api/parkingArea.listParkingArea
GET
参数名称 | 必填 | 类型 | 描述 |
---|---|---|---|
Authorization | 是 | String | 用户认证token,通过登录接口获取 |
app-id | 是 | String | 应用ID,由系统分配 |
transaction-id | 是 | String | 请求流水号,格式:1000000000+YYYYMMDDhhmmss+6位序列 |
sign | 是 | String | 签名 |
req-time | 是 | String | 请求时间,格式:YYYYMMDDhhmmss |
参数名称 | 必填 | 类型 | 描述 |
---|---|---|---|
communityId | 是 | String | 小区ID |
page | 否 | int | 页码(默认1) |
row | 否 | int | 每页记录数(默认10) |
参数名称 | 类型 | 描述 |
---|---|---|
code | int | 返回码,0表示成功,非0表示失败 |
msg | String | 返回消息 |
data | Array | 停车场列表 |
page | int | 当前页码 |
records | int | 当前页记录数 |
total | int | 总记录数 |
data
字段详情参数名称 | 类型 | 描述 |
---|---|---|
paId | String | 停车场ID |
num | String | 停车场名称 |
communityId | String | 所属小区ID |
createTime | String | 创建时间 |
extPaId | String | 外部系统关联ID |
remark | String | 备注 |
statusCd | String | 状态(0-正常) |
typeCd | String | 类型编码 |
findQrcodeUrl | String | 车辆查询二维码链接 |
请求URL
http://127.0.0.1:8080/iot/api/parkingArea.listParkingArea?page=1&row=10&communityId=102023021386560001
{
"code": 0,
"data": [
{
"communityId": "102023021386560001",
"createTime": "2023-08-23 09:07:59",
"extPaId": "1",
"num": "2",
"paId": "102023082384250002",
"page": -1,
"records": 0,
"remark": "1",
"row": 0,
"statusCd": "0",
"total": 0,
"typeCd": "1001",
"findQrcodeUrl": "http://example.com/#/pages/car/findCarInParkingArea?communityId=102023021386560001&paId=102023082384250002"
}
],
"msg": "成功",
"page": 0,
"records": 1,
"rows": 0,
"total": 1
}
参数校验:
communityId
是否为空。 page
和 row
是否合法。数据查询:
IParkingAreaV1InnerServiceSMO.queryParkingAreasCount
获取总记录数。 IParkingAreaV1InnerServiceSMO.queryParkingAreas
获取分页数据。生成二维码链接:
findQrcodeUrl
。返回结果:
communityId
,否则接口会返回错误。 page
和 row
可选,默认 page=1
,row=10
。 findQrcodeUrl
可用于车主自助查询车辆信息。