feat(usage): 错误请求对齐用量明细(UI/排序/筛选/列设置)

错误请求列表(/admin/usage 错误 tab、Ops 弹窗、用户端 /usage 错误 tab)
对齐用量明细的交互与信息密度。Squash of:

- feat(usage): 错误请求全面对齐用量明细(UI/列序/排序/筛选/列设置/新列)
- refactor(usage): 错误表提取共享徽章工具与 IP 批量工具条,后端排序解析归并 SetSort
- feat(usage): /admin/usage 错误请求新增分类过滤
- fix(ops): 错误列表 phase=upstream 过滤生效,守卫豁免改为显式 opt-in
- fix(ops): 错误列表用户列回退显示已删除 KEY 所有者
- fix(usage): 错误请求状态码排序对齐展示/过滤,筛选项改固定常用码
This commit is contained in:
DaydreamCoding
2026-07-03 23:02:27 +08:00
parent 2649573b99
commit ebbdc70311
25 changed files with 1108 additions and 459 deletions
+8
View File
@@ -1688,6 +1688,11 @@ export interface UserErrorRequest {
message: string
key_name: string
key_deleted: boolean
client_ip?: string
group_name?: string
request_type?: number
stream?: boolean
user_agent?: string
}
export interface UserErrorRequestDetail extends UserErrorRequest {
@@ -1705,6 +1710,9 @@ export interface UserErrorListParams {
status_code?: number
category?: string
api_key_id?: number
// 服务端排序,列白名单见后端 opsErrorLogsOrderBy(created_at/model/status_code)
sort_by?: string
sort_order?: 'asc' | 'desc'
}
export interface UsageQueryParams {