2024-01-26 15:20:11 +07:00
|
|
|
import env from "../index";
|
|
|
|
|
|
2024-01-26 17:20:57 +07:00
|
|
|
const organization = `${env.API_URI}/org`;
|
2024-01-31 16:59:28 +07:00
|
|
|
const orgPos = `${env.API_URI}/org/pos`;
|
2024-02-08 16:59:57 +07:00
|
|
|
const orgProfile = `${env.API_URI}/org/profile`;
|
2024-03-14 13:25:35 +07:00
|
|
|
const orgEmployeePos = `${env.API_URI}/org/employee/pos`;
|
2024-01-26 15:20:11 +07:00
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
/** โครงสร้างอัตรากำลัง*/
|
|
|
|
|
activeOrganization: `${organization}/active`,
|
2024-01-30 14:18:44 +07:00
|
|
|
orgByid: (id: string) => `${organization}/${id}`,
|
2024-01-26 15:20:11 +07:00
|
|
|
createOrganization: `${organization}/draft`,
|
2024-01-29 13:14:13 +07:00
|
|
|
createOrgLevel: (type: string) => `${organization}/${type}`,
|
2024-01-29 14:22:25 +07:00
|
|
|
orgLevelByid: (type: string, id: string) => `${organization}/${type}/${id}`,
|
2024-01-26 15:24:49 +07:00
|
|
|
|
2024-01-31 16:59:28 +07:00
|
|
|
orgSetDateTime: (id: string) => `${organization}/set/publish/${id}`,
|
2024-01-29 13:14:13 +07:00
|
|
|
organizationHistoryNew: `${organization}/history`,
|
2024-01-31 17:27:12 +07:00
|
|
|
organizationHistoryPostNew: `${organization}/history/publish`,
|
2024-01-31 16:59:28 +07:00
|
|
|
|
|
|
|
|
/** position*/
|
|
|
|
|
orgPosPosition: `${orgPos}/position`,
|
|
|
|
|
orgPosPositionById: (id: string) => `${orgPos}/position/${id}`,
|
|
|
|
|
orgPosExecutive: `${orgPos}/executive`,
|
|
|
|
|
orgPosType: `${orgPos}/type`,
|
|
|
|
|
orgPosLevel: `${orgPos}/level`,
|
|
|
|
|
orgPosMaster: `${orgPos}/master`,
|
2024-02-01 16:01:35 +07:00
|
|
|
orgPosMasterById: (id: string) => `${orgPos}/master/${id}`,
|
2024-02-01 13:45:08 +07:00
|
|
|
orgPosMasterList: `${orgPos}/master/list`,
|
|
|
|
|
orgPosSort: `${orgPos}/sort`,
|
2024-02-02 14:30:07 +07:00
|
|
|
orgPosMove: `${orgPos}/move`,
|
2024-01-31 16:10:07 +07:00
|
|
|
organizationShortName: `${organization}/sort`,
|
2024-02-01 14:46:13 +07:00
|
|
|
organizationPublishGet: `${organization}/get/publish`,
|
2024-02-12 15:29:21 +07:00
|
|
|
orgPosDNA: `${orgPos}/dna`, //สืบทอดตำแหน่ง
|
2024-02-02 14:53:06 +07:00
|
|
|
|
2024-02-02 15:41:37 +07:00
|
|
|
orgPosExecutiveById: (id: string) => `${orgPos}/executive/${id}`,
|
2024-02-02 15:38:47 +07:00
|
|
|
orgPosHistory: (id: string) => `${orgPos}/history/${id}`,
|
2024-02-05 14:14:41 +07:00
|
|
|
|
2024-02-08 16:59:57 +07:00
|
|
|
orgSalaryPosition: `${orgPos}/position?keyword=&type=ALL`,
|
|
|
|
|
|
|
|
|
|
/**ครองตำแหน่ง */
|
|
|
|
|
orgSearchProfile: `${orgProfile}/search`,
|
2024-02-08 18:06:14 +07:00
|
|
|
orgProfile: `${orgPos}/profile`,
|
|
|
|
|
orgDeleteProfile: (id: string) => `${orgPos}/profile/delete/${id}`,
|
2024-02-12 09:41:52 +07:00
|
|
|
orgSummary: `${orgPos}/summary`,
|
2024-02-12 13:13:49 +07:00
|
|
|
|
|
|
|
|
/** report*/
|
|
|
|
|
orgReport: (report: string) => `${organization}/report/${report}`,
|
2024-02-15 10:44:56 +07:00
|
|
|
|
|
|
|
|
/** struct-chart*/
|
|
|
|
|
orgStructChart: (id: string, type: string) =>
|
|
|
|
|
`${organization}/struct-chart/${id}/${type}`,
|
2024-02-16 14:05:12 +07:00
|
|
|
|
|
|
|
|
// ค้นหาคนตามเงื่อนไข
|
|
|
|
|
orgSearchPersonal: () => `${organization}/profile/search-personal`,
|
2024-02-20 12:07:21 +07:00
|
|
|
|
|
|
|
|
/** บรรจุแต่งตั้ง*/
|
|
|
|
|
orgPosPlacement: `${orgPos}/placement/search`,
|
2024-02-20 16:07:12 +07:00
|
|
|
orgPosFind: `${organization}/find/node`,
|
2024-02-22 16:51:16 +07:00
|
|
|
orgProfileProbation: `${organization}/profile/probation`,
|
2024-02-28 07:58:34 +07:00
|
|
|
|
|
|
|
|
activeOrganizationRoot: `${organization}/active/root`,
|
2024-02-28 11:16:44 +07:00
|
|
|
activeOrganizationRootById: (id: string) =>
|
|
|
|
|
`${organization}/active/root/${id}`,
|
2024-03-14 13:25:35 +07:00
|
|
|
|
|
|
|
|
/** ข้อมูลตำแหน่งลูกจ้างประจำ*/
|
|
|
|
|
orgEmployeePos: `${orgEmployeePos}/position`,
|
|
|
|
|
orgEmployeePosById: (id: string) => `${orgEmployeePos}/position/${id}`,
|
|
|
|
|
orgEmployeeType: `${orgEmployeePos}/type`,
|
|
|
|
|
orgEmployeeTypeById: (id: string) => `${orgEmployeePos}/type/${id}`,
|
|
|
|
|
orgEmployeelevel: `${orgEmployeePos}/level`,
|
|
|
|
|
orgEmployeelevelById: (id: string) => `${orgEmployeePos}/level/${id}`,
|
2024-03-14 16:03:27 +07:00
|
|
|
|
|
|
|
|
/** อัตรากำลังลูกจ้างประจำ*/
|
|
|
|
|
orgSummaryEmp: `${orgEmployeePos}/summary`,
|
|
|
|
|
orgReportEmp: (report: string) => `${orgEmployeePos}/report/${report}`,
|
|
|
|
|
orgDeleteProfileEmp: (id: string) => `${orgEmployeePos}/profile/delete/${id}`,
|
|
|
|
|
orgPosMasterByIdEmp: (id: string) => `${orgEmployeePos}/master/${id}`,
|
|
|
|
|
orgPosMasterListEmp: `${orgEmployeePos}/master/list`,
|
2024-01-26 15:20:11 +07:00
|
|
|
};
|