260324:2133 Refactor correspondence & rfa
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user