mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-02-18 10:40:50 +08:00
feat: initialize new React application structure with TypeScript, ESLint, and Prettier configurations, while removing legacy files and adding new components and pages for enhanced functionality
This commit is contained in:
23
src/types/log.ts
Normal file
23
src/types/log.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* 日志相关类型
|
||||
* 基于原项目 src/modules/logs.js
|
||||
*/
|
||||
|
||||
// 日志级别
|
||||
export type LogLevel = 'info' | 'warn' | 'error' | 'debug';
|
||||
|
||||
// 日志条目
|
||||
export interface LogEntry {
|
||||
timestamp: string;
|
||||
level: LogLevel;
|
||||
message: string;
|
||||
details?: any;
|
||||
}
|
||||
|
||||
// 日志筛选
|
||||
export interface LogFilter {
|
||||
level?: LogLevel;
|
||||
searchQuery: string;
|
||||
startTime?: Date;
|
||||
endTime?: Date;
|
||||
}
|
||||
Reference in New Issue
Block a user