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

@@ -8,6 +8,7 @@ import {
Min,
Max,
} from 'class-validator';
import { Type } from 'class-transformer';
export class CreateScheduleDto {
@IsInt()
@@ -115,14 +116,17 @@ export class UpdateScheduleDto {
export class QueryScheduleDto {
@IsOptional()
@Type(() => Number)
@IsInt()
classroomId?: number;
@IsOptional()
@Type(() => Number)
@IsInt()
classId?: number;
@IsOptional()
@Type(() => Number)
@IsInt()
@Min(1)
@Max(7)
@@ -147,6 +151,7 @@ export class WeeklyViewQueryDto {
endDate?: string;
@IsOptional()
@Type(() => Number)
@IsInt()
classroomId?: number;
}