hrms-admin/src/api/manage/api.positionEmployee.ts

76 lines
3.5 KiB
TypeScript
Raw Normal View History

2024-05-29 17:58:57 +07:00
/**
* 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`,
};