From 8d7fd685093a93aca7180862554b4cd5387db3a5 Mon Sep 17 00:00:00 2001 From: hailin Date: Thu, 26 Feb 2026 20:26:42 -0800 Subject: [PATCH] =?UTF-8?q?fix(admin):=20=E9=A2=84=E7=A7=8D=E5=BC=80?= =?UTF-8?q?=E5=85=B3DTO=E6=B7=BB=E5=8A=A0class-validator=E8=A3=85=E9=A5=B0?= =?UTF-8?q?=E5=99=A8=EF=BC=8C=E4=BF=AE=E5=A4=8D400=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- .../src/pre-planting/pre-planting-config.controller.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/services/admin-service/src/pre-planting/pre-planting-config.controller.ts b/backend/services/admin-service/src/pre-planting/pre-planting-config.controller.ts index 93fde51e..acaf0851 100644 --- a/backend/services/admin-service/src/pre-planting/pre-planting-config.controller.ts +++ b/backend/services/admin-service/src/pre-planting/pre-planting-config.controller.ts @@ -9,15 +9,21 @@ import { HttpStatus, } from '@nestjs/common'; import { ApiTags, ApiOperation, ApiResponse, ApiQuery } from '@nestjs/swagger'; +import { IsBoolean, IsOptional, IsString } from 'class-validator'; import { PrePlantingConfigService } from './pre-planting-config.service'; import { PrePlantingProxyService } from './pre-planting-proxy.service'; class UpdatePrePlantingConfigDto { + @IsBoolean() isActive: boolean; + + @IsOptional() + @IsString() updatedBy?: string; } class TogglePrePlantingConfigDto { + @IsBoolean() isActive: boolean; }