🎨 修改代码格式.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import type { DataGrid, Pagination } from '@/types/global';
|
||||
import type { TableData } from '@arco-design/web-vue/es/table/interface';
|
||||
import axios from 'axios';
|
||||
import qs from 'query-string';
|
||||
|
||||
/**
|
||||
* 主机身份创建请求
|
||||
@@ -91,3 +92,14 @@ export function deleteHostIdentity(id: number) {
|
||||
return axios.delete('/asset/host-identity/delete', { params: { id } });
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除主机身份
|
||||
*/
|
||||
export function batchDeleteHostIdentity(idList: Array<number>) {
|
||||
return axios.delete('/asset/host-identity/batch-delete', {
|
||||
params: { idList },
|
||||
paramsSerializer: params => {
|
||||
return qs.stringify(params, { arrayFormat: 'comma' });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import type { DataGrid, Pagination } from '@/types/global';
|
||||
import type { TableData } from '@arco-design/web-vue/es/table/interface';
|
||||
import axios from 'axios';
|
||||
import qs from 'query-string';
|
||||
|
||||
/**
|
||||
* 主机密钥创建请求
|
||||
@@ -85,3 +86,15 @@ export function getHostKeyPage(request: HostKeyQueryRequest) {
|
||||
export function deleteHostKey(id: number) {
|
||||
return axios.delete('/asset/host-key/delete', { params: { id } });
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除主机密钥
|
||||
*/
|
||||
export function batchDeleteHostKey(idList: Array<number>) {
|
||||
return axios.delete('/asset/host-key/batch-delete', {
|
||||
params: { idList },
|
||||
paramsSerializer: params => {
|
||||
return qs.stringify(params, { arrayFormat: 'comma' });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import type { DataGrid, Pagination } from '@/types/global';
|
||||
import type { TableData } from '@arco-design/web-vue/es/table/interface';
|
||||
import axios from 'axios';
|
||||
import qs from 'query-string';
|
||||
|
||||
/**
|
||||
* 主机创建请求
|
||||
@@ -102,3 +103,15 @@ export function getHostPage(request: HostQueryRequest) {
|
||||
export function deleteHost(id: number) {
|
||||
return axios.delete('/asset/host/delete', { params: { id } });
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除主机
|
||||
*/
|
||||
export function batchDeleteHost(idList: Array<number>) {
|
||||
return axios.delete('/asset/host/batch-delete', {
|
||||
params: { idList },
|
||||
paramsSerializer: params => {
|
||||
return qs.stringify(params, { arrayFormat: 'comma' });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import type { DataGrid, Pagination } from '@/types/global';
|
||||
import type { TableData } from '@arco-design/web-vue/es/table/interface';
|
||||
import axios from 'axios';
|
||||
import qs from 'query-string';
|
||||
|
||||
/**
|
||||
* 执行模板创建请求
|
||||
@@ -88,3 +89,15 @@ export function getExecTemplatePage(request: ExecTemplateQueryRequest) {
|
||||
export function deleteExecTemplate(id: number) {
|
||||
return axios.delete('/asset/exec-template/delete', { params: { id } });
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除执行模板
|
||||
*/
|
||||
export function batchDeleteExecTemplate(idList: Array<number>) {
|
||||
return axios.delete('/asset/exec-template/batch-delete', {
|
||||
params: { idList },
|
||||
paramsSerializer: params => {
|
||||
return qs.stringify(params, { arrayFormat: 'comma' });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ import type { DataGrid, Pagination } from '@/types/global';
|
||||
import type { TableData } from '@arco-design/web-vue/es/table/interface';
|
||||
import type { HostQueryResponse } from '@/api/asset/host';
|
||||
import axios from 'axios';
|
||||
import qs from 'query-string';
|
||||
|
||||
/**
|
||||
* 计划任务创建请求
|
||||
@@ -112,6 +113,18 @@ export function deleteExecJob(id: number) {
|
||||
return axios.delete('/asset/exec-job/delete', { params: { id } });
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除计划任务
|
||||
*/
|
||||
export function batchDeleteExecJob(idList: Array<number>) {
|
||||
return axios.delete('/asset/exec-job/batch-delete', {
|
||||
params: { idList },
|
||||
paramsSerializer: params => {
|
||||
return qs.stringify(params, { arrayFormat: 'comma' });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 手动触发计划任务
|
||||
*/
|
||||
|
||||
@@ -2,6 +2,7 @@ import type { DataGrid, Pagination } from '@/types/global';
|
||||
import type { TableData } from '@arco-design/web-vue/es/table/interface';
|
||||
import type { RoleQueryResponse } from '@/api/user/role';
|
||||
import axios from 'axios';
|
||||
import qs from 'query-string';
|
||||
|
||||
/**
|
||||
* 用户创建请求
|
||||
@@ -162,6 +163,18 @@ export function deleteUser(id: number) {
|
||||
return axios.delete('/infra/system-user/delete', { params: { id } });
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除用户
|
||||
*/
|
||||
export function batchDeleteUser(idList: Array<number>) {
|
||||
return axios.delete('/infra/system-user/batch-delete', {
|
||||
params: { idList },
|
||||
paramsSerializer: params => {
|
||||
return qs.stringify(params, { arrayFormat: 'comma' });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取用户会话列表
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user