feat:添加日志功能
This commit is contained in:
@@ -137,3 +137,28 @@ export class AdminCommonResponseDto {
|
||||
@ApiProperty({ required: false, example: 'ADMIN_OPERATION_FAILED' })
|
||||
error_code?: string;
|
||||
}
|
||||
|
||||
class AdminRuntimeLogsDataDto {
|
||||
@ApiProperty({ example: 'dev.log' })
|
||||
file: string;
|
||||
|
||||
@ApiProperty({ description: '日志文件最后更新时间(ISO)', example: '2025-12-19T19:10:15.000Z' })
|
||||
updated_at: string;
|
||||
|
||||
@ApiProperty({ type: [String], description: '日志行(按时间顺序,越靠后越新)' })
|
||||
lines: string[];
|
||||
}
|
||||
|
||||
export class AdminRuntimeLogsResponseDto {
|
||||
@ApiProperty({ example: true })
|
||||
success: boolean;
|
||||
|
||||
@ApiProperty({ type: AdminRuntimeLogsDataDto, required: false })
|
||||
data?: AdminRuntimeLogsDataDto;
|
||||
|
||||
@ApiProperty({ example: '运行日志获取成功' })
|
||||
message: string;
|
||||
|
||||
@ApiProperty({ required: false, example: 'ADMIN_OPERATION_FAILED' })
|
||||
error_code?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user