Skip to content

增加id概览 - #2

Closed
kid141252010 wants to merge 10 commits into
amll-dev:mainfrom
kid141252010:feat/webui
Closed

kid141252010 wants to merge 10 commits into
amll-dev:mainfrom
kid141252010:feat/webui

Conversation

@kid141252010

Copy link
Copy Markdown

No description provided.

橹穆 and others added 10 commits October 11, 2026 03:26
- lyrics 表加 source 列(public/private,老数据回填 public),唯一索引 (source, filename)
- LyricId::from_private_filename:哈希输入加 private: 前缀,与公库永不撞 ID
- SongEntry 加 source 字段(LyricSource,rank 用于读路径排序)
- 同步器 upsert 预过滤私库文件名,公库同步永远覆盖不了私库行
- ADMIN_SECRET Bearer 鉴权(常量时间比较),所有响应 no-store
- multipart 上传:filename + file 字段,.ttml 后缀与路径穿越校验
- 用同步器同一套 TTML 解析入口,source='private' upsert,同名重传整行更新
- 写后重建内存索引 + 清缓存,上传后立即可查
- 新增 source=private|public|all 参数(默认 all,all 时私库排前面)
- 游标分页要求显式 source(source=all 会打乱游标的 timestamp 二分,改报 400)
- 公库条目返回 "source":"public",私库条目 "source":"private"
- lrclib 兼容 DTO 不动(外部协议冻结)
- wire_format 快照重生成(仅新增字段,无其它变更)
- 文档:CLAUDE.md / deployment.md 补上传接口与游标分页规则说明
feat(api): SongItem 响应新增 source 字段
- rust-embed + mime_guess:web/(index.html、admin.html、app.js、style.css)编译进二进制
- 新增 src/webui.rs:serve_index / serve_admin / serve_asset(404 走 AppError::NotFound)
- 路由挂在 fallback 之前,不影响 /v1 与 /api/v1 现有 API
- 搜索页:q/musicName/artistName/albumName/lyricText + source 过滤,卡片展示 + TTML 展开/下载,pageSize=20 分页
- 管理页:ADMIN_SECRET 只存 sessionStorage,multipart 上传到 /api/v1/admin/lyrics,401 提示密钥错误
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant