| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- export const analyzeInvoices = (params: any) => {
- return fetch("/api/risk/decide", {
- method: "POST",
- headers: {
- "Content-Type": "application/json",
- Accept: "application/json",
- },
- body: JSON.stringify(params),
- }).then((res) => {
- if (!res.ok) {
- throw new Error(`HTTP error! status: ${res.status}`);
- }
- return res.json();
- });
- };
- export const evidenceSearch = (params: any) => {
- return fetch("/api/risk/evidence", {
- method: "POST",
- headers: {
- "Content-Type": "application/json",
- Accept: "application/json",
- },
- body: JSON.stringify(params),
- }).then((res) => {
- if (!res.ok) {
- throw new Error(`HTTP error! status: ${res.status}`);
- }
- return res.json();
- });
- };
- export const similarIdentificationApi = (params: any) => {
- return fetch("/api/risk/similar", {
- method: "POST",
- headers: {
- "Content-Type": "application/json",
- Accept: "application/json",
- },
- body: JSON.stringify(params),
- }).then((res) => {
- if (!res.ok) {
- throw new Error(`HTTP error! status: ${res.status}`);
- }
- return res.json();
- });
- };
|