clone code
This commit is contained in:
parent
c9597d1e38
commit
d57bcd1719
362 changed files with 104804 additions and 0 deletions
67
src/api/manage/api.positionEmployee.ts
Normal file
67
src/api/manage/api.positionEmployee.ts
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
/**
|
||||
* api ระบบจัดการข้อมูลหลัก
|
||||
* เมนูย่อย: ข้อมูลตำแหน่งของลูกจ้างกรุงเทพมหานคร
|
||||
*/
|
||||
import env from "../index";
|
||||
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 {
|
||||
/**
|
||||
* api ตำแหน่ง
|
||||
*/
|
||||
listPositionEmployeePositionHistory: `${positionEmployeePosition}history`,
|
||||
listPositionEmployeePositionHistoryId: (id: string) =>
|
||||
`${positionEmployeePosition}history/${id}`,
|
||||
listPositionEmployeePositionPublished: `${positionEmployeePosition}history/published`,
|
||||
listPositionEmployeePositionPublishedHistory: `${positionEmployeePosition}history/published-history`,
|
||||
|
||||
/**
|
||||
* api ด้านของตำแหน่ง
|
||||
*/
|
||||
listPositionEmployeePositionSideHistory: `${positionEmployeePositionSide}history`,
|
||||
listPositionEmployeePositionSideHistoryId: (id: string) =>
|
||||
`${positionEmployeePositionSide}history/${id}`,
|
||||
listPositionEmployeePositionSidePublished: `${positionEmployeePositionSide}history/published`,
|
||||
listPositionEmployeePositionSidePublishedHistory: `${positionEmployeePositionSide}history/published-history`,
|
||||
|
||||
/**
|
||||
* api กลุ่มงาน
|
||||
*/
|
||||
listPositionEmployeeGroupHistory: `${positionEmployeeGroup}history`,
|
||||
listPositionEmployeeGroupHistoryId: (id: string) =>
|
||||
`${positionEmployeeGroup}history/${id}`,
|
||||
listPositionEmployeeGroupPublished: `${positionEmployeeGroup}history/published`,
|
||||
listPositionEmployeeGroupPublishedHistory: `${positionEmployeeGroup}history/published-history`,
|
||||
|
||||
/**
|
||||
* api สายงาน
|
||||
*/
|
||||
listPositionEmployeeLineHistory: `${positionEmployeeLine}history`,
|
||||
listPositionEmployeeLineHistoryId: (id: string) =>
|
||||
`${positionEmployeeLine}history/${id}`,
|
||||
listPositionEmployeeLinePublished: `${positionEmployeeLine}history/published`,
|
||||
listPositionEmployeeLinePublishedHistory: `${positionEmployeeLine}history/published-history`,
|
||||
|
||||
/**
|
||||
* api ระดับชั้นงาน
|
||||
*/
|
||||
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`,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue