90 lines
3.6 KiB
TypeScript
90 lines
3.6 KiB
TypeScript
/**
|
|
* api สรรหา
|
|
*/
|
|
import env from "../index";
|
|
const candidate = `${env.API_CANDIDATE_URI}/candidate/`;
|
|
const periodExam = `${env.API_CANDIDATE_URI}/candidate/period-exam/`;
|
|
const exam_report = `${env.API_URI}/report/exam/`;
|
|
|
|
const cms = `${env.API_CANDIDATE_URI}/cms/`;
|
|
|
|
export default {
|
|
/**
|
|
* api cms
|
|
*/
|
|
cms,
|
|
cmsDeatail: `${cms}detail`,
|
|
cmsAbout: `${cms}about`,
|
|
cmsLogo: `${cms}logo`,
|
|
cmsBanner: `${cms}banner`,
|
|
cmsAgency: `${cms}agency`,
|
|
cmsGoverment: `${cms}government`,
|
|
|
|
/**
|
|
* api รอบการสอบ
|
|
*/
|
|
periodExam: `${periodExam}`,
|
|
periodExamType: (type: string) => `${periodExam}type/${type}`,
|
|
periodExamId: (examId: string) => `${periodExam}${examId}`,
|
|
periodExamDoc: (examId: string) => `${periodExam}doc/${examId}`,
|
|
periodExamImg: (examId: string) => `${periodExam}img/${examId}`,
|
|
periodExamStatus: (examId: string) => `${periodExam}status-payment/${examId}`,
|
|
|
|
countDashbordPeriodExam: (examId: string) =>
|
|
`${periodExam}dashboard/${examId}`,
|
|
|
|
candidateId: (candidateId: string) => `${candidate}${candidateId}`,
|
|
candidateInformation: (candidateId: string) =>
|
|
`${periodExam}information/${candidateId}`,
|
|
candidateAddress: (candidateId: string) =>
|
|
`${periodExam}address/${candidateId}`,
|
|
candidateFamily: (candidateId: string) =>
|
|
`${periodExam}family/${candidateId}`,
|
|
candidateOccupation: (candidateId: string) =>
|
|
`${periodExam}occupation/${candidateId}`,
|
|
candidateContact: (candidateId: string) =>
|
|
`${periodExam}contact/${candidateId}`,
|
|
candidateEducation: (candidateId: string) =>
|
|
`${periodExam}education/${candidateId}`,
|
|
candidateAdminEducation: (candidateId: string) =>
|
|
`${candidate}education/${candidateId}`,
|
|
candidateDocument: (candidateId: string) =>
|
|
`${periodExam}document/${candidateId}`,
|
|
candidateCareer: (candidateId: string) =>
|
|
`${periodExam}career/${candidateId}`,
|
|
candidateAdminCareer: (candidateId: string) =>
|
|
`${candidate}career/${candidateId}`,
|
|
candidateProfile: (candidateId: string) =>
|
|
`${candidate}profile-image/${candidateId}`,
|
|
candidateUpload: (candidateId: string) => `${candidate}upload/${candidateId}`,
|
|
candidateCheckRegister: (candidateId: string) =>
|
|
`${candidate}check-register/${candidateId}`,
|
|
candidateCheckRegisters: `${candidate}check-registers`,
|
|
candidateRejectRegister: (candidateId: string) =>
|
|
`${candidate}reject-register/${candidateId}`,
|
|
candidateCheckPayment: (candidateId: string) =>
|
|
`${candidate}check-payment/${candidateId}`,
|
|
candidate,
|
|
candidateOfPeriodExam: (status: string, examId: string) =>
|
|
`${periodExam}${status}/${examId}`,
|
|
candidateCard: (candidateId: string) => `${candidate}card/${candidateId}`,
|
|
|
|
periodExamUploadSeat: (examId: string) =>
|
|
`${periodExam}upload-seat/${examId}`,
|
|
periodExamUploadPoint: (examId: string) =>
|
|
`${periodExam}upload-point/${examId}`,
|
|
periodExamDownload: (examId: string) => `${periodExam}download/${examId}`,
|
|
periodExamDownloadDetail: (examId: string) =>
|
|
`${periodExam}download/detail/${examId}`,
|
|
periodExamDownloadDashboard: (examId: string) =>
|
|
`${periodExam}download/dashboard/${examId}`,
|
|
periodExamDownloadPayment: (examId: string) =>
|
|
`${periodExam}download/payment/${examId}`,
|
|
candidatePayment: (candidateId: string) =>
|
|
`${candidate}payment-image/${candidateId}`,
|
|
periodExamPayment: (examId: string) => `${periodExam}payment/${examId}`,
|
|
|
|
exportExamCandidateList: (id: string) => `${exam_report}candidate-exam/${id}`,
|
|
exportExamPassExamList: (id: string) => `${exam_report}pass-exam/${id}`,
|
|
periodExamToPlacement: (examId: string) => `${periodExam}placement/${examId}`,
|
|
};
|