add get raw meteo data query

This commit is contained in:
2025-10-28 22:37:31 +01:00
parent b3ab98f9a2
commit e0024cc257
2 changed files with 60 additions and 15 deletions
@@ -33,6 +33,7 @@ type GetMeteoData struct {
To string
Page int
Limit int
Offset int
}
func (mt *GetMeteoData) Validate() error {
@@ -56,6 +57,8 @@ func (mt *GetMeteoData) Validate() error {
return ErrMissingOrInvalidToDate
}
mt.Offset = (mt.Page - 1) * mt.Limit
return nil
}