mirror of
https://github.com/truewhile/MeBox.git
synced 2026-09-30 11:46:36 +08:00
feat(site): 补全 Site 模型 11 个缺失字段并同步前端类型
- model/site.go: 新增 user_agent/rss_url/timeout/priority/use_proxy/rate_limit/ browser_emulation/login_status/upload_bytes/download_bytes/downloader 11个字段 - 字段对齐 Python 原版 MediaStation Site 模型(28字段 → 23字段) - GORM AutoMigrate 自动补列,旧数据填充默认值(timeout=15, priority=50) - types/index.ts: Site 接口同步所有新字段(带注释) - 后端编译 ✅ 前端构建 ✅ API 验证 ✅
This commit is contained in:
@@ -323,6 +323,24 @@ export interface Site {
|
||||
cookie?: string // decrypted only in detail view
|
||||
api_key?: string // decrypted only in detail view
|
||||
auth_header?: string // decrypted only in detail view
|
||||
|
||||
// 高级设置
|
||||
user_agent?: string // 自定义 User-Agent
|
||||
rss_url?: string // RSS 订阅地址
|
||||
timeout?: number // 请求超时(秒), 默认 15
|
||||
priority?: number // 优先级, 越小越优先, 默认 50
|
||||
use_proxy?: boolean // 是否使用代理
|
||||
rate_limit?: boolean // 是否限制访问频率
|
||||
browser_emulation?: boolean // 浏览器仿真(防爬)
|
||||
|
||||
// 状态与统计
|
||||
login_status?: string // unknown / ok / fail
|
||||
upload_bytes?: number // 上传字节统计
|
||||
download_bytes?: number // 下载字节统计
|
||||
|
||||
// 关联下载器
|
||||
downloader?: string // qbittorrent / transmission / aria2
|
||||
|
||||
enabled: boolean
|
||||
is_default: boolean
|
||||
extra?: string
|
||||
|
||||
Reference in New Issue
Block a user