49 lines
798 B
JavaScript
49 lines
798 B
JavaScript
|
|
import request from '../utils/request'
|
||
|
|
|
||
|
|
// remote 远程模块
|
||
|
|
|
||
|
|
// 获取远程列表
|
||
|
|
export function getRemoteList(data) {
|
||
|
|
return request({
|
||
|
|
url: '/remote/list',
|
||
|
|
method: 'POST',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 删除远程
|
||
|
|
export function deleteRemoteRequest(data) {
|
||
|
|
return request({
|
||
|
|
url: '/remote/delete',
|
||
|
|
method: 'POST',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 清空远程
|
||
|
|
export function clearRemoteRequest(data) {
|
||
|
|
return request({
|
||
|
|
url: '/remote/clear',
|
||
|
|
method: 'POST',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 检查远程名称是否重复
|
||
|
|
export function checkRemoteNameRequest(data) {
|
||
|
|
return request({
|
||
|
|
url: '/remote/checkRemoteName',
|
||
|
|
method: 'POST',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 添加远程
|
||
|
|
export function addRemoteRequest(data) {
|
||
|
|
return request({
|
||
|
|
url: '/remote/add',
|
||
|
|
method: 'POST',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|