-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Expand file tree
/
Copy pathlog.ts
More file actions
68 lines (63 loc) · 1.54 KB
/
log.ts
File metadata and controls
68 lines (63 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import { DateTimeFormats } from '@intlify/core-base';
import { ReqPage } from '.';
export namespace Log {
export interface OperationLog {
id: number;
source: string;
user: 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;
taskID?: string;
}
export interface Task {
id: string;
name: string;
type: string;
logFile: string;
status: string;
errorMsg: string;
operationLogID: number;
resourceID: number;
currentStep: string;
progressCurrent: number;
progressTotal: number;
progressPercent: number;
progressMessage: string;
endAt: Date;
createdAt: Date;
}
}