251123:2300 Update T1

This commit is contained in:
2025-11-24 08:15:15 +07:00
parent 9c970f8ed8
commit 3d9b6e4d05
81 changed files with 4232 additions and 347 deletions

View File

@@ -0,0 +1,27 @@
import { IsString, IsOptional, IsInt, IsBoolean } from 'class-validator';
import { Type, Transform } from 'class-transformer';
export class SearchProjectDto {
@IsString()
@IsOptional()
search?: string; // ค้นหาจาก Project Code หรือ Name
@IsOptional()
@IsBoolean()
@Transform(({ value }) => {
if (value === 'true') return true;
if (value === 'false') return false;
return value;
})
isActive?: boolean; // กรองตามสถานะ Active
@IsOptional()
@IsInt()
@Type(() => Number)
page: number = 1;
@IsOptional()
@IsInt()
@Type(() => Number)
limit: number = 20;
}