Fix: - Integrasi API: Beranda, create, list partisipan, check sudah berpartisipasi ? ### No Issue
41 lines
943 B
TypeScript
41 lines
943 B
TypeScript
import { apiConfig } from "../api-config";
|
|
|
|
export async function apiMasterBidangBisnis() {
|
|
try {
|
|
const response = await apiConfig.get(`/master/bidang-bisnis`);
|
|
return response.data;
|
|
} catch (error) {
|
|
throw error;
|
|
}
|
|
}
|
|
|
|
export async function apiMasterSubBidangBisnis({ id }: { id?: string }) {
|
|
try {
|
|
const selectBidangId = id ? `/${id}` : "";
|
|
const response = await apiConfig.get(
|
|
`/master/sub-bidang-bisnis${selectBidangId}`
|
|
);
|
|
return response.data;
|
|
} catch (error) {
|
|
throw error;
|
|
}
|
|
}
|
|
|
|
export async function apiMasterEventType() {
|
|
try {
|
|
const response = await apiConfig.get(`/mobile/master/event-type`);
|
|
return response.data;
|
|
} catch (error) {
|
|
throw error;
|
|
}
|
|
}
|
|
|
|
export async function apiMasterCollaborationType() {
|
|
try {
|
|
const response = await apiConfig.get(`/mobile/master/collaboration-industry`);
|
|
return response.data;
|
|
} catch (error) {
|
|
throw error;
|
|
}
|
|
}
|