import { ApiProperty } from '@nestjs/swagger'; import { IsOptional, IsString } from 'class-validator'; /** * 跳过服药 DTO */ export class SkipMedicationDto { @ApiProperty({ description: '跳过原因或备注', example: '今天状态不好,暂时跳过', required: false, }) @IsOptional() @IsString() note?: string; }