This commit is contained in:
jxxghp
2025-05-29 20:12:14 +08:00
parent 2f9b27ad9e
commit 61963ea497
7 changed files with 2 additions and 1531 deletions

View File

@@ -1351,109 +1351,3 @@ export interface TorrentCacheData {
// 缓存数据
data: TorrentCacheItem[]
}
// 种子缓存响应
export interface TorrentCacheResponse {
// Spider缓存
spider: TorrentCacheData
// RSS缓存
rss: TorrentCacheData
}
// 站点缓存统计
export interface SiteCacheStats {
// 站点域名
domain: string
// 缓存数量
count: number
// 最新发布时间
latest_date: string
}
// 缓存配置
export interface CacheConfig {
// 缓存限制数量
cache_limit: number
// 刷新限制数量
refresh_limit: number
// 当前模式
current_mode: string
}
// 缓存统计数据
export interface CacheStatsData {
// 总数量
total_count: number
// 站点数量
sites_count: number
// 站点统计
sites: SiteCacheStats[]
}
// 种子缓存统计响应
export interface TorrentCacheStatsResponse {
// 配置信息
config: CacheConfig
// Spider统计
spider: CacheStatsData
// RSS统计
rss: CacheStatsData
}
// 图片缓存统计
export interface ImageCacheStats {
// 总文件数
total_files: number
// 总大小(字节)
total_size: number
// 是否启用缓存
cache_enabled: boolean
// 缓存路径
cache_path?: string
}
// 图片缓存统计响应
export interface ImageCacheStatsResponse {
success: boolean
data: ImageCacheStats
message?: string
}
// 图片缓存项
export interface ImageCacheItem {
// 相对路径
path: string
// 文件名
name: string
// 文件大小
size: number
// 修改时间
modified_time: string
// 分类
category: string
// 访问URL
url: string
}
// 图片缓存详细数据
export interface ImageCacheData {
// 总数量
total: number
// 当前页
page: number
// 每页大小
size: number
// 总页数
pages: number
// 图片列表
items: ImageCacheItem[]
// 分类统计
categories: Record<string, number>
}
// 图片缓存详细数据响应
export interface ImageCacheDataResponse {
success: boolean
data: ImageCacheData
message?: string
}