import request from '@/utils/request'
|
|
// 查询GPS配置列表
|
export function listGpsConfig(query) {
|
return request({
|
url: '/system/gpsconfig/list',
|
method: 'get',
|
params: query
|
})
|
}
|
|
// 查询GPS配置详细
|
export function getGpsConfig(configId) {
|
return request({
|
url: '/system/gpsconfig/' + configId,
|
method: 'get'
|
})
|
}
|
|
// 新增GPS配置
|
export function addGpsConfig(data) {
|
return request({
|
url: '/system/gpsconfig',
|
method: 'post',
|
data: data
|
})
|
}
|
|
// 修改GPS配置
|
export function updateGpsConfig(data) {
|
return request({
|
url: '/system/gpsconfig',
|
method: 'put',
|
data: data
|
})
|
}
|
|
// 删除GPS配置
|
export function delGpsConfig(configId) {
|
return request({
|
url: '/system/gpsconfig/' + configId,
|
method: 'delete'
|
})
|
}
|
|
// 导出GPS配置
|
export function exportGpsConfig(query) {
|
return request({
|
url: '/system/gpsconfig/export',
|
method: 'get',
|
params: query
|
})
|
}
|
|
// 获取有效token
|
export function getValidToken(configKey) {
|
return request({
|
url: '/system/gpsconfig/token/' + configKey,
|
method: 'get'
|
})
|
}
|