add get cities handler and improve db schema

This commit is contained in:
2025-10-29 16:14:25 +01:00
parent 5560fad92e
commit a5a2c5e24d
4 changed files with 39 additions and 4 deletions
@@ -49,6 +49,10 @@ func (s *Service) UpdateElapsedMS(ctx context.Context, batchID, elapsedMS int) e
return nil
}
func (s *Service) GetCities(ctx context.Context) []string {
return s.repo.GetCities(ctx)
}
func (s *Service) GetMeteoData(ctx context.Context, params GetMeteoData) ([]MeteoData, error) {
return s.repo.GetMeteoData(ctx, params)
}