|
- "use server";
-
- import { serverFetchBlob, serverFetchJson } from "@/app/utils/fetchUtil";
- import { EX02ProjectCashFlowReportRequest } from ".";
- import { BASE_API_URL } from "@/config/api";
-
- export const fetchEX02ProjectCashFlowReport = async (data: EX02ProjectCashFlowReportRequest) => {
- const reportBlob = await serverFetchBlob(
- `${BASE_API_URL}/reports/EX02-ProjectCashFlowReport`,
- {
- method: "POST",
- body: JSON.stringify(data),
- headers: { "Content-Type": "application/json" },
- },
- );
-
- return reportBlob
- };
|