feat: 添加用户记账连击(streak)功能,包括服务、处理器、模型和仓库层。
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user