add get raw meteo data query
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user