Explorar el Código

feat: add verification API methods to s8ExceptionApi

YY968XX hace 2 meses
padre
commit
c1c0d92af6
Se han modificado 1 ficheros con 12 adiciones y 0 borrados
  1. 12 0
      Web/src/views/aidop/s8/api/s8ExceptionApi.ts

+ 12 - 0
Web/src/views/aidop/s8/api/s8ExceptionApi.ts

@@ -30,6 +30,12 @@ export interface S8ExceptionRow {
 	closedAt?: string | null;
 	activeFlowInstanceId?: number | null;
 	activeFlowBizType?: string | null;
+	verifierId?: number | null;
+	verifierName?: string | null;
+	verificationAssignedAt?: string | null;
+	verifiedAt?: string | null;
+	verificationResult?: string | null;
+	verificationRemark?: string | null;
 }
 
 export interface S8DecisionRow {
@@ -76,4 +82,10 @@ export const s8ExceptionApi = {
 		service.post(`/api/aidop/s8/exceptions/${id}/close`, body ?? {}).then(unwrap),
 	comment: (id: number, body?: { remark?: string }) =>
 		service.post(`/api/aidop/s8/exceptions/${id}/comment`, body ?? {}).then(unwrap),
+	submitVerification: (id: number, body: { verifierId: number; remark?: string }, currentUserId: number) =>
+		service.post(`/api/aidop/s8/exceptions/${id}/submit-verification?currentUserId=${currentUserId}`, body).then(unwrap),
+	approveVerification: (id: number, body: { remark?: string }, currentUserId: number) =>
+		service.post(`/api/aidop/s8/exceptions/${id}/approve-verification?currentUserId=${currentUserId}`, body).then(unwrap),
+	rejectVerification: (id: number, body: { remark: string }, currentUserId: number) =>
+		service.post(`/api/aidop/s8/exceptions/${id}/reject-verification?currentUserId=${currentUserId}`, body).then(unwrap),
 };