ข้อมูลบุคคล: ต่อAPI
This commit is contained in:
parent
47e96ddec5
commit
338c2a3b7d
12 changed files with 415 additions and 198 deletions
|
|
@ -14,6 +14,14 @@ 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/relationship/`;
|
||||
const orgPrefix = `${env.API_URI}/org/prefix/`;
|
||||
const orgRank = `${env.API_URI}/org/rank/`;
|
||||
const orgBloodGroup = `${env.API_URI}/org/bloodGroup/`;
|
||||
const orgGender = `${env.API_URI}/org/gender/`;
|
||||
const orgReligion = `${env.API_URI}/org/religion/`;
|
||||
const orgEducationLevel = `${env.API_URI}/org/educationLevel/`;
|
||||
|
||||
export default {
|
||||
person: `${person}person`,
|
||||
|
||||
|
|
@ -105,4 +113,20 @@ export default {
|
|||
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}`,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue