boos
|
1cef28169c
|
feat: 管理员创建用户自动生成密钥 & 用量统计 API
- create_user() 自动生成 sk-user-* 密钥并关联用户
(使用事务确保用户+密钥原子创建)
- 新增 GET /api/admin/users/{id}/usage 返回用量统计
(总请求/成本、7天成本、30天趋势、最近50条日志)
- api.ts 新增 getUserUsage(id) 方法
- mod.rs 导出 stats 模块供 user 路由复用
|
2026-05-19 02:47:15 +08:00 |
|
boos
|
a0d3743564
|
fix: 修复后端 API 路径不匹配
Gemini 创建的路由为 /v1/user/logs 和 /v1/user/summary,
但前端 api.ts 调用的是 /api/user/logs 和 /api/user/summary,
改为 /api/ 前缀修复 404。
|
2026-05-19 02:36:57 +08:00 |
|
boos
|
5890a9b4ac
|
feat: 添加用户端后端 API 路由
- 新增 GET /api/user/logs(用户 API 调用历史)
- 新增 GET /api/user/summary(用户使用统计摘要)
- stats.rs: ProxyLogRow 改为 pub 供 user 模块复用
|
2026-05-19 02:33:08 +08:00 |
|
boos
|
e9595017e9
|
feat: support admin account login
|
2026-05-18 17:01:39 +08:00 |
|
boos
|
f986fe0377
|
feat: complete Rust backend UI compatibility
|
2026-05-18 16:55:09 +08:00 |
|
boos
|
f2434e725d
|
feat: ComfyUI video assistant SaaS plan + shared types cleanup
- Add plan/2026-05-18-comfyui-video-assistant-saas.md (gpt-5.5 generated)
- Add src/server/ and src/shared/ type definitions
- Update comfyui routes and api_key auth
- Remove old metapi docs, deploy/k3s, and deprecated configs
|
2026-05-18 11:28:20 +08:00 |
|
boos
|
3779826a15
|
fix: add /api/users/login route alias for frontend compat; return JSON error for unmatched API routes instead of SPA index.html
|
2026-05-18 10:14:07 +08:00 |
|
boos
|
5d29f03d50
|
refactor: purge Node.js, Rust is the one true backend
- Moved boosapi-rs/* to repo root
- Deleted all Node.js source (src/server/, src/web/, scripts/)
- Deleted node_modules, package.json, tsconfig, vite.config
- Updated .gitignore and AGENTS.md for Rust-only stack
- Fixed static file path for frontend dist/web/
- Dockerfile stays the same (already Rust-only)
- Kept dist/web/ for Rust static serving
|
2026-05-18 09:11:29 +08:00 |
|