Skip to content

feat: 添加任务 token 用量统计数据层#460

Merged
yokowu merged 1 commit intomainfrom
feat/token-usage-stats
Apr 7, 2026
Merged

feat: 添加任务 token 用量统计数据层#460
yokowu merged 1 commit intomainfrom
feat/token-usage-stats

Conversation

@yokowu
Copy link
Copy Markdown
Collaborator

@yokowu yokowu commented Apr 7, 2026

Summary

  • 新增 task_usage_stats 表的 Ent Schema 和数据库迁移(000007)
  • 实现 TaskRepo.Stat()StatByIDs() 方法的真实数据库聚合查询,替换原有空实现
  • 前端和 usecase 层已有对接代码,无需额外修改

🤖 Generated with Claude Code

新增 task_usage_stats 表及对应的 Ent Schema,实现 Stat/StatByIDs
repo 方法的真实数据库查询,替换原有的空实现。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@yokowu yokowu merged commit 3fb23b9 into main Apr 7, 2026
@yokowu yokowu deleted the feat/token-usage-stats branch April 7, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant