2024-03-14 17:57:58 +07:00
|
|
|
import env from "../index";
|
|
|
|
|
|
2024-03-15 11:24:53 +07:00
|
|
|
const registryNew = `${env.API_URI}/org/profile/`;
|
2024-03-22 19:20:35 +07:00
|
|
|
const metadata = `${env.API_URI}/org/metadata/`;
|
2024-03-27 13:51:34 +07:00
|
|
|
const salaryNew = `${env.API_URI}/org/profile/salary`;
|
2024-03-15 11:24:53 +07:00
|
|
|
|
2024-03-14 17:57:58 +07:00
|
|
|
export default {
|
2024-03-15 11:24:53 +07:00
|
|
|
registryNew,
|
2024-03-21 16:07:15 +07:00
|
|
|
registryNewByProfileId: (profileId: string) => `${registryNew}${profileId}`,
|
|
|
|
|
|
2024-03-22 19:20:35 +07:00
|
|
|
// metadata
|
2024-03-27 10:57:29 +07:00
|
|
|
profileNewMetaMain: `${metadata}main/person`,
|
2024-03-22 19:20:35 +07:00
|
|
|
profileNewGender: `${metadata}gender`,
|
|
|
|
|
profileNewReligion: `${metadata}religion`,
|
|
|
|
|
profileNewRelationship: `${metadata}relationship`,
|
|
|
|
|
profileNewBloodGroup: `${metadata}bloodGroup`,
|
|
|
|
|
|
|
|
|
|
// ประวัติส่วนตัว
|
|
|
|
|
profileNewProfileByProfileId: (profileId: string) =>
|
2024-03-25 11:10:53 +07:00
|
|
|
`${registryNew}${profileId}`,
|
|
|
|
|
profileNewProfileById: (dataId: string) => `${registryNew}${dataId}`,
|
2024-03-22 19:20:35 +07:00
|
|
|
profileNewProfileHisById: (dataId: string) =>
|
2024-03-25 11:10:53 +07:00
|
|
|
`${registryNew}history/${dataId}`,
|
2024-03-22 19:20:35 +07:00
|
|
|
|
2024-03-21 16:07:15 +07:00
|
|
|
// บันทึกวันที่ไม่ได้รับเงินเดือนฯ
|
|
|
|
|
profileNewNoPaid: `${registryNew}nopaid`,
|
|
|
|
|
profileNewNoPaidByProfileId: (profileId: string) =>
|
|
|
|
|
`${registryNew}nopaid/${profileId}`,
|
|
|
|
|
profileNewNoPaidById: (dataId: string) => `${registryNew}nopaid/${dataId}`,
|
|
|
|
|
profileNewNoPaidHisById: (dataId: string) =>
|
|
|
|
|
`${registryNew}nopaid/history/${dataId}`,
|
2024-03-20 15:53:57 +07:00
|
|
|
|
2024-03-15 18:05:28 +07:00
|
|
|
// เครื่องราชฯ
|
2024-03-15 11:24:53 +07:00
|
|
|
profileNewInsign: `${registryNew}insignia`,
|
|
|
|
|
profileNewInsignByProfileId: (profileId: string) =>
|
|
|
|
|
`${registryNew}insignia/${profileId}`,
|
2024-03-15 18:05:28 +07:00
|
|
|
profileNewInsignById: (dataId: string) => `${registryNew}insignia/${dataId}`,
|
|
|
|
|
profileNewInsignHisById: (dataId: string) =>
|
|
|
|
|
`${registryNew}insignia/history/${dataId}`,
|
2024-03-15 17:55:32 +07:00
|
|
|
|
2024-03-15 18:05:28 +07:00
|
|
|
// ประกาศเกียรติคุณ
|
|
|
|
|
profileNewHonor: `${registryNew}honor`,
|
|
|
|
|
profileNewHonorByProfileId: (profileId: string) =>
|
|
|
|
|
`${registryNew}honor/${profileId}`,
|
|
|
|
|
profileNewHonorById: (dataId: string) => `${registryNew}honor/${dataId}`,
|
2024-03-21 16:07:15 +07:00
|
|
|
profileNewHonorHisById: (dataId: string) =>
|
|
|
|
|
`${registryNew}honor/history/${dataId}`,
|
2024-03-19 15:15:02 +07:00
|
|
|
|
|
|
|
|
// ผลการประเมินการปฏิบัติราชการ
|
|
|
|
|
profileNewAssessments: `${registryNew}assessments`,
|
|
|
|
|
profileNewAssessmentsByProfileId: (profileId: string) =>
|
|
|
|
|
`${registryNew}assessments/${profileId}`,
|
2024-03-21 16:07:15 +07:00
|
|
|
profileNewAssessmentsById: (dataId: string) =>
|
|
|
|
|
`${registryNew}assessments/${dataId}`,
|
|
|
|
|
profileNewAssessmentsHisById: (dataId: string) =>
|
|
|
|
|
`${registryNew}assessments/history/${dataId}`,
|
2024-03-15 18:05:28 +07:00
|
|
|
|
|
|
|
|
// การฝึกอบรม
|
2024-03-15 17:55:32 +07:00
|
|
|
profileNewTraining: `${registryNew}training`,
|
|
|
|
|
profileNewTrainingByProfileId: (profileId: string) =>
|
|
|
|
|
`${registryNew}training/${profileId}`,
|
|
|
|
|
profileNewTrainingByTrainingId: (trainingId: string) =>
|
|
|
|
|
`${registryNew}training/${trainingId}`,
|
|
|
|
|
profileNewTrainingHisByTrainingId: (trainingId: string) =>
|
|
|
|
|
`${registryNew}training/history/${trainingId}`,
|
2024-03-18 16:14:11 +07:00
|
|
|
|
2024-03-21 16:07:15 +07:00
|
|
|
// ประวัติการศึกษา
|
|
|
|
|
profileNewEducation: `${registryNew}educations`,
|
|
|
|
|
profileNewEducationByProfileId: (profileId: string) =>
|
|
|
|
|
`${registryNew}educations/${profileId}`,
|
|
|
|
|
profileNewEducationByEducationId: (educationId: string) =>
|
|
|
|
|
`${registryNew}educations/${educationId}`,
|
|
|
|
|
profileNewEducationHisByEducationId: (educationsId: string) =>
|
|
|
|
|
`${registryNew}educations/history/${educationsId}`,
|
2024-03-19 10:35:58 +07:00
|
|
|
|
2024-03-21 16:07:15 +07:00
|
|
|
// ความสามารถพิเศษ
|
|
|
|
|
profileNewAbility: `${registryNew}ability`,
|
|
|
|
|
profileNewAbilityByProfileId: (profileId: string) =>
|
|
|
|
|
`${registryNew}ability/${profileId}`,
|
|
|
|
|
profileNewAbilityByAbilityId: (abilityId: string) =>
|
|
|
|
|
`${registryNew}ability/${abilityId}`,
|
|
|
|
|
profileNewAbilityHisByAbilityId: (abilityId: string) =>
|
|
|
|
|
`${registryNew}ability/history/${abilityId}`,
|
2024-03-20 16:51:53 +07:00
|
|
|
|
|
|
|
|
// ใบอนุญาตประกอบวิชาชีพ
|
2024-03-21 16:07:15 +07:00
|
|
|
profileNewCertificate: `${registryNew}certificate`,
|
|
|
|
|
profileNewCertificateByProfileId: (profileId: string) =>
|
|
|
|
|
`${registryNew}certificate/${profileId}`,
|
|
|
|
|
profileNewCertificateByCertificateId: (certificateId: string) =>
|
|
|
|
|
`${registryNew}certificate/${certificateId}`,
|
|
|
|
|
profileNewCertificateHisByCertificateId: (certificateId: string) =>
|
|
|
|
|
`${registryNew}certificate/history/${certificateId}`,
|
2024-03-20 17:29:50 +07:00
|
|
|
|
2024-03-21 16:07:15 +07:00
|
|
|
// ข้อมูลอื่นๆ
|
|
|
|
|
profileNewOther: `${registryNew}other`,
|
|
|
|
|
profileNewOtherByProfileId: (profileId: string) =>
|
|
|
|
|
`${registryNew}other/${profileId}`,
|
|
|
|
|
profileNewOtherById: (dataId: string) => `${registryNew}other/${dataId}`,
|
|
|
|
|
profileNewOtherHisById: (dataId: string) =>
|
|
|
|
|
`${registryNew}other/history/${dataId}`,
|
2024-03-21 11:37:08 +07:00
|
|
|
|
2024-03-25 11:10:53 +07:00
|
|
|
// ข้อมูลครอบครัว
|
|
|
|
|
profileNewFamily: `${registryNew}family`,
|
|
|
|
|
profileNewFamilyByProfileId: (profileId: string) =>
|
|
|
|
|
`${registryNew}family/${profileId}`,
|
|
|
|
|
profileNewFamilyByFamilyId: (familyId: string) =>
|
|
|
|
|
`${registryNew}family/${familyId}`,
|
2024-03-26 09:32:28 +07:00
|
|
|
profileNewFamilyHisByFamilyId: (familyId: string) =>
|
2024-03-25 11:10:53 +07:00
|
|
|
`${registryNew}family/history/${familyId}`,
|
|
|
|
|
|
|
|
|
|
// วินัย
|
|
|
|
|
profileNewDiscipline: `${registryNew}discipline`,
|
|
|
|
|
profileNewDisciplineByProfileId: (profileId: string) =>
|
|
|
|
|
`${registryNew}discipline/${profileId}`,
|
|
|
|
|
profileNewDisciplineByDisciplineId: (disciplineId: string) =>
|
|
|
|
|
`${registryNew}discipline/${disciplineId}`,
|
|
|
|
|
profileNewDisciplineHisByDisciplineId: (disciplineId: string) =>
|
|
|
|
|
`${registryNew}discipline/history/${disciplineId}`,
|
2024-03-22 10:53:08 +07:00
|
|
|
|
2024-03-27 13:51:34 +07:00
|
|
|
// ปฏิบัติราชการพิเศษ
|
|
|
|
|
profileNewDuty: `${registryNew}duty`,
|
|
|
|
|
profileNewDutyByProfileId: (profileId: string) =>
|
|
|
|
|
`${registryNew}duty/${profileId}`,
|
|
|
|
|
profileNewDutyByDutyId: (dutyId: string) => `${registryNew}duty/${dutyId}`,
|
|
|
|
|
profileNewDutyHisByDutyId: (dutyId: string) =>
|
|
|
|
|
`${registryNew}duty/history/${dutyId}`,
|
|
|
|
|
|
|
|
|
|
//ข้อมูลราชการ
|
|
|
|
|
profileNewGovernment: () => `${registryNew}government`,
|
|
|
|
|
profileNewGovernmentById: (id: string) => `${registryNew}government/${id}`,
|
|
|
|
|
profileNewGovernmentHistory: (id: string) =>
|
|
|
|
|
`${registryNew}government/history/${id}`,
|
|
|
|
|
|
|
|
|
|
//การลา
|
|
|
|
|
profileNewLeave: () => `${registryNew}leave`,
|
|
|
|
|
profileNewLeaveById: (id: string) => `${registryNew}leave/${id}`,
|
|
|
|
|
profileNewLeaveHistory: (id: string) => `${registryNew}leave/history/${id}`,
|
|
|
|
|
profileCheckDate: () => `${env.API_URI}/leave/user/check`,
|
|
|
|
|
profileNewLeaveType: () => `${env.API_URI}/leave/type`,
|
2024-03-25 11:10:53 +07:00
|
|
|
|
|
|
|
|
/** ตำแหน่งเงินเดือน*/
|
2024-03-27 13:51:34 +07:00
|
|
|
profileSalaryNew: `${salaryNew}`,
|
|
|
|
|
profileListSalaryNew: (id: string) => `${salaryNew}/${id}`,
|
|
|
|
|
profileListSalaryHistoryNew: (profileId: string) =>
|
|
|
|
|
`${salaryNew}/history/${profileId}`,
|
2024-03-27 13:55:02 +07:00
|
|
|
|
|
|
|
|
// ประวัติการเปลี่ยนชื่อ-นามสกุล
|
|
|
|
|
profileNewChangeName: `${registryNew}changeName`,
|
|
|
|
|
profileNewChangeNameByProfileId: (profileId: string) =>
|
|
|
|
|
`${registryNew}changeName/${profileId}`,
|
|
|
|
|
profileNewChangeNameByChangeNameId: (changeNameId: string) =>
|
|
|
|
|
`${registryNew}changeName/${changeNameId}`,
|
|
|
|
|
profileNewChangeNameHisByChangeNameId: (changeNameId: string) =>
|
|
|
|
|
`${registryNew}changeName/history/${changeNameId}`,
|
|
|
|
|
profileSalaryNew: `${salaryNew}`,
|
|
|
|
|
profileListSalaryNew: (id: string) => `${salaryNew}/${id}`,
|
|
|
|
|
profileListSalaryHistoryNew: (profileId: string) =>
|
|
|
|
|
`${salaryNew}/history/${profileId}`,
|
2024-03-22 09:31:35 +07:00
|
|
|
};
|