feat(registry): integrate delete API
This commit is contained in:
parent
04a76b3025
commit
64489162ae
17 changed files with 252 additions and 180 deletions
|
|
@ -39,11 +39,15 @@ export default {
|
|||
`${registryNew}${type}/nopaid/${dataId}`,
|
||||
profileNewNoPaidHisById: (dataId: string, type: string) =>
|
||||
`${registryNew}${type}/nopaid/history/${dataId}`,
|
||||
profileNewNoPaidUpdateDelete: (type: string) =>
|
||||
`${registryNew}${type}/nopaid/update-delete/`,
|
||||
|
||||
// เครื่องราชฯ
|
||||
profileNewInsign: (type: string) => `${registryNew}${type}/insignia`,
|
||||
profileNewInsignByProfileId: (profileId: string, type: string) =>
|
||||
`${registryNew}${type}/insignia/${profileId}`,
|
||||
profileNewInsignUpdateDelete: (type: string) =>
|
||||
`${registryNew}${type}/insignia/update-delete/`,
|
||||
|
||||
orgInsigniaActive: () => `${org}/insignia/insignia-type/active`,
|
||||
|
||||
|
|
@ -60,6 +64,8 @@ export default {
|
|||
`${registryNew}${type}/honor/${dataId}`,
|
||||
profileNewHonorHisById: (dataId: string, type: string) =>
|
||||
`${registryNew}${type}/honor/admin/history/${dataId}`,
|
||||
profileNewHonorUpdateDelete: (type: string) =>
|
||||
`${registryNew}${type}/honor/update-delete/`,
|
||||
|
||||
// ผลการประเมินการปฏิบัติราชการ
|
||||
profileNewAssessments: (type: string) => `${registryNew}${type}/assessments`,
|
||||
|
|
@ -69,9 +75,10 @@ export default {
|
|||
`${registryNew}${type}/assessments/${dataId}`,
|
||||
profileNewAssessmentsHisById: (dataId: string, type: string) =>
|
||||
`${registryNew}${type}/assessments/admin/history/${dataId}`,
|
||||
profileDevelopmentUpdateDelete: `${registryNew}/development/update-delete/`,
|
||||
|
||||
|
||||
profileDevelopmentUpdateDelete: (type: string) =>
|
||||
`${registryNew}${type}/development/update-delete/`,
|
||||
profileNewAssessmentsUpdateDelete: (type: string) =>
|
||||
`${registryNew}${type}/assessments/update-delete/`,
|
||||
// การฝึกอบรม
|
||||
profileNewTraining: (type: string) => `${registryNew}${type}/training`,
|
||||
profileNewTrainingByProfileId: (profileId: string, type: string) =>
|
||||
|
|
@ -80,7 +87,8 @@ export default {
|
|||
`${registryNew}${type}/training/${trainingId}`,
|
||||
profileNewTrainingHisByTrainingId: (trainingId: string, type: string) =>
|
||||
`${registryNew}${type}/training/admin/history/${trainingId}`,
|
||||
profileTrainingUpdate: `${registryNew}/training/update-delete/`,
|
||||
profileTrainingUpdate: (type: string) =>
|
||||
`${registryNew}${type}/training/update-delete/`,
|
||||
|
||||
// ประวัติการศึกษา
|
||||
profileNewEducation: (type: string) => `${registryNew}${type}/educations`,
|
||||
|
|
@ -93,6 +101,8 @@ export default {
|
|||
`${registryNew}${type}/educations/${educationId}`,
|
||||
profileNewEducationHisByEducationId: (educationsId: string, type: string) =>
|
||||
`${registryNew}${type}/educations/admin/history/${educationsId}`,
|
||||
profileEducationUpdateDelete: (type: string) =>
|
||||
`${registryNew}${type}/educations/update-delete/`,
|
||||
|
||||
// ความสามารถพิเศษ
|
||||
profileNewAbility: (type: string) => `${registryNew}${type}/ability`,
|
||||
|
|
@ -102,6 +112,8 @@ export default {
|
|||
`${registryNew}${type}/ability/${abilityId}`,
|
||||
profileNewAbilityHisByAbilityId: (abilityId: string, type: string) =>
|
||||
`${registryNew}${type}/ability/admin/history/${abilityId}`,
|
||||
profileAbilityUpdateDelete: (type: string) =>
|
||||
`${registryNew}${type}/ability/update-delete/`,
|
||||
|
||||
// ใบอนุญาตประกอบวิชาชีพ
|
||||
profileNewCertificate: (type: string) => `${registryNew}${type}/certificate`,
|
||||
|
|
@ -113,6 +125,8 @@ export default {
|
|||
certificateId: string,
|
||||
type: string
|
||||
) => `${registryNew}${type}/certificate/admin/history/${certificateId}`,
|
||||
profileCertificateUpdateDelete: (type: string) =>
|
||||
`${registryNew}${type}/certificate/update-delete/`,
|
||||
|
||||
// ข้อมูลอื่นๆ
|
||||
profileNewOther: (type: string) => `${registryNew}${type}/other`,
|
||||
|
|
@ -122,6 +136,8 @@ export default {
|
|||
`${registryNew}${type}/other/${dataId}`,
|
||||
profileNewOtherHisById: (dataId: string, type: string) =>
|
||||
`${registryNew}${type}/other/admin/history/${dataId}`,
|
||||
profileOtherUpdateDelete: (type: string) =>
|
||||
`${registryNew}${type}/other/update-delete/`,
|
||||
|
||||
// ข้อมูลครอบครัว
|
||||
profileNewFamily: (type: string) => `${registryNew}${type}/family`,
|
||||
|
|
@ -142,6 +158,8 @@ export default {
|
|||
`${registryNew}${type}/discipline/admin/history/${disciplineId}`,
|
||||
disciplineListCard: (profileId: string, type: string) =>
|
||||
`${registryNew}${type}/discipline/admin/${profileId}`, // noPermission
|
||||
profileNewDisciplineUpdateDelete: (type: string) =>
|
||||
`${registryNew}${type}/discipline/update-delete/`,
|
||||
|
||||
// ปฏิบัติราชการพิเศษ
|
||||
profileNewDuty: (type: string) => `${registryNew}${type}/duty`,
|
||||
|
|
@ -151,6 +169,8 @@ export default {
|
|||
`${registryNew}${type}/duty/${dutyId}`,
|
||||
profileNewDutyHisByDutyId: (dutyId: string, type: string) =>
|
||||
`${registryNew}${type}/duty/admin/history/${dutyId}`,
|
||||
profileDutyUpdateDelete: (type: string) =>
|
||||
`${registryNew}${type}/duty/update-delete/`,
|
||||
|
||||
//ข้อมูลราชการ
|
||||
profileNewGovernment: (type: string) => `${registryNew}${type}/government`,
|
||||
|
|
@ -171,6 +191,8 @@ export default {
|
|||
profileNewLeaveType: () => `${env.API_URI}/leave/type`,
|
||||
leaveListCard: (id: string, type: string) =>
|
||||
`${registryNew}${type}/leave/admin/${id}`, //noPermission
|
||||
profileNewLeaveUpdateDelete: (type: string) =>
|
||||
`${registryNew}${type}/leave/update-delete/`,
|
||||
|
||||
/** ตำแหน่ง*/
|
||||
profileSalaryPositionNew: (type: string) =>
|
||||
|
|
@ -205,12 +227,16 @@ export default {
|
|||
`${registryNew}${type}/changeName/${changeNameId}`,
|
||||
profileNewChangeNameHisByChangeNameId: (changeNameId: string, type: string) =>
|
||||
`${registryNew}${type}/changeName/history/${changeNameId}`,
|
||||
profileNewChangeNameUpdateDelete: (type: string) =>
|
||||
`${registryNew}${type}/changeName/update-delete/`,
|
||||
|
||||
//ข้อมูลครอบครับ
|
||||
profileFamily: (empType: string, type: string) =>
|
||||
`${registryNew}${empType}/family/${type}`,
|
||||
profileFamilyHistory: (id: string, empType: string, type: string) =>
|
||||
`${registryNew}${empType}/family/${type}/history/${id}`,
|
||||
profileFamilyUpdateDelete: (empType: string, type: string) =>
|
||||
`${registryNew}${empType}/family/${type}/update-delete/`,
|
||||
|
||||
//ลูกจ้างชั่วคราว
|
||||
positionEmployee: (id: string) => `${registryNew}-employee/position/${id}`,
|
||||
|
|
@ -235,7 +261,8 @@ export default {
|
|||
`${registryNew}${type}/actposition/${id}`,
|
||||
profileActpositionHistory: (id: string, type: string) =>
|
||||
`${registryNew}${type}/actposition/history/${id}`,
|
||||
profileActpositionUpdateDelete: `${registryNew}/actposition/update-delete/`,
|
||||
profileActpositionUpdateDelete: (type: string) =>
|
||||
`${registryNew}${type}/actposition/update-delete/`,
|
||||
|
||||
//ช่วยราชการ
|
||||
profileAssistance: (type: string, id: string) =>
|
||||
|
|
@ -243,4 +270,6 @@ export default {
|
|||
profileAssistanceHistory: (id: string, type: string) =>
|
||||
`${registryNew}${type}/assistance/history/${id}`,
|
||||
profileAssistanceReturn: `${env.API_URI}/placement/repatriation`,
|
||||
profileAssistanceUpdateDelete: (type: string) =>
|
||||
`${registryNew}${type}/assistance/update-delete/`,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue