แก้ไฟล์ split2

This commit is contained in:
Kittapath 2023-06-19 16:00:12 +07:00
parent e1a25d437d
commit a66f6bfe14
4 changed files with 154 additions and 75 deletions

View file

@ -25,6 +25,8 @@ export default {
*/
listOrganizationAgency: (organizationType: string) =>
`${organizationPath}type/${organizationType}`,
listOrganizationHistoryAgency: (organizationType: string) =>
`${organizationPath}history/type/${organizationType}`,
/**api Tree
*

View file

@ -1,85 +1,86 @@
/**
* 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/`
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/`
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 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}`,
/**
* 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}`,
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}`,
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}`,
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}`,
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}`,
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}`,
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}`,
candidatePayment: (candidateId: string) =>
`${candidate}payment-image/${candidateId}`,
periodExamPayment: (examId: string) => `${periodExam}payment/${examId}`,
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}`,
}
exportExamCandidateList: (id: string) => `${exam_report}candidate-exam/${id}`,
exportExamPassExamList: (id: string) => `${exam_report}pass-exam/${id}`,
};

View file

@ -5,7 +5,13 @@ import env from "../index";
const profile = `${env.API_URI_PROFILE_SERVICE}/profile/`;
const report = `${env.API_REPORT_URI}/report/profile/`;
const organizationRoot = `${env.API_URI}/profile/organization/list/root`;
export default {
/**
* api
*/
organizationRoot,
profileUser: `${profile}user`,
profileValidateId: (profileId: string) => `${profile}validate/${profileId}`,
profilePaperDownloadId: (id: string) => `${profile}paper/download/${id}`,
@ -110,9 +116,11 @@ export default {
profileSwapDiscipline: `${profile}swap_discipline`,
profileLeaveId: (profileId: string) => `${profile}leave/${profileId}`,
profileLeaveId: (leaveId: string) => `${profile}leave/${leaveId}`,
profileLeaveHisId: (profileId: string) =>
`${profile}leave/history/${profileId}`,
profileLeaveTotalId: (profileId: string) =>
`${profile}leave/total/${profileId}`,
profileSalaryId: (profileId: string) => `${profile}salary/${profileId}`,
profileSalaryHisId: (profileId: string) =>
@ -122,6 +130,13 @@ export default {
profileSalaryCopyId: (profileId: string) =>
`${profile}salary-copy/${profileId}`,
// ************************************
profileSalaryEmployeeId: (profileId: string) =>
`${profile}salary/employee/${profileId}`,
profileSalaryEmployeeHisId: (profileId: string) =>
`${profile}salary/employee/history/${profileId}`,
// ************************************
profileInforId: (profileId: string) => `${profile}information/${profileId}`,
profileInforHisId: (profileId: string) =>
`${profile}information/history/${profileId}`,
@ -158,4 +173,11 @@ export default {
profileReportId: (profileId: string) => `${report}kk1/${profileId}`,
profileKp7ShortId: (profileId: string) => `${report}kp7-short/${profileId}`,
profileChangeNameId: (profileId: string) =>
`${profile}changeName/${profileId}`,
profileChangeNameHisId: (profileId: string) =>
`${profile}changeName/history/${profileId}`,
profileCitizenId: (citizenId: string) => `${profile}citizenId/${citizenId}`,
};