perf: 支持课程补录
This commit is contained in:
23
packages/server/src/user/dto/create-lesson-supplement.dto.ts
Normal file
23
packages/server/src/user/dto/create-lesson-supplement.dto.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { IsInt, IsOptional, IsString, Matches, Max, MaxLength, Min } from 'class-validator'
|
||||
|
||||
export class CreateLessonSupplementDto {
|
||||
@IsString()
|
||||
@Matches(/^[a-zA-Z0-9_-]{16,80}$/)
|
||||
readonly requestId!: string
|
||||
|
||||
@IsInt()
|
||||
@Min(1)
|
||||
@Max(999)
|
||||
readonly quantity!: number
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@Matches(/\S/)
|
||||
@MaxLength(191)
|
||||
readonly membershipId?: string
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MaxLength(200)
|
||||
readonly remark?: string
|
||||
}
|
||||
Reference in New Issue
Block a user