mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-03-14 05:33:42 +08:00
优化AOP日志模拟数据,删除不必要的删除接口逻辑,简化响应返回值。
This commit is contained in:
@@ -72,17 +72,6 @@ export default [
|
||||
http.delete("/aop-log/batch", async ({ request }) => {
|
||||
const ids = await request.json();
|
||||
console.log(`Captured a "DELETE /aop-log/batch" request with ids: ${ids}`);
|
||||
return HttpResponse.json(ids.length);
|
||||
}),
|
||||
|
||||
// 删除指定时间前的日志
|
||||
http.delete("/aop-log/before", ({ params }) => {
|
||||
const { beforeTime } = Object.fromEntries(
|
||||
new URL(params.request.url).searchParams,
|
||||
);
|
||||
console.log(
|
||||
`Captured a "DELETE /aop-log/before" request with time: ${beforeTime}`,
|
||||
);
|
||||
return HttpResponse.json(faker.number.int({ min: 5, max: 50 }));
|
||||
return HttpResponse.json(1);
|
||||
}),
|
||||
];
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import client from "@/api/client";
|
||||
import type { components } from "@/api/types/schema";
|
||||
import { useErrorHandling } from "@/composables/common/useErrorHandling";
|
||||
import { usePagination } from "@/composables/common/usePagination";
|
||||
import { useSorting } from "@/composables/common/useSorting";
|
||||
import type { AopLogQueryParams } from "@/types/AlertTypes";
|
||||
|
||||
Reference in New Issue
Block a user