Get the basic of the user's vehicle
Get the basic information of the user's vehicle (main ID and name)
API info
Url: /basic_api/v1/user/get_user_vehicle_info_base_info
Method: GET
Content-Type:x-www-form-urlencoded
Request parameter
nothing
Response Data (type:array)
| field | type | desc |
|---|---|---|
| vehicleGuid | integer | Vehicle ID |
| vehicleNo | string | Plat No. |
| vehicleNoColor | integer | Plat No. color |
| deviceGuid | integer | Device ID |
| deviceNo | string | Device number |
| orgGuid | integer | Packet ID |
| orgName | string | Group name |
| channelNum | integer | Number of channels |
| channelValidFlag | integer | Channel valid flag bits, such as 1: channel 1 is valid,2: channel 2 is valid,3: channel 1 and 2 are valid |
| iconID | integer | Car icon ID(todo) |
| note | string | remark |
| staffInfos | array | For a list of staff, see Table 1 definitions |
Table 1: List of staff (type:object)
| field | type | desc |
|---|---|---|
| staffGuid | integer | Employee ID |
| staffName | string | Employee name |
| staffPhone | string | Contact information |
Example
Request example
url
http://localhost:8080/basic_api/v1/user/get_user_vehicle_info_base_info?_t=1698998017641http://localhost:8080/basic_api/v1/user/get_user_vehicle_info_base_info?_t=1698998017641Response example
json
{
"hdr": {
"code": 200,
"message": "success"
},
"data": [{
"vehicleGuid":1,
"vehicleNo":"testA12343",
"vehicleNoColor":2,
"deviceGuid":2,
"deviceNo":"1300000001",
"orgGuid":2,
"orgName":"test",
"channelNum":4,
"channelValidFlag": 15,//Indicates that the four channels are valid
"iconID":1,
"note":"test car",
"staffInfos":[{
"staffGuid":1,
"staffName":"Li ming",
"staffPhone":"1300000001"
}],
}]
}{
"hdr": {
"code": 200,
"message": "success"
},
"data": [{
"vehicleGuid":1,
"vehicleNo":"testA12343",
"vehicleNoColor":2,
"deviceGuid":2,
"deviceNo":"1300000001",
"orgGuid":2,
"orgName":"test",
"channelNum":4,
"channelValidFlag": 15,//Indicates that the four channels are valid
"iconID":1,
"note":"test car",
"staffInfos":[{
"staffGuid":1,
"staffName":"Li ming",
"staffPhone":"1300000001"
}],
}]
}
X-Link API Document