refactor: ♻️ 优化请求接口
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"success": true,
|
||||
"code": null,
|
||||
"msg": "执行成功",
|
||||
"data": {
|
||||
"PendingCount": 1,
|
||||
"StaycloseCount": 0,
|
||||
"ConfirmCount": 0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user