import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; export class CreateFeedbackDto { @ApiPropertyOptional({ description: '用户 ID' }) userId?: string; @ApiProperty({ description: '反馈类型', enum: ['bug', 'feature', 'general'] }) type: 'bug' | 'feature' | 'general'; @ApiProperty({ description: '反馈内容' }) content: string; @ApiPropertyOptional({ description: '联系方式' }) contact?: string; }