mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-09-19 09:40:13 +00:00
fix: waf page
This commit is contained in:
+3
-3
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user