Repository navigation
增加id概览 - #2
Closed
kid141252010 wants to merge 10 commits into
Closed
增加id概览#2kid141252010 wants to merge 10 commits into
kid141252010 wants to merge 10 commits into
Conversation
- 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 提示密钥错误
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.