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.
48 lines
1011 B
48 lines
1011 B
import axiosSettings from '@/utils/safeSettings/axiosSettings'
|
|
import securityTools from '@/utils/safeComponents'
|
|
import securitySettings from '@/utils/safeSettings/securitySettings'
|
|
|
|
const request = securityTools.request(axiosSettings,securitySettings).request
|
|
|
|
// 查询终端配置列表
|
|
export function listClient(query) {
|
|
return request({
|
|
url: '/system/client/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询终端配置详细
|
|
export function getClient(clientId) {
|
|
return request({
|
|
url: '/system/client/' + clientId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增终端配置
|
|
export function addClient(data) {
|
|
return request({
|
|
url: '/system/client',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改终端配置
|
|
export function updateClient(data) {
|
|
return request({
|
|
url: '/system/client',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除终端配置
|
|
export function delClient(clientId) {
|
|
return request({
|
|
url: '/system/client/' + clientId,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|