mirror of
https://github.com/sstent/GarminSync.git
synced 2026-02-06 06:21:51 +00:00
go
This commit is contained in:
19
internal/garmin/activity.go
Normal file
19
internal/garmin/activity.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user