mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 17:30:23 +08:00
Hide capability tags from UI
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user