Files
cyh-tk-backend/src/logs/logs.types.ts
zhxiao1124 e84351e8ed refactor: 重构项目目录与代码结构,清理冗余文件
本次提交进行了大规模的项目结构调整:
1. 调整文件目录归属,将模块代码按功能域重新组织
2. 删除多处冗余的DTO、实体类和模块文件
3. 统一了常量、装饰器、工具类的存放位置
4. 修复了`.gitignore`的日志目录匹配规则
5. 新增了健康检查、认证、用户、剧集、订单等核心业务模块
2026-07-02 19:17:43 +08:00

35 lines
684 B
TypeScript

export interface RequestLogRecord {
id?: number;
requestId: string;
method: string;
path: string;
query?: unknown;
body?: unknown;
statusCode: number;
responseCode: number;
message: string;
costMs: number;
userId?: number;
adminId?: number;
ip?: string;
userAgent?: string;
errorStack?: string;
createdAt?: string;
}
export interface PlaybackErrorLogRecord {
id: number;
requestId: string;
userId?: number;
dramaId: number;
episodeId: number;
playUrl: string;
playerErrorCode: string;
message: string;
progressSeconds?: number;
networkType?: string;
device?: Record<string, unknown>;
occurredAt: string;
createdAt: string;
}