const URL = "/one-api/mockup/samplingso/"; export async function search(prm) { try { var resp = await axios.post(URL + 'samplingverify/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 getstation(prm) { try { var resp = await axios.post(URL + 'samplingverify/getstation', 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 doaction(prm) { try { var resp = await axios.post(URL + 'samplingverify/doaction', 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 upload(prm) { try { var resp = await axios.post(URL + 'samplingupload/uploadimage', 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 deletephoto(prm) { try { var resp = await axios.post(URL + 'samplingverify/deletephoto', 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 getdoctoraddress(prm) { try { var resp = await axios.post(URL + 'samplingverify/getdoctoraddress', 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 }; } }