Initial import
This commit is contained in:
46
process/one-process-verification-px/api/search_box.js
Normal file
46
process/one-process-verification-px/api/search_box.js
Normal file
@@ -0,0 +1,46 @@
|
||||
// API :
|
||||
// search bank
|
||||
// paramater : query , page , rowPerPage
|
||||
const URL =
|
||||
"/one-api/mockup/process/verification_px/";
|
||||
export async function search_group(token, sdate, search, page) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'search_box/search_group', {
|
||||
token: token,
|
||||
start_date: sdate,
|
||||
search: search,
|
||||
page: page
|
||||
});
|
||||
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_px(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'search_box/search_px', 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