11 lines
335 B
TypeScript
11 lines
335 B
TypeScript
import { IsNotEmpty, IsString, MaxLength } from 'class-validator';
|
|
import { ApiProperty } from '@nestjs/swagger';
|
|
|
|
export class ReplyReviewDto {
|
|
@IsNotEmpty()
|
|
@IsString()
|
|
@MaxLength(2000)
|
|
@ApiProperty({ description: 'Restaurant reply comment', example: 'از بازخورد شما سپاسگزاریم' })
|
|
comment: string;
|
|
}
|