refactor: resolve remaining field audit issues
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { PartialType } from '@nestjs/mapped-types';
|
||||
import { IsOptional, IsString, IsNumber, IsDateString } from 'class-validator';
|
||||
|
||||
export class UpsertProfileDto {
|
||||
@@ -20,6 +21,8 @@ export class CreateEnrollmentDto {
|
||||
@IsOptional() @IsString() status?: string;
|
||||
}
|
||||
|
||||
export class UpdateEnrollmentDto extends PartialType(CreateEnrollmentDto) {}
|
||||
|
||||
export class CreateExamScoreDto {
|
||||
@IsString() examType: string;
|
||||
@IsOptional() @IsString() examName?: string;
|
||||
@@ -31,6 +34,8 @@ export class CreateExamScoreDto {
|
||||
@IsOptional() @IsNumber() enrollmentId?: number;
|
||||
}
|
||||
|
||||
export class UpdateExamScoreDto extends PartialType(CreateExamScoreDto) {}
|
||||
|
||||
export class CreateLearningRecordDto {
|
||||
@IsDateString() recordDate: string;
|
||||
@IsString() recordType: string;
|
||||
@@ -39,6 +44,8 @@ export class CreateLearningRecordDto {
|
||||
@IsOptional() @IsString() nextStep?: string;
|
||||
}
|
||||
|
||||
export class UpdateLearningRecordDto extends PartialType(CreateLearningRecordDto) {}
|
||||
|
||||
export class UpsertResultDto {
|
||||
@IsOptional() @IsNumber() cultureFinalScore?: number;
|
||||
@IsOptional() @IsNumber() professionalFinalScore?: number;
|
||||
|
||||
Reference in New Issue
Block a user