260324:2133 Refactor correspondence & rfa
CI / CD Pipeline / build (push) Failing after 17m3s
CI / CD Pipeline / deploy (push) Has been skipped

This commit is contained in:
admin
2026-03-24 21:33:59 +07:00
parent 42fc9fa502
commit aa82b890a5
42 changed files with 2617 additions and 233 deletions
+3
View File
@@ -25,6 +25,9 @@ export interface CorrespondenceRevision {
body?: string;
remarks?: string;
dueDate?: string;
documentDate?: string;
issuedDate?: string;
receivedDate?: string;
schemaVersion?: number;
description?: string;
isCurrent: boolean;
@@ -1,11 +1,11 @@
// File: src/types/dto/correspondence/add-reference.dto.ts
export interface AddReferenceDto {
/** ID ของเอกสารที่ต้องการอ้างอิงถึง */
targetId: number;
/** UUID ของเอกสารที่ต้องการอ้างอิงถึง (ADR-019) */
targetUuid: string;
}
export interface RemoveReferenceDto {
/** ID ของเอกสารที่ต้องการลบการอ้างอิง */
targetId: number;
/** UUID ของเอกสารที่ต้องการลบการอ้างอิง (ADR-019) */
targetUuid: string;
}
@@ -48,6 +48,9 @@ export interface CreateCorrespondenceDto {
*/
originatorId?: number | string;
/** Temp IDs from two-phase file upload (POST /files/upload → tempId) */
attachmentTempIds?: string[];
/** รายชื่อผู้รับ */
recipients?: { organizationId: number | string; type: 'TO' | 'CC' }[];
}
@@ -5,6 +5,7 @@ export interface SearchCorrespondenceDto {
typeId?: number; // กรองตามประเภทเอกสาร
projectId?: number; // กรองตามโครงการ
statusId?: number; // กรองตามสถานะ (จาก Revision ปัจจุบัน)
status?: string; // กรองตามสถานะ code string (เช่น DRAFT, IN_REVIEW)
revisionStatus?: 'CURRENT' | 'ALL' | 'OLD'; // กรองตามสถานะ Revision
// เพิ่มเติมสำหรับการแบ่งหน้า (Pagination)
@@ -7,6 +7,9 @@ export interface SearchQueryDto {
/** กรองประเภท: 'rfa', 'correspondence', 'drawing' */
type?: string;
/** กรองสถานะเอกสาร */
status?: string;
/** ID ของโครงการ */
projectId?: number;