import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { IsString, IsOptional } from 'class-validator';

export class SubmitReviewDto {
  @ApiProperty({ description: '评分等级', example: 'Hard' })
  @IsString()
  rating: string;

  @ApiPropertyOptional({ description: '回答文本' })
  @IsString()
  @IsOptional()
  responseText?: string;
}
