2024-04-22 17:25:58 +07:00
|
|
|
import env from "../index";
|
|
|
|
|
|
2024-04-22 18:11:24 +07:00
|
|
|
const url = `${env.API_URI}/salary`;
|
2024-04-22 17:25:58 +07:00
|
|
|
const kpiPeriod = `${env.API_URI}/kpi/period`;
|
|
|
|
|
const kpiEvaluation = `${env.API_URI}/kpi/user/evaluation`;
|
|
|
|
|
const kpiPlan = `${env.API_URI}/kpi/plan`;
|
2024-04-23 10:20:33 +07:00
|
|
|
const kpiRole = `${env.API_URI}/kpi/role`;
|
2024-05-09 11:55:37 +07:00
|
|
|
const kpiSpecial = `${env.API_URI}/kpi/special`;
|
2024-04-22 17:34:56 +07:00
|
|
|
const KpiCapacity = `${env.API_URI}/kpi/capacity`;
|
|
|
|
|
const KpiFile = `${env.API_URI}/salary/file`;
|
2024-04-29 09:55:15 +07:00
|
|
|
const KpiEvaluationInfo = `${env.API_URI}/kpi/evaluation`;
|
|
|
|
|
const Kpiorg = `${env.API_URI}/org/profile/commander`;
|
2024-04-23 16:23:49 +07:00
|
|
|
|
|
|
|
|
const KpiUser = `${env.API_URI}/kpi/user`;
|
2024-04-23 15:43:41 +07:00
|
|
|
const kpiAchievement = `${env.API_URI}/kpi/user/achievement`;
|
2024-05-13 17:50:26 +07:00
|
|
|
const kpiReason = `${env.API_URI}/kpi/reason`;
|
2024-06-13 10:34:06 +07:00
|
|
|
|
|
|
|
|
|
2024-06-17 09:18:25 +07:00
|
|
|
// const placementKeycloak = `${env.API_URI}/placement/officer/keycloak`;
|
|
|
|
|
const placementKeycloak = `${env.API_URI}/placement/officer/profileId`;
|
2024-06-13 10:34:06 +07:00
|
|
|
const orgPosition = `${env.API_URI}/org/profile/keycloak/position `;
|
2024-04-22 17:25:58 +07:00
|
|
|
export default {
|
|
|
|
|
kpiPeriod,
|
|
|
|
|
kpiEvaluation,
|
|
|
|
|
kpiPlan,
|
2024-04-23 10:20:33 +07:00
|
|
|
kpiRole,
|
2024-05-09 11:55:37 +07:00
|
|
|
kpiSpecial,
|
2024-04-22 17:34:56 +07:00
|
|
|
KpiCapacity,
|
|
|
|
|
file: KpiFile,
|
2024-04-22 18:11:24 +07:00
|
|
|
|
2024-04-23 15:43:41 +07:00
|
|
|
kpiAchievement: (type: string) => `${kpiAchievement}/${type}`,
|
2024-04-24 15:00:53 +07:00
|
|
|
kpiAchievementPoint: (type: string) => `${kpiAchievement}/${type}/point`,
|
2024-04-23 15:43:41 +07:00
|
|
|
|
2024-04-29 13:41:41 +07:00
|
|
|
kpiScoreTotal: () => `${kpiEvaluation}/point`,
|
|
|
|
|
|
2024-04-23 15:43:41 +07:00
|
|
|
/** ผลสัมฤทธิ์ของงาน*/
|
2024-04-22 18:11:24 +07:00
|
|
|
fileByFile: (name: string, group: string, id: string, fileName: string) =>
|
|
|
|
|
`${url}/file/${name}/${group}/${id}/${fileName}`,
|
2024-05-28 15:44:17 +07:00
|
|
|
fileByFileUser: (name: string, group: string, id: string) =>
|
|
|
|
|
`${url}/file/${name}/${group}/${id}`,
|
2024-04-24 15:00:53 +07:00
|
|
|
kpiUserCapacity: `${KpiUser}/capacity`,
|
2024-04-29 09:55:15 +07:00
|
|
|
KpiEvaluationInfo,
|
2024-04-26 15:18:28 +07:00
|
|
|
Kpiorg,
|
2024-04-29 09:55:15 +07:00
|
|
|
kpiEvaluationCheck: `${kpiEvaluation}/check`,
|
2024-05-09 17:14:21 +07:00
|
|
|
kpiSendToStatus: (id: string) => `${kpiEvaluation}/status/${id}`,
|
2024-05-09 18:09:43 +07:00
|
|
|
kpiReqEdit: (id: string) => `${kpiEvaluation}/edit/${id}`,
|
2024-04-29 09:55:15 +07:00
|
|
|
/**ประเมิน*/
|
2024-05-09 18:09:43 +07:00
|
|
|
kpiAchievementDevelop: `${kpiAchievement}/development`,
|
2024-05-13 17:50:26 +07:00
|
|
|
|
2024-06-13 10:34:06 +07:00
|
|
|
kpiCommentP:(typP:string,type:string,role:string,id:string)=>`${kpiReason}/${typP}/${type}/${role}/${id}`,
|
|
|
|
|
|
|
|
|
|
placementKeycloak,
|
|
|
|
|
orgPosition,
|
|
|
|
|
sendToCommander:`${KpiUser}/evaluation/admin/change-status`
|
2024-04-22 17:25:58 +07:00
|
|
|
};
|