apps/recallassess/recallassess-api/src/api/admin/knowledge-review/dto/quiz/knowledge-review-question-add.dto.ts
Properties |
|
| course_id |
Type : number
|
Decorators :
@Expose()
|
| knowledge_review_id |
Type : number
|
Decorators :
@Expose()
|
| question_text |
Type : string
|
Decorators :
@Expose()
|
| Optional question_type |
Type : string
|
Decorators :
@Expose()
|
| Optional sort_order |
Type : number
|
Decorators :
@Expose()
|
import { IsInt, IsOptional, IsString } from "class-validator";
import {Expose, Exclude} from "class-transformer";
@Exclude()
export class KnowledgeReviewQuestionAddDto {
@Expose()
@IsInt()
course_id!: number;
@Expose()
@IsInt()
knowledge_review_id!: number;
@Expose()
@IsString()
question_text!: string;
@Expose()
@IsOptional()
@IsString()
question_type?: string;
@Expose()
@IsOptional()
@IsInt()
sort_order?: number;
}