This commit is contained in:
@@ -89,10 +89,10 @@ export interface CirculationListResponse {
|
||||
* DTO for creating a circulation
|
||||
*/
|
||||
export interface CreateCirculationDto {
|
||||
correspondenceId: number;
|
||||
projectId?: number;
|
||||
correspondenceId: number | string;
|
||||
projectId?: number | string;
|
||||
subject: string;
|
||||
assigneeIds: number[];
|
||||
assigneeIds: (number | string)[];
|
||||
remarks?: string;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
// File: src/types/dto/circulation/create-circulation.dto.ts
|
||||
|
||||
export interface CreateCirculationDto {
|
||||
/** เอกสารต้นเรื่องที่จะเวียน (Correspondence ID) */
|
||||
correspondenceId: number;
|
||||
/** เอกสารต้นเรื่องที่จะเวียน (Correspondence ID or UUID) */
|
||||
correspondenceId: number | string;
|
||||
|
||||
/** หัวข้อเรื่อง (Subject) */
|
||||
subject: string;
|
||||
subject: string;
|
||||
|
||||
/** รายชื่อ User ID ที่ต้องการส่งให้ (ผู้รับผิดชอบ) */
|
||||
assigneeIds: number[];
|
||||
/** รายชื่อ User ID/UUID ที่ต้องการส่งให้ (ผู้รับผิดชอบ) */
|
||||
assigneeIds: (number | string)[];
|
||||
|
||||
/** หมายเหตุเพิ่มเติม (ถ้ามี) */
|
||||
remarks?: string;
|
||||
}
|
||||
remarks?: string;
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// File: src/types/dto/correspondence/create-correspondence.dto.ts
|
||||
|
||||
export interface CreateCorrespondenceDto {
|
||||
/** ID ของโครงการ */
|
||||
projectId: number;
|
||||
/** ID or UUID ของโครงการ */
|
||||
projectId: number | string;
|
||||
|
||||
/** ID ของประเภทเอกสาร (เช่น RFA, LETTER) */
|
||||
typeId: number;
|
||||
@@ -37,8 +37,8 @@ export interface CreateCorrespondenceDto {
|
||||
/** * ✅ Field สำหรับ Impersonation (เลือกองค์กรผู้ส่ง)
|
||||
* ใช้กรณี Admin สร้างเอกสารแทนผู้อื่น
|
||||
*/
|
||||
originatorId?: number;
|
||||
originatorId?: number | string;
|
||||
|
||||
/** รายชื่อผู้รับ */
|
||||
recipients?: { organizationId: number; type: 'TO' | 'CC' }[];
|
||||
recipients?: { organizationId: number | string; type: 'TO' | 'CC' }[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user