You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.6 KiB
45 lines
1.6 KiB
import request from '@/util/axios' |
|
|
|
//公参 |
|
export const carList = [{ cardNo: '鲁LE990Z', deviceId: '41000001254', key: 'NDEwMDAwMDEyNTQ=' }, { cardNo: '鲁LD35633', deviceId: '41000001270', key: 'NDEwMDAwMDEyNzA=' }, ]; |
|
export const appKey = '69800851-4554-4EEC-8D12-E4211B952798';//轮子appkey |
|
export const key = '266843ed-5d4f-472c-beec-e5e50a114d47';//中瑞key |
|
|
|
export const lunzApi = { |
|
//当前设备状态信息 |
|
getCurrentDeviceInfoByIMEI: (appKey, IMEI) => request({ |
|
url: '/api/PIInfo/getCurrentDeviceInfoByIMEI?appKey=' + appKey, |
|
method: 'post', |
|
data: { IMEI } |
|
}), |
|
//设备定位地址 |
|
getBaiduNear: (appKey, lat, lng) => request({ |
|
url: '/api/CommonUse/GetBaiduNear?appKey=' + appKey + '&lat=' + lat + '&lng=' + lng, |
|
method: 'get', |
|
}), |
|
//设备信息 |
|
getCarUserSimpleByImei: (appKey, imei) => request({ |
|
url: '/api/Equipment/GetCarUserSimpleByImei?appKey=' + appKey + '&imei=' + imei, |
|
method: 'get', |
|
}), |
|
//指定设备某一天的轨迹记录 |
|
getLocationsByImei: (appKey, data) => request({ |
|
url: '/gatewayapi/ApiPlat/GetLocationsByImei?appKey=' + appKey, |
|
method: 'post', |
|
data, |
|
}), |
|
//设备昨日公里数 |
|
getYesterdayMile: (appKey) => request({ |
|
url: '/gatewayapi/ApiPlat/GetYesterdayMile', |
|
method: 'get', |
|
headers:{ |
|
appKey |
|
}, |
|
}), |
|
//报警记录 |
|
getMessInfoByMessType: (appKey, data) => request({ |
|
url: '/gatewayapi/ApiPlat/GetMessInfoByMessType?appKey=' + appKey, |
|
method: 'post', |
|
data, |
|
}) |
|
};
|
|
|