diff --git a/src/lib/DropdownAPI.jsx b/src/lib/DropdownAPI.jsx
index 8625037..077dffa 100644
--- a/src/lib/DropdownAPI.jsx
+++ b/src/lib/DropdownAPI.jsx
@@ -18,12 +18,49 @@ const cabang = async () => {
};
});
}
-const productType = async () => {
- let response = await API.GET(`/ref/productType`);
+const divisi = async () => {
+ let response = await API.GET(`/ref/divisi`);
return response?.result?.data?.map((v) => {
return {
- value: v.productTypeId,
- label: v.definition,
+ value: v.divisiId,
+ label: v.divisiNm,
+ };
+ });
+}
+
+const agama = async () => {
+ let response = await API.GET(`/ref/agama`);
+ return response?.result?.data?.map((v) => {
+ return {
+ value: v.agamaId,
+ label: v.agamaNm,
+ };
+ });
+}
+const jabatan = async () => {
+ let response = await API.GET(`/ref/jabatan`);
+ return response?.result?.data?.map((v) => {
+ return {
+ value: v.jabatanId,
+ label: v.jabatanNm,
+ };
+ });
+}
+const jenisKelamin = async () => {
+ let response = await API.GET(`/ref/jenisKelamin`);
+ return response?.result?.data?.map((v) => {
+ return {
+ value: v.jenisKelaminId,
+ label: v.jenisKelaminNm,
+ };
+ });
+}
+const statusKaryawan = async () => {
+ let response = await API.GET(`/ref/statusKaryawan`);
+ return response?.result?.data?.map((v) => {
+ return {
+ value: v.statusKaryawanId,
+ label: v.statusKaryawanNm,
};
});
}
@@ -31,5 +68,9 @@ const productType = async () => {
export const DropdownAPI = {
role,
cabang,
- productType
+ divisi,
+ agama,
+ jabatan,
+ jenisKelamin,
+ statusKaryawan
};