Skip to content

获取车辆信息

获取用户关联的车辆列表,分页,支持按车辆号查询,该接口只支持管理员用户调用,普通用户用获取用户车辆基本信息获取

接口信息

请求地址: /basic_api/v1/vehicle/get_list

请求类型: POST

Content-Type:application/json

请求参数

名称类型必选说明
userGuidinteger用户ID ,只有登录为超级管理员时,该用户需要查指定的管理用户的信息
userTypeinteger用户类型,2:业务管理员(可更改基础资料);3:普通用户;5:车牌号登录
vehicleNostring车牌号
orgGuidsarray(integer)分组ID列表
isUnboundOrgbool未绑定组织
isUnboundUserbool否未绑定用户

响应Data (类型:object)

名称类型说明
totalinteger总条数
dataListarray(object)车辆信息,查看当前页下面的表1

表1:车辆信息

字段类型说明
guidinteger车辆ID
adminGuidinteger管理员ID 管理员为自己的ID
createTimestring创建时间
updateTimestring更新时间
vehicleNostring车牌号
vehicleNoColorinteger车牌颜色
opStatebool运营状态,true:运营,false,非运营
deviceNostring终端号
passwordstring密码,车辆登录密码
orgGuidinteger组织id
mileageRatiointeger里程系数 1/100
notestring备注
iconIDinteger车辆图标
deadlineTimeinteger服务到期时间,UTC时间戳
installDateinteger安装日期
industryTypeinteger运输行业 -参考前端定义
vehicleWeightinteger车辆吨位
vehicleTypeinteger车辆类型 0:其它;1:平板车;2:拖吊车;3:落地平板车;4:防撞车;5:厢式车;91:地库拖车;92:叉车拖车

示例

请求示例

json
http://localhost:8080/basic_api/v1/vehicle/get_list
{
    "userGuid":1,
    "userType":1,
    "vehicleNo":"1300212000",
    "orgGuids":[1],
    "isUnboundOrg":true,
    "isUnboundUser":true
}
http://localhost:8080/basic_api/v1/vehicle/get_list
{
    "userGuid":1,
    "userType":1,
    "vehicleNo":"1300212000",
    "orgGuids":[1],
    "isUnboundOrg":true,
    "isUnboundUser":true
}

响应示例

json
{
    "hdr":{
        "code":200,
        "message":"success" //
    },
    "data":{
        "total":1,
        "dataList":[
            {
                "guid":1,
                "adminGuid":1,
                "createTime":"2023-11-01 12:12:12",
                "updateTime":"2023-11-01 12:12:12",
                "vehicleNo":"测A00001",
                "vehicleNoColor":2,
                "opState":true,
                "deviceNo":"13000001",
                "password":"",
                "orgGuid":1,
                "mileageRatio":102,  //1.02倍
                "note":"",
                "iconID":1,
                "deadlineTime":1566600015,
                "installDate":156655552,
                "industryType":1,
                "vehicleWeight":1,
                "vehicleType":0                

            }]
    }
}
{
    "hdr":{
        "code":200,
        "message":"success" //
    },
    "data":{
        "total":1,
        "dataList":[
            {
                "guid":1,
                "adminGuid":1,
                "createTime":"2023-11-01 12:12:12",
                "updateTime":"2023-11-01 12:12:12",
                "vehicleNo":"测A00001",
                "vehicleNoColor":2,
                "opState":true,
                "deviceNo":"13000001",
                "password":"",
                "orgGuid":1,
                "mileageRatio":102,  //1.02倍
                "note":"",
                "iconID":1,
                "deadlineTime":1566600015,
                "installDate":156655552,
                "industryType":1,
                "vehicleWeight":1,
                "vehicleType":0                

            }]
    }
}