Files
api-worker/helloagents/modules/usage.md
T
2026-02-15 02:12:01 +08:00

19 lines
368 B
Markdown

# usage 模块
## 职责
- 记录代理调用日志
- 提供日志查询与筛选
- 执行日志保留策略
## 接口定义
- `GET /api/usage` 使用日志查询
## 行为规范
- 代理调用统一写入 `usage_logs`
- 保留天数可配置,查询时触发清理
- 查询结果附带渠道与令牌名称
## 依赖关系
- `usage_logs` 表
- `settings` 模块