feat(ticket): add issue-by-issue repair review page
This commit is contained in:
@@ -2,6 +2,8 @@ import { API_ROUTES } from '@/constants/apiRoutes';
|
||||
import type {
|
||||
DiscardDetectionPayload,
|
||||
DiscardDetectionResponse,
|
||||
ReviewDetectionRepairProofPayload,
|
||||
ReviewDetectionRepairProofResponse,
|
||||
} from '@/types';
|
||||
|
||||
import axiosClient from '../axios/axios';
|
||||
@@ -18,4 +20,17 @@ export const detectionService = {
|
||||
|
||||
return response.data;
|
||||
},
|
||||
|
||||
reviewRepairProof: async (
|
||||
ticketId: string,
|
||||
detectionId: number,
|
||||
payload: ReviewDetectionRepairProofPayload,
|
||||
): Promise<ReviewDetectionRepairProofResponse> => {
|
||||
const response = await axiosClient.post<ReviewDetectionRepairProofResponse>(
|
||||
API_ROUTES.TICKETS.REVIEW_DETECTION_REPAIR_PROOF(ticketId, detectionId),
|
||||
payload,
|
||||
);
|
||||
|
||||
return response.data;
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user