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-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-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
|
|
|
|
|
|
|
|
orgSalaryPosition:`${orgPos}/position?keyword=&type=ALL`,
|
2024-01-26 15:20:11 +07:00
|
|
|
};
|