fix: review blockers — entity registration, session enum, conflict date-range, @Type decorators

This commit is contained in:
2026-07-05 20:20:43 +08:00
parent 99162168b1
commit b7117ddf2d
5 changed files with 22 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
import { IsOptional, IsString, IsNotEmpty, IsInt, IsArray, IsDateString, IsEnum } from 'class-validator';
import { Type } from 'class-transformer';
import { ClassType, ClassStatus, TeacherRoleType } from '../../entities';
export class CreateClassDto {
@@ -84,7 +85,9 @@ export class UpdateClassDto {
}
export class QueryClassDto {
@IsOptional() @IsInt()
@IsOptional()
@Type(() => Number)
@IsInt()
departmentId?: number;
@IsOptional() @IsString()