Flatten nested repos

This commit is contained in:
sas.fajri
2026-04-27 10:13:31 +07:00
parent 01c2963a43
commit 8347aef8f4
17935 changed files with 5015229 additions and 3 deletions

View File

@@ -0,0 +1,24 @@
const URL = "/one-api/mockup/refout/refout/";
export async function search(search, is_internal, page) {
try {
var resp = await axios.post(URL + 'refout/search_company', {
search: search,
page: page,
is_internal: is_internal
});
if (resp.status != 200) {
return {
status: "ERR",
message: resp.statusText
};
}
let data = resp.data;
return data;
} catch (e) {
return {
status: "ERR",
message: e.message
};
}
}

View File

@@ -0,0 +1,47 @@
const URL = "/one-api/mockup/refout/refout/";
export async function search(search, company_id, is_internal, page) {
try {
var resp = await axios.post(URL + 'refout/search', {
search: search,
company_id: company_id,
is_internal: is_internal,
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 send(token, ids) {
try {
var resp = await axios.post(URL + 'refout/send', {
token: token,
ids: ids
});
if (resp.status != 200) {
return {
status: "ERR",
message: resp.statusText
};
}
let data = resp.data;
return data;
} catch (e) {
return {
status: "ERR",
message: e.message
};
}
}