// http://devbandungraya.aplikasi.web.id/one-api/mockup/injectprice/injectprice/getCompany/ const URL = "/one-api/mockup/injectprice/injectprice/"; export async function getCompany(prm) { try { var resp = await axios.post(URL + 'getCompany', prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function getMou(prm) { try { var resp = await axios.post(URL + 'getMou', prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function getTest(prm) { try { var resp = await axios.post(URL + 'getTest', prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } return resp.data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function inject(prm) { try { var resp = await axios.post(URL + 'inject', prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } }