Files
orion-visor/orion-ops-ui/src/api/asset/host-connect-log.ts

45 lines
1.0 KiB
TypeScript
Raw Normal View History

2023-12-26 23:47:34 +08:00
import type { DataGrid, Pagination } from '@/types/global';
import type { TableData } from '@arco-design/web-vue/es/table/interface';
import axios from 'axios';
/**
*
*/
export interface HostConnectLogQueryRequest extends Pagination {
userId?: number;
hostId?: number;
hostAddress?: string;
type?: string;
token?: string;
status?: string;
2023-12-27 12:31:18 +08:00
startTimeRange?: string[];
2023-12-26 23:47:34 +08:00
}
/**
*
*/
export interface HostConnectLogQueryResponse extends TableData {
id: number;
userId: number;
hostId: number;
hostName: string;
hostAddress: string;
type: string;
token: string;
status: string;
startTime: number;
endTime: number;
extraInfo: string;
createTime: number;
updateTime: number;
creator: string;
updater: string;
}
/**
*
*/
export function getHostConnectLogPage(request: HostConnectLogQueryRequest) {
return axios.post<DataGrid<HostConnectLogQueryResponse>>('/asset/host-connect-log/query', request);
}