refactor(*): 稳定期治理 - 收敛核心架构、错误语义并修复跨项目数据竞态
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { apiClient, request } from "./request";
|
||||
import { http } from "./request";
|
||||
|
||||
export type DatabasePoolStats = {
|
||||
maxOpenConnections: number;
|
||||
@@ -117,9 +117,9 @@ export type RuntimeCacheClearResult = {
|
||||
};
|
||||
|
||||
export function getSystemPerformance(signal?: AbortSignal) {
|
||||
return request<SystemPerformance>(apiClient.get("/admin/system-performance", { signal }));
|
||||
return http.get<SystemPerformance>("/admin/system-performance", { signal });
|
||||
}
|
||||
|
||||
export function clearRuntimeCache() {
|
||||
return request<RuntimeCacheClearResult>(apiClient.post("/admin/system-performance/cache/clear", { scope: "runtime" }));
|
||||
return http.post<RuntimeCacheClearResult>("/admin/system-performance/cache/clear", { scope: "runtime" });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user