75 lines
3.5 KiB
TypeScript
75 lines
3.5 KiB
TypeScript
/**
|
|
* api ระบบจัดการข้อมูลหลัก
|
|
* เมนูย่อย: ข้อมูลตำแหน่งของลูกจ้างกรุงเทพมหานคร
|
|
*/
|
|
import env from "../index";
|
|
const positionEmployee = `${env.API_URI}/metadata/main/`;
|
|
const positionEmployeePosition = `${env.API_URI}/metadata/position-employee-position/`;
|
|
const positionEmployeePositionSide = `${env.API_URI}/metadata/position-employee-position-side/`;
|
|
const positionEmployeeGroup = `${env.API_URI}/metadata/position-employee-group/`;
|
|
const positionEmployeeLine = `${env.API_URI}/metadata/position-employee-line/`;
|
|
const positionEmployeeLevel = `${env.API_URI}/metadata/position-employee-level/`;
|
|
const positionEmployeeStatus = `${env.API_URI}/metadata/position-employee-status/`;
|
|
|
|
export default {
|
|
positionEmployeeStatus: `${positionEmployeeStatus}`,
|
|
positionEmployee: `${positionEmployee}positionEmployee`,
|
|
/**
|
|
* api ตำแหน่ง
|
|
*/
|
|
positionEmployeePosition,
|
|
listPositionEmployeePositionHistory: `${positionEmployeePosition}history`,
|
|
listPositionEmployeePositionHistoryId: (id: string) =>
|
|
`${positionEmployeePosition}history/${id}`,
|
|
listPositionEmployeePositionPublished: `${positionEmployeePosition}history/published`,
|
|
listPositionEmployeePositionPublishedHistory: `${positionEmployeePosition}history/published-history`,
|
|
|
|
/**
|
|
* api ด้านของตำแหน่ง
|
|
*/
|
|
positionEmployeePositionSide,
|
|
listPositionEmployeePositionSideHistory: `${positionEmployeePositionSide}history`,
|
|
listPositionEmployeePositionSideHistoryId: (id: string) =>
|
|
`${positionEmployeePositionSide}history/${id}`,
|
|
listPositionEmployeePositionSidePublished: `${positionEmployeePositionSide}history/published`,
|
|
listPositionEmployeePositionSidePublishedHistory: `${positionEmployeePositionSide}history/published-history`,
|
|
|
|
/**
|
|
* api กลุ่มงาน
|
|
*/
|
|
positionEmployeeGroup,
|
|
listPositionEmployeeGroupHistory: `${positionEmployeeGroup}history`,
|
|
listPositionEmployeeGroupHistoryId: (id: string) =>
|
|
`${positionEmployeeGroup}history/${id}`,
|
|
listPositionEmployeeGroupPublished: `${positionEmployeeGroup}history/published`,
|
|
listPositionEmployeeGroupPublishedHistory: `${positionEmployeeGroup}history/published-history`,
|
|
|
|
/**
|
|
* api สายงาน
|
|
*/
|
|
positionEmployeeLine,
|
|
listPositionEmployeeLineHistory: `${positionEmployeeLine}history`,
|
|
listPositionEmployeeLineHistoryId: (id: string) =>
|
|
`${positionEmployeeLine}history/${id}`,
|
|
listPositionEmployeeLinePublished: `${positionEmployeeLine}history/published`,
|
|
listPositionEmployeeLinePublishedHistory: `${positionEmployeeLine}history/published-history`,
|
|
|
|
/**
|
|
* api ระดับชั้นงาน
|
|
*/
|
|
positionEmployeeLevel,
|
|
listPositionEmployeeLevelHistory: `${positionEmployeeLevel}history`,
|
|
listPositionEmployeeLevelHistoryId: (id: string) =>
|
|
`${positionEmployeeLevel}history/${id}`,
|
|
listPositionEmployeeLevelPublished: `${positionEmployeeLevel}history/published`,
|
|
listPositionEmployeeLevelPublishedHistory: `${positionEmployeeLevel}history/published-history`,
|
|
|
|
/**
|
|
* api สถานะของตำแหน่ง
|
|
*/
|
|
listPositionEmployeeStatusHistory: `${positionEmployeeStatus}history`,
|
|
listPositionEmployeeStatusHistoryId: (id: string) =>
|
|
`${positionEmployeeStatus}history/${id}`,
|
|
listPositionEmployeeStatusPublished: `${positionEmployeeStatus}history/published`,
|
|
listPositionEmployeeStatusPublishedHistory: `${positionEmployeeStatus}history/published-history`,
|
|
};
|