Initial import

This commit is contained in:
sas.fajri
2026-05-25 20:01:37 +07:00
commit 710d7c1b97
10371 changed files with 2381698 additions and 0 deletions

View File

@@ -0,0 +1,57 @@
// http://devkedungdororaya.aplikasi.web.id/one-api/v1/courier/mdcourier/search
const URL = "/one-api/v1/courier/mdcourier/";
export async function search(prm) {
try {
var resp = await axios.post(URL + '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 add(prm) {
try {
var resp = await axios.post(URL + 'add', 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 deleteData(prm) {
try {
var resp = await axios.post(URL + 'delete', 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
};
}
}

View File

@@ -0,0 +1,93 @@
const URL = "/one-api/v1/masterdata/publicholiday/";
// https://devbandungraya.aplikasi.web.id/one-api/v1/masterdata/publicholiday/gettype
export async function gettype(prm) {
try {
var resp = await axios.post(URL + 'gettype', 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 add(prm) {
try {
var resp = await axios.post(URL + 'add', 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 edit(prm) {
try {
var resp = await axios.post(URL + 'edit', 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 deleteData(prm) {
try {
var resp = await axios.post(URL + 'delete', 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(prm) {
try {
var resp = await axios.post(URL + '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
};
}
}

View File

@@ -0,0 +1,74 @@
// http://devbandungraya.aplikasi.web.id/one-api/mockup/injectprice/injectprice/getCompany/
const URL = "/one-api/mockup/injectprice/injectprice/";
export async function getCompany(prm) {
try {
var resp = await axios.post(URL + 'getCompany', 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 getMou(prm) {
try {
var resp = await axios.post(URL + 'getMou', 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 getTest(prm) {
try {
var resp = await axios.post(URL + 'getTest', prm);
if (resp.status != 200) {
return {
status: "ERR",
message: resp.statusText
};
}
return resp.data;
} catch (e) {
return {
status: "ERR",
message: e.message
};
}
}
export async function inject(prm) {
try {
var resp = await axios.post(URL + 'inject', 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
};
}
}