clone code
This commit is contained in:
parent
c9597d1e38
commit
d57bcd1719
362 changed files with 104804 additions and 0 deletions
161
src/api/registry/api.profile.ts
Normal file
161
src/api/registry/api.profile.ts
Normal file
|
|
@ -0,0 +1,161 @@
|
|||
/**
|
||||
* api สรรหา - สอบแข่งขัน
|
||||
*/
|
||||
import env from "../index";
|
||||
const profile = `${env.API_URI_PROFILE_SERVICE}/profile/`;
|
||||
const report = `${env.API_REPORT_URI}/report/profile/`;
|
||||
|
||||
export default {
|
||||
profileUser: `${profile}user`,
|
||||
profileValidateId: (profileId: string) => `${profile}validate/${profileId}`,
|
||||
profilePaperDownloadId: (id: string) => `${profile}paper/download/${id}`,
|
||||
profilePaperId: (id: string) => `${profile}paper/${id}`,
|
||||
|
||||
profileMultiId: (id: string) => `${profile}multi-paper/${id}`,
|
||||
profileMultiOId: (id: string) => `${profile}multi-paper-other/${id}`,
|
||||
profileMultiKId: (id: string) => `${profile}multi-paper-kk1/${id}`,
|
||||
|
||||
profileHistoryselfId: (profileId: string) =>
|
||||
`${profile}/historyself${profileId}`,
|
||||
|
||||
profileOrganiNameId: (id: string) => `${profile}organization/name/${id}`,
|
||||
profileOrganiId: (id: string) => `${profile}organization/${id}`,
|
||||
profileOrganiSelectId: (id: string) => `${profile}organization/select/${id}`,
|
||||
profileOrganiRootId: (id: string) => `${profile}organization/root/${id}`,
|
||||
|
||||
profileLeaveOrganiId: (id: string) => `${profile}leave/organization/${id}`,
|
||||
|
||||
profileSearchNewOcId: (id: string) => `${profile}search/new/oc/${id}`,
|
||||
profileSearchNewOcIdType: (id: string, type: string) =>
|
||||
`${profile}search/new/oc/${id}/${type}`,
|
||||
profileSearchId: (id: string) => `${profile}search/${id}`,
|
||||
profileSearchOcId: (id: string) => `${profile}search/oc/${id}`,
|
||||
profileSearchNewOcLeaveId: (id: string) =>
|
||||
`${profile}search/new/oc/leave/${id}`,
|
||||
profileSearchNewOcLeaveIdType: (id: string, type: string) =>
|
||||
`${profile}search/new/oc/leave/${id}/${type}`,
|
||||
profileSearchOcLeaveId: (id: string) => `${profile}search/oc/leave/${id}`,
|
||||
profileSearchNewEmOcId: (id: string) =>
|
||||
`${profile}search/new-employee/oc/${id}`,
|
||||
profileSearchNewEmOcLeaveId: (id: string) =>
|
||||
`${profile}search/new-employee/oc/leave/${id}`,
|
||||
|
||||
profileCoupleId: (profileId: string) => `${profile}couple/${profileId}`,
|
||||
|
||||
profileFatherId: (profileId: string) => `${profile}father/${profileId}`,
|
||||
|
||||
profileMotherId: (profileId: string) => `${profile}mother/${profileId}`,
|
||||
|
||||
profileAdsId: (profileId: string) => `${profile}address/current/${profileId}`,
|
||||
profileAdsCurAdrsId: (profileId: string) =>
|
||||
`${profile}address/currentAdrs/${profileId}`,
|
||||
profileAdsRegisId: (profileId: string) =>
|
||||
`${profile}address/registration/${profileId}`,
|
||||
|
||||
profileInsignId: (profileId: string) => `${profile}insignia/${profileId}`,
|
||||
profileInsignHisId: (profileId: string) =>
|
||||
`${profile}insignia/history/${profileId}`,
|
||||
profileInsignInsignId: (profileId: string) =>
|
||||
`${profile}insignia/insigniadiocesan/${profileId}`,
|
||||
profileInsignToolList: `${profile}insignia/tool/list`,
|
||||
|
||||
profileChildId: (profileId: string) => `${profile}children/${profileId}`,
|
||||
|
||||
profileAssessmentId: (profileId: string) =>
|
||||
`${profile}assessment/${profileId}`,
|
||||
profileAssessmentHisId: (profileId: string) =>
|
||||
`${profile}assessment/history/${profileId}`,
|
||||
|
||||
profileHonorId: (profileId: string) => `${profile}honor/${profileId}`,
|
||||
profileHonorHisId: (profileId: string) =>
|
||||
`${profile}honor/history/${profileId}`,
|
||||
|
||||
profileCertId: (profileId: string) => `${profile}certificate/${profileId}`,
|
||||
profileCertHisId: (profileId: string) =>
|
||||
`${profile}certificate/history/${profileId}`,
|
||||
|
||||
profileAbiliId: (profileId: string) => `${profile}ability/${profileId}`,
|
||||
profileAbiliHisId: (profileId: string) =>
|
||||
`${profile}ability/history/${profileId}`,
|
||||
|
||||
profileDutyId: (profileId: string) => `${profile}duty/${profileId}`,
|
||||
profileDutyHisId: (profileId: string) =>
|
||||
`${profile}duty/history/${profileId}`,
|
||||
|
||||
profileOtherId: (profileId: string) => `${profile}other/${profileId}`,
|
||||
profileOtherHisId: (profileId: string) =>
|
||||
`${profile}other/history/${profileId}`,
|
||||
|
||||
profileNopaidId: (profileId: string) => `${profile}nopaid/${profileId}`,
|
||||
profileNopaidHisId: (profileId: string) =>
|
||||
`${profile}nopaid/history/${profileId}`,
|
||||
|
||||
profileAvaId: (profileId: string) => `${profile}avatar/${profileId}`,
|
||||
profileAvaCurId: (profileId: string) =>
|
||||
`${profile}avatar/current/${profileId}`,
|
||||
|
||||
profileEduId: (profileId: string) => `${profile}education/${profileId}`,
|
||||
profileEduHisId: (profileId: string) =>
|
||||
`${profile}education/history/${profileId}`,
|
||||
|
||||
profileSwapEducation: `${profile}swap_education`,
|
||||
|
||||
profileTrainId: (profileId: string) => `${profile}training/${profileId}`,
|
||||
profileTrainHisId: (profileId: string) =>
|
||||
`${profile}training/history/${profileId}`,
|
||||
|
||||
profileDisId: (profileId: string) => `${profile}discipline/${profileId}`,
|
||||
profileDisHisId: (profileId: string) =>
|
||||
`${profile}discipline/history/${profileId}`,
|
||||
|
||||
profileSwapDiscipline: `${profile}swap_discipline`,
|
||||
|
||||
profileLeaveId: (profileId: string) => `${profile}leave/${profileId}`,
|
||||
profileLeaveHisId: (profileId: string) =>
|
||||
`${profile}leave/history/${profileId}`,
|
||||
|
||||
profileSalaryId: (profileId: string) => `${profile}salary/${profileId}`,
|
||||
profileSalaryHisId: (profileId: string) =>
|
||||
`${profile}salary/history/${profileId}`,
|
||||
profileSalarySwapId: (id: string, direction: string) =>
|
||||
`${profile}salary/swap/${id}/${direction}`,
|
||||
profileSalaryCopyId: (profileId: string) =>
|
||||
`${profile}salary-copy/${profileId}`,
|
||||
|
||||
profileInforId: (profileId: string) => `${profile}information/${profileId}`,
|
||||
profileInforHisId: (profileId: string) =>
|
||||
`${profile}information/history/${profileId}`,
|
||||
|
||||
profileGovId: (profileId: string) => `${profile}government/${profileId}`,
|
||||
profileGovHisId: (profileId: string) =>
|
||||
`${profile}government/history/${profileId}`,
|
||||
|
||||
profileCalGovId: (profileId: string) => `${profile}cal/gov/${profileId}`,
|
||||
|
||||
profileFamiId: (profileId: string) => `${profile}family/${profileId}`,
|
||||
profileFamiHisId: (profileId: string) =>
|
||||
`${profile}family/history/${profileId}`,
|
||||
|
||||
profileAdrsId: (profileId: string) => `${profile}address/${profileId}`,
|
||||
profileAdrsHisId: (profileId: string) =>
|
||||
`${profile}address/history/${profileId}`,
|
||||
searchProfileByOcId: (OcId: string, type: string) =>
|
||||
`${profile}search/new/oc/${OcId}/${type}`,
|
||||
|
||||
profileAvatarId: (profileId: string) => `${profile}avatar/${profileId}`,
|
||||
profileAvatarHistoryId: (profileId: string) =>
|
||||
`${profile}avatar/history/${profileId}`,
|
||||
|
||||
profileCheckId: (profileId: string) => `${profile}check/${profileId}`,
|
||||
|
||||
profileOrganizRoot: `${profile}organization/root`,
|
||||
|
||||
profileCalRetire: `${profile}cal/retire`,
|
||||
profilePositionNumber: `${profile}position-number`,
|
||||
organizationName: (ocId: string) => `${profile}organization/${ocId}`,
|
||||
profileDeactive: (profileId: string) => `${profile}deactive/${profileId}`,
|
||||
profileReactive: (profileId: string) => `${profile}reactive/${profileId}`,
|
||||
|
||||
profileReportId: (profileId: string) => `${report}kk1/${profileId}`,
|
||||
profileKp7ShortId: (profileId: string) => `${report}kp7-short/${profileId}`,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue