2023-06-01 12:54:58 +07:00
|
|
|
/**
|
|
|
|
|
* api สรรหา - สอบแข่งขัน
|
|
|
|
|
*/
|
2023-07-26 18:49:20 +07:00
|
|
|
import env from "../index";
|
|
|
|
|
const recruit = `${env.API_URI}/recruit/`;
|
|
|
|
|
const recruit_report = `${env.API_URI}/report/recruit/`;
|
2023-06-01 12:54:58 +07:00
|
|
|
|
|
|
|
|
export default {
|
2023-07-26 18:49:20 +07:00
|
|
|
getCandidates: `${recruit}candidate`,
|
|
|
|
|
saveCandidates: `${recruit}candidate`,
|
|
|
|
|
deleteCandidates: (id: string) => `${recruit}candidate/${id}`,
|
|
|
|
|
getExamDetail: (id: string, examId: string) =>
|
|
|
|
|
`${recruit}exam/${id}/${examId}`,
|
|
|
|
|
|
|
|
|
|
saveScores: (id: string) => `${recruit}score/${id}`,
|
|
|
|
|
|
|
|
|
|
getExamResultById: (id: string) => `${recruit}exam/${id}`,
|
|
|
|
|
|
|
|
|
|
// จัดการรอบการสอบ
|
|
|
|
|
savePeriod: `${recruit}period`,
|
|
|
|
|
editPeriod: (id: string) => `${recruit}period/${id}`,
|
|
|
|
|
getPeriodById: (id: string) => `${recruit}period/${id}`,
|
|
|
|
|
uploadCandidates: (id: string) => `${recruit}candidate/${id}`,
|
2025-09-03 10:13:16 +07:00
|
|
|
uploadResult: (id: string) => `${recruit}result/${id}`,
|
2023-07-26 18:49:20 +07:00
|
|
|
getImportHistory: (id: string) => `${recruit}history/${id}`,
|
|
|
|
|
|
|
|
|
|
//upload
|
|
|
|
|
periodRecruitDoc: (examId: string) => `${recruit}doc/${examId}`,
|
|
|
|
|
periodRecruitImg: (examId: string) => `${recruit}img/${examId}`,
|
|
|
|
|
periodDeleteDoc: (docId: string) => `${recruit}doc/${docId}`,
|
|
|
|
|
periodDeleteImg: (docId: string) => `${recruit}img/${docId}`,
|
|
|
|
|
|
|
|
|
|
// รายงาน
|
|
|
|
|
downloadExamReport: (id: string, examId: string, type: number = 2) =>
|
|
|
|
|
`${recruit_report}certificate/${type}/${id}/${examId}`,
|
|
|
|
|
downloadScoreReport: (id: string, examId: string) =>
|
|
|
|
|
`${recruit_report}score/${id}/${examId}`,
|
|
|
|
|
exportExam: (id: string) => `${recruit}export/exam/${id}`,
|
|
|
|
|
exportPassExam: (id: string) => `${recruit}export/pass-exam/${id}`,
|
|
|
|
|
exportPassResultExam: (id: string) => `${recruit}export/pass/${id}`,
|
|
|
|
|
|
|
|
|
|
exportCandidateList: (id: string) => `${recruit_report}candidate/${id}`,
|
2025-11-14 11:45:25 +07:00
|
|
|
exportPassExamList: (id: string) => `${recruit_report}pass-new/${id}`,
|
2023-07-26 18:49:20 +07:00
|
|
|
periodRecruitToPlacement: (examId: string) => `${recruit}placement/${examId}`,
|
2024-12-06 14:15:27 +07:00
|
|
|
|
2025-11-14 11:45:25 +07:00
|
|
|
reportRecruit: (type: string) => `${recruit}${type}`,
|
2025-05-29 16:01:45 +07:00
|
|
|
|
2025-11-14 11:45:25 +07:00
|
|
|
exportCandidateListNew: (id: string) =>
|
|
|
|
|
`${recruit_report}candidate-new/${id}`,
|
|
|
|
|
// reportCandidateListNew: (id: string) =>
|
|
|
|
|
// `${recruit}report/candidate-new/${id}`, ปรับไปใช้ api ด้านบนแทน
|
|
|
|
|
examReport: (id: string, no: string) => `${recruit}report/exam/${id}/${no}`,
|
2023-07-26 18:49:20 +07:00
|
|
|
};
|