start commit for admin system
This commit is contained in:
commit
badb676529
300 changed files with 58634 additions and 0 deletions
23
src/api/manage/api.holiday.ts
Normal file
23
src/api/manage/api.holiday.ts
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/**
|
||||
* api ระบบจัดการข้อมูลหลัก
|
||||
* เมนูย่อย: ปฏิทินวันหยุด
|
||||
*/
|
||||
import env from "../index";
|
||||
const holiday = `${env.API_URI}/metadata/holiday/`;
|
||||
|
||||
export default {
|
||||
/**
|
||||
* api ชั้นเครื่องราชฯ
|
||||
*/
|
||||
listHolidayHistoryAdd: (category: string) =>
|
||||
`${holiday}range/add/${category}`,
|
||||
listHolidayHistoryEdit: (category: string) =>
|
||||
`${holiday}range/edit/${category}`,
|
||||
listHolidayHistoryDelete: (category: string) =>
|
||||
`${holiday}range/delete/${category}`,
|
||||
listHolidayHistoryYear: (year: number) => `${holiday}${year}`,
|
||||
listHolidayHistoryYearMonth: (year: number, month: number) =>
|
||||
`${holiday}${year}/${month}`,
|
||||
listHolidayCopy: `${holiday}copy`,
|
||||
summaryHolidayHistoryYear: (year: number) => `${holiday}summary/${year}`,
|
||||
};
|
||||
48
src/api/manage/api.insignia.ts
Normal file
48
src/api/manage/api.insignia.ts
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
/**
|
||||
* api ระบบจัดการข้อมูลหลัก
|
||||
* เมนูย่อย: ข้อมูลเครื่องราชอิสริยาภรณ์
|
||||
*/
|
||||
import env from "../index";
|
||||
const insignia = `${env.API_URI}/metadata/insignia/`;
|
||||
const insigniaType = `${env.API_URI}/metadata/insignia-type/`;
|
||||
const insigniaOrg = `${env.API_URI}/org/insignia/insignia/`;
|
||||
const insigniaTypeOrg = `${env.API_URI}/org/insignia/insignia-type/`;
|
||||
|
||||
export default {
|
||||
/**
|
||||
* api ชั้นเครื่องราชฯ
|
||||
*/
|
||||
insignia,
|
||||
listInsigniaHistory: `${insignia}history`,
|
||||
listInsigniaHistoryId: (id: string) => `${insignia}history/${id}`,
|
||||
listInsigniaPublished: `${insignia}history/published`,
|
||||
listInsigniaPublishedHistory: `${insignia}history/published-history`,
|
||||
|
||||
/**
|
||||
* api ประเภท
|
||||
*/
|
||||
insigniaType,
|
||||
listInsigniaTypeHistory: `${insigniaType}history`,
|
||||
listInsigniaTypeHistoryId: (id: string) => `${insigniaType}history/${id}`,
|
||||
listInsigniaTypePublished: `${insigniaType}history/published`,
|
||||
listInsigniaTypePublishedHistory: `${insigniaType}history/published-history`,
|
||||
|
||||
/**
|
||||
* api เหรียญตรา
|
||||
*/
|
||||
// listInsigniaHistory: `${insignia}history`,
|
||||
// listInsigniaHistoryId: (id: string) => `${insignia}history/${id}`,
|
||||
// listInsigniaPublished: `${insignia}history/published`,
|
||||
// listInsigniaPublishedHistory: `${insignia}history/published-history`,
|
||||
insigniaTypeNew: `${insigniaType}draft`,
|
||||
insigniaTypeNewId: (id: string) => `${insigniaType}${id}`,
|
||||
insigniaNewId: (id: string) => `${insignia}${id}`,
|
||||
insigniaSort: (id: string) => `${insignia}sort/${id}`,
|
||||
|
||||
insigniaOrg,
|
||||
insigniaTypeOrg,
|
||||
insigniaTypeNewOrg: `${insigniaOrg}`,
|
||||
insigniaTypeNewIdOrg: (id: string) => `${insigniaTypeOrg}${id}`,
|
||||
insigniaNewIdOrg: (id: string) => `${insigniaOrg}${id}`,
|
||||
insigniaSortOrg: (id: string) => `${insigniaOrg}sort/${id}`,
|
||||
};
|
||||
133
src/api/manage/api.organization.ts
Normal file
133
src/api/manage/api.organization.ts
Normal file
|
|
@ -0,0 +1,133 @@
|
|||
/**
|
||||
* api ระบบจัดการข้อมูลหลัก
|
||||
* เมนูย่อย: ข้อมูลโครงสร้างหน่วยงาน
|
||||
*/
|
||||
import env from "../index";
|
||||
const organizationMain = `${env.API_URI}/metadata/main/`;
|
||||
const organization = `${env.API_URI}/metadata/organization/`;
|
||||
const organizationOrganization = `${env.API_URI}/metadata/organization-organization/`;
|
||||
const organizationShortName = `${env.API_URI}/metadata/organization-shortname/`;
|
||||
const organizationCode = `${env.API_URI_ORG_SERVICE}/PositionMaster/`;
|
||||
const organizationType = `${env.API_URI}/metadata/organization-type/`;
|
||||
const organizationLevel = `${env.API_URI}/metadata/organization-level/`;
|
||||
const organizationStatus = `${env.API_URI}/metadata/organization-status/`;
|
||||
const organizationAgency = `${env.API_URI}/metadata/organization-agency/`;
|
||||
const organizationGovernmentAgency = `${env.API_URI}/metadata/organization-government-agency/`;
|
||||
const organizationTelExternal = `${env.API_URI}/metadata/organization-tel-external/`;
|
||||
const organizationTelInternal = `${env.API_URI}/metadata/organization-tel-internal/`;
|
||||
const organizationFax = `${env.API_URI}/metadata/organization-fax/`;
|
||||
const dashbord = `${env.API_URI}/metadata/dashbord/`;
|
||||
|
||||
export default {
|
||||
/**
|
||||
* api จำนวนข้อมูลใน ระบบจัดการข้อมูลหลัก tab ย่อยแต่ละ tab
|
||||
*/
|
||||
organizationMain: `${organizationMain}organization`,
|
||||
organization,
|
||||
countDashbordSubHistory: (type: number) => `${dashbord}${type}`,
|
||||
countDashbordHistory: `${dashbord}`,
|
||||
|
||||
/**
|
||||
* api หน่วยงาน
|
||||
*/
|
||||
organizationOrganization,
|
||||
listOrganizationOrganizationHistory: `${organizationOrganization}history`,
|
||||
listOrganizationOrganizationHistoryId: (id: string) =>
|
||||
`${organizationOrganization}history/${id}`,
|
||||
listOrganizationOrganizationPublished: `${organizationOrganization}history/published`,
|
||||
listOrganizationOrganizationPublishedHistory: `${organizationOrganization}history/published-history`,
|
||||
|
||||
/**
|
||||
* api ชื่อย่อหน่วยงาน
|
||||
*/
|
||||
organizationShortName,
|
||||
listOrganizationShortNameHistory: `${organizationShortName}history`,
|
||||
listOrganizationShortNameHistoryId: (id: string) =>
|
||||
`${organizationShortName}history/${id}`,
|
||||
listOrganizationShortNamePublished: `${organizationShortName}history/published`,
|
||||
listOrganizationShortNamePublishedHistory: `${organizationShortName}history/published-history`,
|
||||
organizationCode: `${organizationCode}organization-code`,
|
||||
organizationGovernmentCode: (id: string) =>
|
||||
`${organizationCode}government/${id}`,
|
||||
organizationAgencyCode: (id: string) => `${organizationCode}agency/${id}`,
|
||||
|
||||
/**
|
||||
* api ประเภท
|
||||
*/
|
||||
organizationType,
|
||||
listOrganizationTypeHistory: `${organizationType}history`,
|
||||
listOrganizationTypeHistoryId: (id: string) =>
|
||||
`${organizationType}history/${id}`,
|
||||
listOrganizationTypePublished: `${organizationType}history/published`,
|
||||
listOrganizationTypePublishedHistory: `${organizationType}history/published-history`,
|
||||
|
||||
/**
|
||||
* api ระดับ
|
||||
*/
|
||||
organizationLevel,
|
||||
listOrganizationLevelHistory: `${organizationLevel}history`,
|
||||
listOrganizationLevelHistoryId: (id: string) =>
|
||||
`${organizationLevel}history/${id}`,
|
||||
listOrganizationLevelPublished: `${organizationLevel}history/published`,
|
||||
listOrganizationLevelPublishedHistory: `${organizationLevel}history/published-history`,
|
||||
|
||||
/**
|
||||
* api สถานะ
|
||||
*/
|
||||
organizationStatus,
|
||||
listOrganizationStatusHistory: `${organizationStatus}history`,
|
||||
listOrganizationStatusHistoryId: (id: string) =>
|
||||
`${organizationStatus}history/${id}`,
|
||||
listOrganizationStatusPublished: `${organizationStatus}history/published`,
|
||||
listOrganizationStatusPublishedHistory: `${organizationStatus}history/published-history`,
|
||||
|
||||
/**
|
||||
* api หน่วยงานต้นสังกัด
|
||||
*/
|
||||
organizationAgency,
|
||||
listOrganizationAgencyHistory: `${organizationAgency}history`,
|
||||
listOrganizationAgencyHistoryId: (id: string) =>
|
||||
`${organizationAgency}history/${id}`,
|
||||
listOrganizationAgencyPublished: `${organizationAgency}history/published`,
|
||||
listOrganizationAgencyPublishedHistory: `${organizationAgency}history/published-history`,
|
||||
|
||||
/**
|
||||
* api ส่วนราชการต้นสังกัด
|
||||
*/
|
||||
organizationGovernmentAgency,
|
||||
listOrganizationGovernmentAgencyHistory: `${organizationGovernmentAgency}history`,
|
||||
listOrganizationGovernmentAgencyHistoryId: (id: string) =>
|
||||
`${organizationGovernmentAgency}history/${id}`,
|
||||
listOrganizationGovernmentAgencyPublished: `${organizationGovernmentAgency}history/published`,
|
||||
listOrganizationGovernmentAgencyPublishedHistory: `${organizationGovernmentAgency}history/published-history`,
|
||||
|
||||
/**
|
||||
* api เบอร์ติดต่อภายนอก
|
||||
*/
|
||||
organizationTelExternal,
|
||||
listOrganizationTelExternalHistory: `${organizationTelExternal}history`,
|
||||
listOrganizationTelExternalHistoryId: (id: string) =>
|
||||
`${organizationTelExternal}history/${id}`,
|
||||
listOrganizationTelExternalPublished: `${organizationTelExternal}history/published`,
|
||||
listOrganizationTelExternalPublishedHistory: `${organizationTelExternal}history/published-history`,
|
||||
|
||||
/**
|
||||
* api เบอร์ติดต่อภายใน
|
||||
*/
|
||||
organizationTelInternal,
|
||||
listOrganizationTelInternalHistory: `${organizationTelInternal}history`,
|
||||
listOrganizationTelInternalHistoryId: (id: string) =>
|
||||
`${organizationTelInternal}history/${id}`,
|
||||
listOrganizationTelInternalPublished: `${organizationTelInternal}history/published`,
|
||||
listOrganizationTelInternalPublishedHistory: `${organizationTelInternal}history/published-history`,
|
||||
|
||||
/**
|
||||
* api เบอร์โทรสาร
|
||||
*/
|
||||
organizationFax,
|
||||
listOrganizationFaxHistory: `${organizationFax}history`,
|
||||
listOrganizationFaxHistoryId: (id: string) =>
|
||||
`${organizationFax}history/${id}`,
|
||||
listOrganizationFaxPublished: `${organizationFax}history/published`,
|
||||
listOrganizationFaxPublishedHistory: `${organizationFax}history/published-history`,
|
||||
};
|
||||
140
src/api/manage/api.person.ts
Normal file
140
src/api/manage/api.person.ts
Normal file
|
|
@ -0,0 +1,140 @@
|
|||
/**
|
||||
* api ระบบจัดการข้อมูลหลัก
|
||||
* เมนูย่อย: ข้อมูลเกี่ยวกับบุคคล
|
||||
*/
|
||||
import env from "../index";
|
||||
const person = `${env.API_URI}/metadata/main/`;
|
||||
const province = `${env.API_URI}/metadata/province/`;
|
||||
const district = `${env.API_URI}/metadata/district/`;
|
||||
const subDistrict = `${env.API_URI}/metadata/sub-district/`;
|
||||
const prefix = `${env.API_URI}/metadata/prefix/`;
|
||||
const bloodGroup = `${env.API_URI}/metadata/blood-group/`;
|
||||
const educationLevel = `${env.API_URI}/metadata/education-level/`;
|
||||
const gender = `${env.API_URI}/metadata/gender/`;
|
||||
const relationship = `${env.API_URI}/metadata/relationship/`;
|
||||
const religion = `${env.API_URI}/metadata/religion/`;
|
||||
|
||||
const orgRelationship = `${env.API_URI}/org/metadata/relationship/`;
|
||||
const orgPrefix = `${env.API_URI}/org/metadata/prefix/`;
|
||||
const orgRank = `${env.API_URI}/org/metadata/rank/`;
|
||||
const orgBloodGroup = `${env.API_URI}/org/metadata/bloodGroup/`;
|
||||
const orgGender = `${env.API_URI}/org/metadata/gender/`;
|
||||
const orgReligion = `${env.API_URI}/org/metadata/religion/`;
|
||||
const orgEducationLevel = `${env.API_URI}/org/metadata/educationLevel/`;
|
||||
|
||||
const orgProvince = `${env.API_URI}/org/metadata/province`;
|
||||
const orgDistrict = `${env.API_URI}/org/metadata/district`;
|
||||
const orgSubDistrict = `${env.API_URI}/org/metadata/subDistrict`;
|
||||
|
||||
export default {
|
||||
person: `${person}person`,
|
||||
|
||||
/**
|
||||
* api จังหวัด
|
||||
*/
|
||||
province,
|
||||
listProvinceHistory: `${province}history`,
|
||||
listProvinceHistoryId: (id: string) => `${province}history/${id}`,
|
||||
listProvincePublished: `${province}history/published`,
|
||||
listProvincePublishedHistory: `${province}history/published-history`,
|
||||
|
||||
/**
|
||||
* api เขต
|
||||
*/
|
||||
listDistrict: (id: string) => `${district}${id}`,
|
||||
listDistrictHistory: `${district}history`,
|
||||
listDistrictHistoryId: (id: string | string[]) => `${district}history/${id}`,
|
||||
listDistrictPublishedId: (id: string) => `${district}history/published/${id}`,
|
||||
listDistrictPublishedHistory: (id: string | string[]) =>
|
||||
`${district}history/published-history/${id}`,
|
||||
|
||||
/**
|
||||
* api แขวง
|
||||
*/
|
||||
listSubDistrict: (id: string) => `${subDistrict}${id}`,
|
||||
listSubDistrictHistory: `${subDistrict}history`,
|
||||
listSubDistrictHistoryProvinceId: (
|
||||
provinceId: string | string[],
|
||||
district: string | string[]
|
||||
) => `${subDistrict}history/${provinceId}/${district}`,
|
||||
listSubDistrictHistoryId: (id: string | string[]) =>
|
||||
`${subDistrict}history/${id}`,
|
||||
listSubDistrictPublishedId: (id: string) =>
|
||||
`${subDistrict}history/published/${id}`,
|
||||
listSubDistrictPublishedHistory: (id: string | string[]) =>
|
||||
`${subDistrict}history/published-history/${id}`,
|
||||
|
||||
/**
|
||||
* api คำนำหน้าชื่อ
|
||||
*/
|
||||
prefix,
|
||||
listPrefixHistory: `${prefix}history`,
|
||||
listPrefixHistoryId: (id: string) => `${prefix}history/${id}`,
|
||||
listPrefixPublished: `${prefix}history/published`,
|
||||
listPrefixPublishedHistory: `${prefix}history/published-history`,
|
||||
|
||||
/**
|
||||
* api เพศ
|
||||
*/
|
||||
gender,
|
||||
listGenderHistory: `${gender}history`,
|
||||
listGenderHistoryId: (id: string) => `${gender}history/${id}`,
|
||||
listGenderPublished: `${gender}history/published`,
|
||||
listGenderPublishedHistory: `${gender}history/published-history`,
|
||||
|
||||
/**
|
||||
* api สถานภาพ
|
||||
*/
|
||||
relationship,
|
||||
listRelationshipHistory: `${relationship}history`,
|
||||
listRelationshipHistoryId: (id: string) => `${relationship}history/${id}`,
|
||||
listRelationshipPublished: `${relationship}history/published`,
|
||||
listRelationshipPublishedHistory: `${relationship}history/published-history`,
|
||||
|
||||
/**
|
||||
* api กลุ่มเลือด
|
||||
*/
|
||||
bloodGroup,
|
||||
listBloodGroupHistory: `${bloodGroup}history`,
|
||||
listBloodGroupHistoryId: (id: string) => `${bloodGroup}history/${id}`,
|
||||
listBloodGroupPublished: `${bloodGroup}history/published`,
|
||||
listBloodGroupPublishedHistory: `${bloodGroup}history/published-history`,
|
||||
|
||||
/**
|
||||
* api ศาสนา
|
||||
*/
|
||||
religion,
|
||||
listReligionHistory: `${religion}history`,
|
||||
listReligionHistoryId: (id: string) => `${religion}history/${id}`,
|
||||
listReligionPublished: `${religion}history/published`,
|
||||
listReligionPublishedHistory: `${religion}history/published-history`,
|
||||
|
||||
/**
|
||||
* api ระดับการศึกษา
|
||||
*/
|
||||
educationLevel,
|
||||
listEducationLevelHistory: `${educationLevel}history`,
|
||||
listEducationLevelHistoryId: (id: string) => `${educationLevel}history/${id}`,
|
||||
listEducationLevelPublished: `${educationLevel}history/published`,
|
||||
listEducationLevelPublishedHistory: `${educationLevel}history/published-history`,
|
||||
|
||||
// API ใหม่
|
||||
orgRelationship,
|
||||
orgRelationshipId: (id: string) => `${orgRelationship}${id}`,
|
||||
orgPrefix,
|
||||
orgPrefixId: (id: string) => `${orgPrefix}${id}`,
|
||||
orgRank,
|
||||
orgRankId: (id: string) => `${orgRank}${id}`,
|
||||
orgBloodGroup,
|
||||
orgBloodGroupId: (id: string) => `${orgBloodGroup}${id}`,
|
||||
orgGender,
|
||||
orgGenderId: (id: string) => `${orgGender}${id}`,
|
||||
orgReligion,
|
||||
orgReligionId: (id: string) => `${orgReligion}${id}`,
|
||||
orgEducationLevel,
|
||||
orgEducationLevelId: (id: string) => `${orgEducationLevel}${id}`,
|
||||
|
||||
orgProvince,
|
||||
orgDistrict,
|
||||
orgSubDistrict,
|
||||
};
|
||||
105
src/api/manage/api.position.ts
Normal file
105
src/api/manage/api.position.ts
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
/**
|
||||
* api ระบบจัดการข้อมูลหลัก
|
||||
* เมนูย่อย: ข้อมูลตำแหน่งของข้าราชการกรุงเทพมหานคร
|
||||
*/
|
||||
import env from "../index";
|
||||
const position = `${env.API_URI}/metadata/main/`;
|
||||
const positionExecutiveSide = `${env.API_URI}/metadata/position-executive-side/`;
|
||||
const positionLevel = `${env.API_URI}/metadata/position-level/`;
|
||||
const positionPath = `${env.API_URI}/metadata/position-path/`;
|
||||
const positionSide = `${env.API_URI}/metadata/position-path-side/`;
|
||||
const positionType = `${env.API_URI}/metadata/position-type/`;
|
||||
const positionStatus = `${env.API_URI}/metadata/position-status/`;
|
||||
const positionLine = `${env.API_URI}/metadata/position-line/`;
|
||||
const positionExecutive = `${env.API_URI}/metadata/position-executive/`;
|
||||
|
||||
const orgPosType = `${env.API_URI}/org/pos/type/`;
|
||||
const orgPosLevel = `${env.API_URI}/org/pos/level/`;
|
||||
export default {
|
||||
position: `${position}position`,
|
||||
/**
|
||||
* api ด้านทางการบริหาร
|
||||
*/
|
||||
positionExecutiveSide,
|
||||
listPositionExecutiveSideHistory: `${positionExecutiveSide}history`,
|
||||
listPositionExecutiveSideHistoryId: (id: string) =>
|
||||
`${positionExecutiveSide}history/${id}`,
|
||||
listPositionExecutiveSidePublished: `${positionExecutiveSide}history/published`,
|
||||
listPositionExecutiveSidePublishedHistory: `${positionExecutiveSide}history/published-history`,
|
||||
|
||||
/**
|
||||
* api ตำแหน่งในสายงาน
|
||||
*/
|
||||
// listPositionHistory: `${position}history`,
|
||||
// listPositionHistoryId: (id: string) => `${position}history/${id}`,
|
||||
// listPositionPublished: `${position}history/published`,
|
||||
|
||||
/**
|
||||
* api ระดับตำแหน่ง
|
||||
*/
|
||||
positionLevel,
|
||||
listPositionLevelHistory: `${positionLevel}history`,
|
||||
listPositionLevelHistoryId: (id: string) => `${positionLevel}history/${id}`,
|
||||
listPositionLevelPublished: `${positionLevel}history/published`,
|
||||
listPositionLevelPublishedHistory: `${positionLevel}history/published-history`,
|
||||
|
||||
/**
|
||||
* api ตำแหน่งในสายงาน
|
||||
*/
|
||||
positionPath,
|
||||
listPositionPathHistory: `${positionPath}history`,
|
||||
listPositionPathHistoryId: (id: string) => `${positionPath}history/${id}`,
|
||||
listPositionPathPublished: `${positionPath}history/published`,
|
||||
listPositionPathPublishedHistory: `${positionPath}history/published-history`,
|
||||
|
||||
/**
|
||||
* api ด้าน/สาขา
|
||||
*/
|
||||
positionSide,
|
||||
listPositionSideHistory: `${positionSide}history`,
|
||||
listPositionSideHistoryId: (id: string) => `${positionSide}history/${id}`,
|
||||
listPositionSidePublished: `${positionSide}history/published`,
|
||||
listPositionSidePublishedHistory: `${positionSide}history/published-history`,
|
||||
|
||||
/**
|
||||
* api ประเภทตำแหน่ง
|
||||
*/
|
||||
positionType,
|
||||
listPositionTypeHistory: `${positionType}history`,
|
||||
listPositionTypeHistoryId: (id: string) => `${positionType}history/${id}`,
|
||||
listPositionTypePublished: `${positionType}history/published`,
|
||||
listPositionTypePublishedHistory: `${positionType}history/published-history`,
|
||||
|
||||
/**
|
||||
* api สถานะของตำแหน่ง
|
||||
*/
|
||||
positionStatus,
|
||||
listPositionStatusHistory: `${positionStatus}history`,
|
||||
listPositionStatusHistoryId: (id: string) => `${positionStatus}history/${id}`,
|
||||
listPositionStatusPublished: `${positionStatus}history/published`,
|
||||
listPositionStatusPublishedHistory: `${positionStatus}history/published-history`,
|
||||
|
||||
/**
|
||||
* api สายงานของตำแหน่ง
|
||||
*/
|
||||
positionLine,
|
||||
listPositionLineHistory: `${positionLine}history`,
|
||||
listPositionLineHistoryId: (id: string) => `${positionLine}history/${id}`,
|
||||
listPositionLinePublished: `${positionLine}history/published`,
|
||||
listPositionLinePublishedHistory: `${positionLine}history/published-history`,
|
||||
|
||||
/**
|
||||
* api ตำแหน่งทางการบริหาร
|
||||
*/
|
||||
positionExecutive,
|
||||
listPositionExecutiveHistory: `${positionExecutive}history`,
|
||||
listPositionExecutiveHistoryId: (id: string) =>
|
||||
`${positionExecutive}history/${id}`,
|
||||
listPositionExecutivePublished: `${positionExecutive}history/published`,
|
||||
listPositionExecutivePublishedHistory: `${positionExecutive}history/published-history`,
|
||||
|
||||
orgPosType,
|
||||
orgPosTypeId: (id: string) => `${orgPosType}${id}`,
|
||||
orgPosLevel,
|
||||
orgPosLevelId: (id: string) => `${orgPosLevel}${id}`,
|
||||
};
|
||||
75
src/api/manage/api.positionEmployee.ts
Normal file
75
src/api/manage/api.positionEmployee.ts
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
/**
|
||||
* 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`,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue