690514:2019 204-rfa-approval-refactor #01
CI / CD Pipeline / build (push) Successful in 6m1s
CI / CD Pipeline / deploy (push) Failing after 6m42s

This commit is contained in:
2026-05-14 20:19:21 +07:00
parent 07cc6d47b1
commit 0240d80da5
183 changed files with 20050 additions and 1017 deletions
+7 -2
View File
@@ -9,6 +9,11 @@ export interface WorkflowActionDto {
stepNumber?: number; // อาจจะไม่จำเป็นถ้า Backend เช็ค state ปัจจุบันได้เอง
}
export interface SubmitRfaDto {
templateId: number;
reviewTeamPublicId?: string;
}
export const rfaService = {
/**
* ดึงรายการ RFA ทั้งหมด (รองรับ Search & Filter)
@@ -40,9 +45,9 @@ export const rfaService = {
/**
* Submit a Draft RFA to workflow
*/
submit: async (uuid: string, templateId: number) => {
submit: async (uuid: string, data: SubmitRfaDto) => {
// POST /rfas/:uuid/submit (ADR-019)
const response = await apiClient.post(`/rfas/${uuid}/submit`, { templateId });
const response = await apiClient.post(`/rfas/${uuid}/submit`, data);
return response.data;
},