const URL = "/one-api/mockup/masterdata/"; export async function search(prm) { try { var resp = await axios.post(URL + 'jpatestright/search',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 search_listing(prm) { try { var resp = await axios.post(URL + 'jpatestright/search_listing',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 save(prm) { try { var resp = await axios.post(URL + 'jpatestright/save',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 savejpagroup(prm) { try { var resp = await axios.post(URL + 'jpatestright/savejpagroup',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 savelistingjpagroup(prm) { try { var resp = await axios.post(URL + 'jpatestright/savelistingjpagroup',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 savealljpadetail(prm) { try { var resp = await axios.post(URL + 'jpatestright/savealljpadetail',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 }; } }