feat(medications): 新增药物激活状态管理及相关记录更新功能

This commit is contained in:
richarjiang
2025-11-10 11:04:36 +08:00
parent 188b4addca
commit e25002e018
4 changed files with 235 additions and 26 deletions

View File

@@ -8,6 +8,7 @@ import {
IsArray,
IsDateString,
IsOptional,
IsBoolean,
Min,
ArrayMinSize,
Matches,
@@ -101,4 +102,14 @@ export class CreateMedicationDto {
@IsString()
@IsOptional()
note?: string;
@ApiProperty({
description: '是否激活',
example: true,
required: false,
default: true
})
@IsOptional()
@IsBoolean()
isActive?: boolean;
}