fix: waf page

This commit is contained in:
naiba
2024-11-30 21:31:55 +08:00
parent ef70277ff4
commit c49bbb54e1
9 changed files with 52 additions and 23 deletions
+3 -3
View File
@@ -1,10 +1,10 @@
import { ModelWAF } from "@/types"
import { ModelWAFApiMock } from "@/types"
import { fetcher, FetcherMethod } from "./api"
export const deleteWAF = async (ip: string[]): Promise<void> => {
return fetcher<void>(FetcherMethod.POST, '/api/v1/batch-delete/waf', ip);
}
export const getWAFList = async (): Promise<ModelWAF[]> => {
return fetcher<ModelWAF[]>(FetcherMethod.GET, '/api/v1/waf', null);
export const getWAFList = async (): Promise<ModelWAFApiMock[]> => {
return fetcher<ModelWAFApiMock[]>(FetcherMethod.GET, '/api/v1/waf', null);
}