refactor: remove departmentId from Class entity

This commit is contained in:
2026-07-09 17:32:37 +08:00
parent 40fef906cd
commit 22bc1876d8
9 changed files with 4 additions and 116 deletions

View File

@@ -9,8 +9,6 @@ export class CreateClassDto {
@IsString() @IsNotEmpty()
code: string;
@IsOptional() @IsInt()
departmentId?: number;
@IsEnum(ClassType) @IsString() @IsNotEmpty()
classType: string;
@@ -58,8 +56,6 @@ export class UpdateClassDto {
@IsOptional() @IsString()
code?: string;
@IsOptional() @IsInt()
departmentId?: number;
@IsEnum(ClassType) @IsOptional() @IsString()
classType?: string;
@@ -90,10 +86,6 @@ export class UpdateClassDto {
}
export class QueryClassDto {
@IsOptional()
@Type(() => Number)
@IsInt()
departmentId?: number;
@IsOptional() @IsString()
status?: string;