Hide capability tags from UI

This commit is contained in:
fawney19
2026-05-19 19:10:30 +08:00
parent 124077a0a1
commit 57655bdb25
7 changed files with 215 additions and 198 deletions

View File

@@ -9,6 +9,17 @@ export interface IPBlacklistEntry {
ttl?: number
}
export interface BlacklistListEntry {
ip_address: string
reason: string
ttl_seconds?: number | null
}
export interface BlacklistResponse {
items: BlacklistListEntry[]
total: number
}
export interface IPWhitelistEntry {
ip_address: string
}
@@ -50,6 +61,14 @@ export const blacklistApi = {
async getStats(): Promise<BlacklistStats> {
const response = await apiClient.get('/api/admin/security/ip/blacklist/stats')
return response.data
},
/**
* 获取黑名单列表
*/
async getList(): Promise<BlacklistResponse> {
const response = await apiClient.get('/api/admin/security/ip/blacklist')
return response.data
}
}