hrms-checkin/src/api/api.checkin.ts
2025-03-20 13:11:03 +07:00

20 lines
725 B
TypeScript

import env from './index'
const leave = `${env.API_URI}/leave`
const urlFile = `${env.API_URI}/salary`
const orgKeycloak = `${env.API_URI}/org/keycloak`
export default {
checkin: () => `${leave}/check-in`,
checkTime: () => `${leave}/check-time`,
checkStatus: () => `${leave}/check-status`,
keycloakLogSSO: `${env.API_URI}/org/keycloak/log/sso`,
keycloakPosition: () => `${env.API_URI}/org/profile/keycloak/position`,
fileByFile: (name: string, group: string, id: string, fileName: string) =>
`${urlFile}/file/${name}/${group}/${id}/${fileName}`,
changePassword:`${orgKeycloak}/user/change-password`,
resetPassword:`${orgKeycloak}/user/reset-password`,
checkoutCheck:`${leave}/user/checkout-check`
}