Mercurial > gemma
diff pkg/models/surveys.go @ 2129:8f6345ad5f13
Extend /surveys/ endpoint to include reference gauge
* Add a subselection to the sql query in models/surveys.go which similiar
to the `bottleneck_geoserver` view assumes that the reference gauge
is the same for each survey result.
* Maintain rights infos.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Wed, 06 Feb 2019 15:44:55 +0100 |
parents | 447db2bce052 |
children | 7267f8168176 |
line wrap: on
line diff
--- a/pkg/models/surveys.go Wed Feb 06 15:35:30 2019 +0100 +++ b/pkg/models/surveys.go Wed Feb 06 15:44:55 2019 +0100 @@ -4,7 +4,7 @@ // SPDX-License-Identifier: AGPL-3.0-or-later // License-Filename: LICENSES/AGPL-3.0.txt // -// Copyright (C) 2018 by via donau +// Copyright (C) 2018, 2019 by via donau // – Österreichische Wasserstraßen-Gesellschaft mbH // Software engineering by Intevation GmbH // @@ -15,7 +15,8 @@ type ( Survey struct { - BottleneckID string `json:"bottleneck_id"` - DateInfo string `json:"date_info"` + BottleneckID string `json:"bottleneck_id"` + DateInfo string `json:"date_info"` + ReferenceGauge string `json:"gauge_objname"` } )