comparison 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
comparison
equal deleted inserted replaced
2128:bc310a0b5bae 2129:8f6345ad5f13
2 // without warranty, see README.md and license for details. 2 // without warranty, see README.md and license for details.
3 // 3 //
4 // SPDX-License-Identifier: AGPL-3.0-or-later 4 // SPDX-License-Identifier: AGPL-3.0-or-later
5 // License-Filename: LICENSES/AGPL-3.0.txt 5 // License-Filename: LICENSES/AGPL-3.0.txt
6 // 6 //
7 // Copyright (C) 2018 by via donau 7 // Copyright (C) 2018, 2019 by via donau
8 // – Österreichische Wasserstraßen-Gesellschaft mbH 8 // – Österreichische Wasserstraßen-Gesellschaft mbH
9 // Software engineering by Intevation GmbH 9 // Software engineering by Intevation GmbH
10 // 10 //
11 // Author(s): 11 // Author(s):
12 // * Sascha Wilde <sascha.wilde@intevation.de> 12 // * Sascha Wilde <sascha.wilde@intevation.de>
13 13
14 package models 14 package models
15 15
16 type ( 16 type (
17 Survey struct { 17 Survey struct {
18 BottleneckID string `json:"bottleneck_id"` 18 BottleneckID string `json:"bottleneck_id"`
19 DateInfo string `json:"date_info"` 19 DateInfo string `json:"date_info"`
20 ReferenceGauge string `json:"gauge_objname"`
20 } 21 }
21 ) 22 )