Skip to content

Get vehicle info

Get the list of vehicles associated with the user, pagination, support by vehicle number query ,only support admin user call,general user referGet the basic of the user's vehicle

API info

Url: /basic_api/v1/vehicle/get_list

Method: POST

Content-Type:application/json

Request parameter

fieldtyperequireddesc
userGuidintegerNoUser ID. Only when you log in as the super administrator, the user needs to query the information about the specified management user
userTypeintegerNoUser type: 2: administrator (basic information can be changed) 3: General users; 5: Plate No. or device number login
vehicleNostringNoPlate No.
orgGuidsarray(integer)NoGroup ID list
isUnboundOrgboolNoUnbound group
isUnboundUserboolNoUnbound user

Response Data (type:object)

fieldtypedesc
totalintegerTotal number
dataListarray(object)vehicle info, see Table 1 below the current page

Table 1:Vehicle info

fieldtypedesc
guidintegerVehicle ID
adminGuidintegerAdministrator ID Indicates the ID of an administrator
createTimestringCreation time
updateTimestringUpdate time
vehicleNostringPlate No.
vehicleNoColorintegerLicense plate color
opStateboolRunning status: true: Running,false: Not running
deviceNostringDevice number
passwordstringPassword, vehicle login password
orgGuidintegerGroup ID
mileageRatiointegerMileage factor 1/100
notestringremark
iconIDintegerVehicle icon
deadlineTimeintegerService expiration time,UTC time stamp
installDateintegerInstallation date
industryTypeintegerTransport industry - Refer to front-end definitions
vehicleWeightintegerVehicle tonnage
vehicleTypeintegerVehicle type 0: Other; 1: Flatbed car; 2: tow crane; 3: Floor flat car; 4: anti-collision car; 5: Van; 91: basement trailer; 92: Forklift trailer

Example

Request example

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
}

Response example

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":"testA00001",
                "vehicleNoColor":2,
                "opState":true,
                "deviceNo":"13000001",
                "password":"",
                "orgGuid":1,
                "mileageRatio":102,  //1.02 times
                "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":"testA00001",
                "vehicleNoColor":2,
                "opState":true,
                "deviceNo":"13000001",
                "password":"",
                "orgGuid":1,
                "mileageRatio":102,  //1.02 times
                "note":"",
                "iconID":1,
                "deadlineTime":1566600015,
                "installDate":156655552,
                "industryType":1,
                "vehicleWeight":1,
                "vehicleType":0                

            }]
    }
}