Flatten nested repos
This commit is contained in:
27
test/vuex/cpone-process-resultentry-v21/api/company.js
Normal file
27
test/vuex/cpone-process-resultentry-v21/api/company.js
Normal file
@@ -0,0 +1,27 @@
|
||||
const URL = "/one-api/mockup/process/cpone-process-resultentry-v21/";
|
||||
|
||||
export async function search(token, qry, c_token) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'company/search', {
|
||||
token: token,
|
||||
qry: qry
|
||||
},{ cancelToken : c_token });
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
let data = resp.data.data;
|
||||
return {
|
||||
status: "OK",
|
||||
data : data
|
||||
};
|
||||
} catch(e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
64
test/vuex/cpone-process-resultentry-v21/api/helper.js
Normal file
64
test/vuex/cpone-process-resultentry-v21/api/helper.js
Normal file
@@ -0,0 +1,64 @@
|
||||
const URL = "/one-api/mockup/process/cpone-process-resultentry-v21/";
|
||||
|
||||
export async function calc_age(prm ) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'helper/calc_age', prm);
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
return {
|
||||
status: "OK",
|
||||
data : resp.data.data
|
||||
};
|
||||
} catch(e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
export async function check_status_print(prm ) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'helper/check_status_print', prm);
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
return {
|
||||
status: "OK",
|
||||
data : resp.data.data
|
||||
};
|
||||
} catch(e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export async function insertlogprint(prm ) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'helper/insertlogprint', prm);
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
return {
|
||||
status: "OK",
|
||||
data : resp.data.data
|
||||
};
|
||||
} catch(e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
25
test/vuex/cpone-process-resultentry-v21/api/re_history.js
Normal file
25
test/vuex/cpone-process-resultentry-v21/api/re_history.js
Normal file
@@ -0,0 +1,25 @@
|
||||
const URL = "/one-api/mockup/process/cpone-process-resultentry-v21/";
|
||||
|
||||
export async function history(token, order_id) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'history/search_v2', {
|
||||
token: token,
|
||||
order_id: order_id
|
||||
});
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
let data = resp.data;
|
||||
return data;
|
||||
} catch(e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
23
test/vuex/cpone-process-resultentry-v21/api/re_normal.js
Normal file
23
test/vuex/cpone-process-resultentry-v21/api/re_normal.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const URL = "/one-api/mockup/process/cpone-process-resultentry-v21/";
|
||||
|
||||
export async function update(token, order_detail_id) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_normal/update', {
|
||||
token: token,
|
||||
order_detail_id
|
||||
});
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
let data = resp.data;
|
||||
return data;
|
||||
} catch(e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
const URL = "/one-api/mockup/process/cpone-process-resultentry-v21/";
|
||||
|
||||
export async function search_method(token, nattest_id) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_normal_method/search_method', {
|
||||
token: token,
|
||||
nattest_id: nattest_id
|
||||
});
|
||||
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_method(token, detail_id, method_id) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_normal_method/save_method', {
|
||||
token: token,
|
||||
detail_id: detail_id,
|
||||
method_id: method_id
|
||||
});
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
let data = resp.data;
|
||||
return data;
|
||||
} catch(e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
73
test/vuex/cpone-process-resultentry-v21/api/re_patient.js
Normal file
73
test/vuex/cpone-process-resultentry-v21/api/re_patient.js
Normal file
@@ -0,0 +1,73 @@
|
||||
const URL = "/one-api/mockup/process/cpone-process-resultentry-v21/";
|
||||
|
||||
export async function search(token, sdate, edate, search, group_id, page, company_id) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_patient/search', {
|
||||
token: token,
|
||||
start_date: sdate,
|
||||
end_date: edate,
|
||||
search: search,
|
||||
group_id: group_id,
|
||||
page: page,
|
||||
company_id : company_id
|
||||
});
|
||||
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_note(token, order_id, note) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_patient/save_note', {
|
||||
token: token,
|
||||
order_id: order_id,
|
||||
note: note
|
||||
});
|
||||
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 info_req(token, order_id) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_patient/info_req', {
|
||||
token: token,
|
||||
order_id: order_id
|
||||
});
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
let data = resp.data;
|
||||
return data;
|
||||
} catch(e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
574
test/vuex/cpone-process-resultentry-v21/api/re_px.js
Normal file
574
test/vuex/cpone-process-resultentry-v21/api/re_px.js
Normal file
@@ -0,0 +1,574 @@
|
||||
const URL = "/one-api/mockup/process/cpone-process-resultentry-v21/";
|
||||
|
||||
export async function search(token, order_id, lang_id, lang_si, group_id) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/search', {
|
||||
token: token,
|
||||
order_id: order_id,
|
||||
lang_id: lang_id,
|
||||
lang_si: lang_si,
|
||||
group_id: group_id
|
||||
});
|
||||
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(token, lang_id, is_si, datax) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/save', {
|
||||
token: token,
|
||||
lang_id: lang_id,
|
||||
is_si: is_si,
|
||||
data: datax
|
||||
});
|
||||
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 confirm(token, datax) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'rv_validation/confirm', {
|
||||
token: token,
|
||||
data: datax
|
||||
});
|
||||
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 unvalidate(token, id) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'rv_validation/unvalidate', {
|
||||
token: token,
|
||||
order_id: id
|
||||
});
|
||||
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 uploadimage(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/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 save_template(token, test_id, value) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/save_template', {
|
||||
token: token,
|
||||
test_id: test_id,
|
||||
value: value
|
||||
});
|
||||
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 savererun(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/savererun', 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 lang_export(token, order_id, lang_id, is_si) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/export', {
|
||||
token: token,
|
||||
order_id: order_id,
|
||||
lang_id: lang_id,
|
||||
is_si: is_si
|
||||
});
|
||||
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_group() {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/search_group', {});
|
||||
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_rerun(detail_id) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/search_rerun', {detail_id: detail_id});
|
||||
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 getmikroresult(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/getmikroresult', 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 getpapsmearresult(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/getpapsmearresult', 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 getantibiotics(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/getantibiotics', 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 getlcprepresult(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/getlcprepresult', 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 getfnaresult(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/getfnaresult', 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 getcytologiresult(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/getcytologiresult', 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 saveresult_mikro(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/saveresult_mikro', 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 saveresult_papsmear(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/saveresult_papsmear', 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 saveresult_lcprep(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/saveresult_lcprep', 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 get_doctors(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/getdoctorsfna', 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 saveresult_fna(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/saveresult_fna', 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 saveresult_cytologi(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/saveresult_cytologi', 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 uploadimage_preparasi_sperma(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/uploadimage_preparasi_sperma', 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 getpreparasispermaresult(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/getpreparasispermaresult', 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 saveresult_preparasi_sperma(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/saveresult_preparasi_sperma', 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 get_doctors_preparasi_sperma(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/get_doctors_preparasi_sperma', 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 getdnafragmentasiresult(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/getdnafragmentasiresult', 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 saveresult_dnafragmentasi(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/saveresult_dnafragmentasi', 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
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user