@@ -1,17 +1,13 @@
|
|||||||
|
import { Expose } from "class-transformer";
|
||||||
import { IsNotEmpty, IsString, MinLength } from "class-validator";
|
import { IsNotEmpty, IsString, MinLength } from "class-validator";
|
||||||
|
|
||||||
import { ApiProperty } from "../../../common/decorator/swggerDocs";
|
import { ApiProperty } from "../../../common/decorator/swggerDocs";
|
||||||
|
|
||||||
export class CreateReportQuestionDTO {
|
export class CreateReportQuestionDTO {
|
||||||
|
@Expose()
|
||||||
@IsNotEmpty()
|
@IsNotEmpty()
|
||||||
@IsString()
|
@IsString()
|
||||||
@MinLength(3)
|
@MinLength(3)
|
||||||
@ApiProperty({ type: "string", description: "Title of the question", example: "نام کالا نادرست است" })
|
@ApiProperty({ type: "string", description: "Title of the question", example: "نام کالا نادرست است" })
|
||||||
title: string;
|
title: string;
|
||||||
|
|
||||||
// @IsNotEmpty()
|
|
||||||
// @IsString()
|
|
||||||
// @MinLength(3)
|
|
||||||
// @ApiProperty({ type: "string", description: "placeholder of the question", example: "" })
|
|
||||||
// placeholder: string;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user