101 lines
3.5 KiB
TypeScript
101 lines
3.5 KiB
TypeScript
import env from "../index";
|
|
const KPI = `${env.API_URI}/kpi`;
|
|
const kpiPeriod = `${env.API_URI}/kpi/period`;
|
|
const kpiEvaluation = `${env.API_URI}/kpi/evaluation`;
|
|
const kpiEvaluationUser = `${env.API_URI}/kpi/user/evaluation`;
|
|
const kpiUserEvaluation = `${env.API_URI}/kpi/user/evaluation`;
|
|
const kpiPlan = `${env.API_URI}/kpi/plan`;
|
|
const kpiRole = `${env.API_URI}/kpi/role`;
|
|
const kpiSpecial = `${env.API_URI}/kpi/special`;
|
|
const kpiCapacity = `${env.API_URI}/kpi/capacity`;
|
|
const KpiFile = `${env.API_URI}/salary/file`;
|
|
const KpiEvaluationInfo = `${env.API_URI}/kpi/evaluation`;
|
|
const Kpiorg = `${env.API_URI}/org/profile/commander`;
|
|
|
|
const KpiUser = `${env.API_URI}/kpi/user`;
|
|
const kpiAchievement = `${env.API_URI}/kpi/user/achievement`;
|
|
const kpiReason = `${env.API_URI}/kpi/reason`;
|
|
|
|
const urlFile = `${env.API_URI}/salary`;
|
|
|
|
const kpiGroup = `${env.API_URI}/kpi/group`;
|
|
const kpiLink = `${env.API_URI}/kpi/link`;
|
|
const placementKeycloak = `${env.API_URI}/placement/officer/profileId`;
|
|
const orgPosition = `${env.API_URI}/org/profile/profileid/position`;
|
|
|
|
export default {
|
|
KPI,
|
|
kpiUserEvaluation,
|
|
/** รอบการประเมินผล*/
|
|
kpiPeriod,
|
|
kpiPeriodById: (id: string) => `${kpiPeriod}/${id}`,
|
|
|
|
kpiEvaluation,
|
|
kpiEvaluationUser,
|
|
kpiPlan,
|
|
kpiPlanById: (id: string) => `${kpiPlan}/edit/${id}`,
|
|
|
|
/** role */
|
|
kpiRole,
|
|
kpiRoleMainList: `${KPI}/role`,
|
|
kpiRoleMainEdit: `${KPI}/role/edit`,
|
|
|
|
kpiSpecial,
|
|
kpiCapacity,
|
|
KpiFile: KpiFile,
|
|
|
|
kpiAchievement: (type: string) => `${kpiAchievement}/${type}`,
|
|
kpiAchievementPoint: (type: string) => `${kpiAchievement}/${type}/point`,
|
|
|
|
kpiScoreTotal: () => `${kpiEvaluation}/point`,
|
|
|
|
/** ผลสัมฤทธิ์ของงาน*/
|
|
fileByFile: (name: string, group: string, id: string, fileName: string) =>
|
|
`${urlFile}/file/${name}/${group}/${id}/${fileName}`,
|
|
kpiUserCapacity: `${KpiUser}/capacity`,
|
|
KpiEvaluationInfo,
|
|
Kpiorg,
|
|
kpiEvaluationCheck: `${kpiEvaluationUser}/check`,
|
|
kpiSendToStatus: (id: string) => `${kpiEvaluationUser}/status/${id}`,
|
|
kpiReqEdit: (id: string) => `${kpiEvaluation}/edit/${id}`,
|
|
kpiReqEditUser: (id: string) => `${kpiEvaluationUser}/edit/${id}`,
|
|
/**ประเมิน*/
|
|
kpiAchievementDevelop: `${kpiAchievement}/development`,
|
|
|
|
kpiCommentP: (typP: string, type: string, role: string, id: string) =>
|
|
`${kpiReason}/${typP}/${type}/${role}/${id}`,
|
|
|
|
kpiGroup,
|
|
kpiGroupById: (id: string) => `${kpiGroup}/${id}`,
|
|
|
|
/** สมรรถนะ */
|
|
|
|
kpiLink,
|
|
|
|
profilePosition: `${env.API_URI}/org/profile/profileid/position`,
|
|
placementKeycloak,
|
|
profilePositionKey: () => `${env.API_URI}/org/profile/keycloak/position`,
|
|
/** Report*/
|
|
kpiReport: () => `${KPI}/report/announcement`,
|
|
sendToCommander: `${KpiUser}/evaluation/admin/change-status`,
|
|
sendToSummary: (id: string) => `${kpiEvaluationUser}/summary/${id}`,
|
|
updatePoint: (id: string) => `${kpiEvaluationUser}/point/${id}`,
|
|
kpiSendToReason: (id: string, type: string) =>
|
|
`${kpiEvaluationUser}/reason/${type}/${id}`,
|
|
|
|
kpiSendToGet: (id: string) => `${kpiEvaluationUser}/reason/${id}`,
|
|
openPoint: (id: string) => `${kpiEvaluationUser}/open/${id}`,
|
|
|
|
/**
|
|
* ประกาศผล
|
|
*/
|
|
evaluationUser: `${KpiUser}/evaluation/list-announce`,
|
|
evaluationUserDone: `${KpiUser}/evaluation/done/kp7`,
|
|
achievementDev: `${KpiUser}/achievement/development/admin`,
|
|
achievementDevByid: (id: string) =>
|
|
`${KpiUser}/achievement/development/admin/detail/${id}`,
|
|
|
|
indicatorSummary:`${kpiPlan}/summary/indicator`,
|
|
capacitySummary:`${kpiCapacity}/summary`
|
|
|
|
};
|