refactor: strengthen client boundaries and quality gates
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { IsDateString, IsIn, IsOptional, IsString, MaxLength } from 'class-validator';
|
||||
|
||||
export class ClientSystemLogExportDto {
|
||||
@IsOptional() @IsString() @MaxLength(200) keyword?: string;
|
||||
@IsOptional() @IsIn(['all', 'debug', 'info', 'warning', 'error']) level?: string;
|
||||
@IsOptional() @IsString() @MaxLength(100) module?: string;
|
||||
@IsOptional() @IsIn(['7d', '30d']) range?: string;
|
||||
@IsOptional() @IsDateString({ strict: true }) createdAtFrom?: string;
|
||||
@IsOptional() @IsDateString({ strict: true }) createdAtTo?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user