260324:1349 Refactor RFA #01
CI / CD Pipeline / build (push) Failing after 1m52s
CI / CD Pipeline / deploy (push) Has been skipped

This commit is contained in:
admin
2026-03-24 13:49:30 +07:00
parent a3e3206b06
commit 4cd0952482
29 changed files with 1700 additions and 306 deletions
+11 -2
View File
@@ -37,6 +37,15 @@ export const rfaService = {
return response.data;
},
/**
* Submit a Draft RFA to workflow
*/
submit: async (uuid: string, templateId: number) => {
// POST /rfas/:uuid/submit (ADR-019)
const response = await apiClient.post(`/rfas/${uuid}/submit`, { templateId });
return response.data;
},
/**
* แก้ไข RFA (เฉพาะสถานะ Draft)
*/
@@ -50,8 +59,8 @@ export const rfaService = {
* ดำเนินการ Workflow (อนุมัติ / ตีกลับ / ส่งต่อ)
*/
processWorkflow: async (uuid: string, actionData: WorkflowActionDto) => {
// POST /rfas/:uuid/workflow (ADR-019)
const response = await apiClient.post(`/rfas/${uuid}/workflow`, actionData);
// POST /rfas/:uuid/action (ADR-019)
const response = await apiClient.post(`/rfas/${uuid}/action`, actionData);
return response.data;
},