refactor: ♻️ 优化请求接口

This commit is contained in:
tsl
2026-04-16 09:50:30 +08:00
parent cc30c088c4
commit 82c2b0f1bd
24 changed files with 8535 additions and 78 deletions
+11
View File
@@ -0,0 +1,11 @@
import path from "path";
import { fileURLToPath } from "url";
import client, { saveResponse } from "../client.js";
const __dirname = path.dirname(fileURLToPath(import.meta.url));
export async function getStatusCount() {
const response = await client.post("/DemandManage/QueryIndexCount", {});
saveResponse(__dirname, response.data);
return response.data;
}
+10
View File
@@ -0,0 +1,10 @@
{
"success": true,
"code": null,
"msg": "执行成功",
"data": {
"PendingCount": 1,
"StaycloseCount": 0,
"ConfirmCount": 0
}
}