ทะเบียนประวัติ: ผูก API เครื่องราชฯ (insignia)

This commit is contained in:
puriphatt 2024-03-15 18:05:28 +07:00
parent 01c585d0ca
commit bc1b5bce92
2 changed files with 399 additions and 232 deletions

View file

@ -4,14 +4,22 @@ const registryNew = `${env.API_URI}/org/profile/`;
export default {
registryNew,
// เครื่องราชฯ
profileNewInsign: `${registryNew}insignia`,
profileNewInsignByProfileId: (profileId: string) =>
`${registryNew}insignia/${profileId}`,
profileNewInsignByInsignId: (insignId: string) =>
`${registryNew}insignia/${insignId}`,
profileNewInsignHisByInsignId: (insignId: string) =>
`${registryNew}insignia/history/${insignId}`,
profileNewInsignById: (dataId: string) => `${registryNew}insignia/${dataId}`,
profileNewInsignHisById: (dataId: string) =>
`${registryNew}insignia/history/${dataId}`,
// ประกาศเกียรติคุณ
profileNewHonor: `${registryNew}honor`,
profileNewHonorByProfileId: (profileId: string) =>
`${registryNew}honor/${profileId}`,
profileNewHonorById: (dataId: string) => `${registryNew}honor/${dataId}`,
profileNewHonorHisById: (dataId: string) => `${registryNew}honor/${dataId}`,
// การฝึกอบรม
profileNewTraining: `${registryNew}training`,
profileNewTrainingByProfileId: (profileId: string) =>
`${registryNew}training/${profileId}`,