This commit is contained in:
2025-08-07 18:52:21 -07:00
parent f41316c8cf
commit 3dc3ec5c5c
15 changed files with 826 additions and 295 deletions

View File

@@ -0,0 +1,19 @@
package garmin
import "time"
// Activity represents a Garmin Connect activity
type Activity struct {
ActivityId int `db:"activity_id"`
StartTime time.Time `db:"start_time"`
Filename string `db:"filename"`
Downloaded bool `db:"downloaded"`
}
// ActivityRepository provides methods for activity persistence
type ActivityRepository interface {
GetAll() ([]Activity, error)
GetMissing() ([]Activity, error)
GetDownloaded() ([]Activity, error)
MarkDownloaded(activityId int, filename string) error
}