feat: 添加用户记账连击(streak)功能,包括服务、处理器、模型和仓库层。

This commit is contained in:
2026-01-28 10:32:05 +08:00
parent e811256d99
commit 0d21b9444e
4 changed files with 81 additions and 0 deletions

View File

@@ -29,3 +29,9 @@ type StreakInfo struct {
HasRecordToday bool `json:"has_record_today"` // 今天是否已记账
Message string `json:"message"` // 提示信息
}
// DailyContribution represents transaction count for a specific date
type DailyContribution struct {
Date string `json:"date"`
Count int `json:"count"`
}