Repository navigation
feat(cliproxy): 增加账号用量并重组管理工作台 - #312
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #312 +/- ##
========================================
Coverage 71.49% 71.49%
========================================
Files 249 250 +1
Lines 14997 15112 +115
Branches 4910 4974 +64
========================================
+ Hits 10722 10805 +83
- Misses 2862 2867 +5
- Partials 1413 1440 +27
🚀 New features to boost your workflow:
|
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.
Summary
auth-files只读获取账号成功/失败请求数、近期请求分桶与可用的配额观测,提供独立可刷新的管理员查询接口。Related Issue
本轮工作无关联 Issue。
Type of Change
Changes
GET /api/admin/cliproxy/instances/:id/auth-accounts/usage;仅投影展示必需字段,不读取会消费记录的用量队列,不写入数据库或认证文件。Test Plan
tsc --noEmit)Checklist
Screenshots
桌面账号工作台:
390px 账号工作台:
320px 账号详情:
Additional Notes
请求计数来自 CLIProxyAPI 进程内数据,进程重启后会归零;配额信息仅为被动观测,不能当作供应商完整剩余额度。未引入数据库迁移。