mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-24 00:00:52 +00:00
63 lines
1.4 KiB
Go
63 lines
1.4 KiB
Go
import { DateTimeFormats } from '@intlify/core-base';
|
|
import { ReqPage } from '.';
|
|
|
|
export namespace Log {
|
|
export interface OperationLog {
|
|
id: number;
|
|
source: string;
|
|
action: string;
|
|
ip: string;
|
|
path: string;
|
|
method: string;
|
|
userAgent: string;
|
|
body: string;
|
|
resp: string;
|
|
|
|
status: number;
|
|
latency: number;
|
|
errorMessage: string;
|
|
|
|
detail: string;
|
|
createdAt: DateTimeFormats;
|
|
}
|
|
export interface SearchOpLog extends ReqPage {
|
|
source: string;
|
|
status: string;
|
|
operation: string;
|
|
}
|
|
export interface SearchLgLog extends ReqPage {
|
|
ip: string;
|
|
status: string;
|
|
}
|
|
export interface LoginLogs {
|
|
ip: string;
|
|
address: string;
|
|
agent: string;
|
|
status: string;
|
|
message: string;
|
|
createdAt: DateTimeFormats;
|
|
}
|
|
export interface CleanLog {
|
|
logType: string;
|
|
}
|
|
|
|
export interface SearchTaskReq extends ReqPage {
|
|
type: string;
|
|
status: string;
|
|
}
|
|
|
|
export interface Task {
|
|
id: string;
|
|
name: string;
|
|
type: string;
|
|
logFile: string;
|
|
status: string;
|
|
errorMsg: string;
|
|
operationLogID: number;
|
|
resourceID: number;
|
|
currentStep: string;
|
|
endAt: Date;
|
|
createdAt: Date;
|
|
}
|
|
}
|