2022-11-15 17:20:57 +08:00
|
|
|
import { DateTimeFormats } from '@intlify/core-base';
|
2023-02-07 18:48:32 +08:00
|
|
|
import { ReqPage } from '.';
|
2022-11-15 17:20:57 +08:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
2023-02-07 18:48:32 +08:00
|
|
|
export interface SearchOpLog extends ReqPage {
|
|
|
|
source: string;
|
|
|
|
status: string;
|
|
|
|
operation: string;
|
|
|
|
}
|
|
|
|
export interface SearchLgLog extends ReqPage {
|
|
|
|
ip: string;
|
|
|
|
status: string;
|
|
|
|
}
|
2022-11-15 17:20:57 +08:00
|
|
|
export interface LoginLogs {
|
|
|
|
ip: string;
|
|
|
|
address: string;
|
|
|
|
agent: string;
|
|
|
|
status: string;
|
|
|
|
message: string;
|
|
|
|
createdAt: DateTimeFormats;
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
export interface CleanLog {
|
|
|
|
logType: string;
|
|
|
|
}
|
2022-11-15 17:20:57 +08:00
|
|
|
}
|