mirror of
https://github.com/sstent/go-garth-cli.git
synced 2025-12-06 08:02:01 +00:00
21 lines
414 B
Go
21 lines
414 B
Go
package stats
|
|
|
|
import "time"
|
|
|
|
const BASE_HYDRATION_PATH = "/usersummary-service/stats/hydration"
|
|
|
|
type DailyHydration struct {
|
|
CalendarDate time.Time `json:"calendar_date"`
|
|
TotalWaterML *int `json:"total_water_ml"`
|
|
BaseStats
|
|
}
|
|
|
|
func NewDailyHydration() *DailyHydration {
|
|
return &DailyHydration{
|
|
BaseStats: BaseStats{
|
|
Path: BASE_HYDRATION_PATH + "/daily/{start}/{end}",
|
|
PageSize: 28,
|
|
},
|
|
}
|
|
}
|