ต่อ api บรรจุ

This commit is contained in:
Thanit Konmek 2023-07-13 09:10:43 +07:00
parent 78ca0ceff7
commit 211ee33310
14 changed files with 1142 additions and 799 deletions

View file

@ -3,4 +3,34 @@
*/
import env from "../index";
export default {};
const placement = `${env.API_PLACEMENT_URI}/Placement/placement/`;
export default {
//personal
placementPersonalId: (personalId: string) =>
`${placement}personal/${personalId}`,
//personal
placementPropertyId: (personalId: string) =>
`${placement}property/${personalId}`,
//information
placementInformationId: (personalId: string) =>
`${placement}information/${personalId}`,
//address
placementAddressId: (personalId: string) =>
`${placement}address/${personalId}`,
//family
placementFamilyId: (personalId: string) => `${placement}family/${personalId}`,
//certificate
placementCertId: (personalId: string) =>
`${placement}certificate/${personalId}`,
placementCertDetailId: (personalId: string, certificateId: string) =>
`${placement}certificate/${personalId}/${certificateId}`,
//education
placementEducationId: (id: string) => `${placement}education/${id}`,
};

View file

@ -18,6 +18,7 @@ const config = ref<any>({
API_CANDIDATE_URI: "https://bma-ehr.frappet.synology.me/api/v1",
// API_REPORT_URI: "https://localhost:7187/api/v1",
API_REPORT_URI: "https://bma-ehr.frappet.synology.me/api/v1",
API_PLACEMENT_URI: "https://localhost:7260/api",
MEET_URI: "meet.frappet.com",
},
test: {
@ -49,6 +50,9 @@ const MEET_URI = ref<string>(config.value[env.value].MEET_URI);
const API_URI_PROFILE_SERVICE = ref<string>(
config.value[env.value].API_URI_PROFILE_SERVICE
);
const API_PLACEMENT_URI = ref<string>(
config.value[env.value].API_PLACEMENT_URI
);
export default {
env: env.value,
@ -58,5 +62,6 @@ export default {
API_REPORT_URI: API_REPORT_URI.value,
API_URI_ORG_SERVICE: API_URI_ORG_SERVICE.value,
API_URI_PROFILE_SERVICE: API_URI_PROFILE_SERVICE.value,
API_PLACEMENT_URI: API_PLACEMENT_URI.value,
MEET_URI: MEET_URI.value,
};