260318:1401 Fix UUID #05
Build and Deploy / deploy (push) Failing after 11m8s

This commit is contained in:
admin
2026-03-18 14:01:32 +07:00
parent ba642e7e42
commit e5769269a8
37 changed files with 460 additions and 328 deletions
+12 -8
View File
@@ -1,11 +1,12 @@
import { IsInt, IsOptional, IsString, IsNotEmpty } from 'class-validator';
import { IsInt, IsOptional, IsString, IsUUID } from 'class-validator';
import { Type } from 'class-transformer';
export class SearchRfaDto {
@IsInt()
@Type(() => Number)
@IsNotEmpty()
projectId!: number; // บังคับระบุ Project
@IsUUID('all')
projectUuid!: string; // ADR-019: Public UUID of the project
/** @internal Resolved INT ID — set by controller, do NOT expose in API */
projectId?: number;
@IsOptional()
@IsInt()
@@ -13,9 +14,12 @@ export class SearchRfaDto {
rfaTypeId?: number; // กรองตามประเภท RFA
@IsOptional()
@IsInt()
@Type(() => Number)
statusId?: number; // กรองตามสถานะ (เช่น Draft, For Approve)
@IsString()
statusCode?: string; // กรองตามสถานะโดยใช้ status code เช่น 'DFT', 'FAP'
@IsOptional()
@IsString()
revisionStatus?: string; // 'CURRENT' | 'OLD' | 'ALL' — default 'CURRENT'
@IsOptional()
@IsString()