Mercurial > gemma
diff pkg/models/surveys.go @ 5601:1222b777f51f
Made golint finally happy.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sat, 06 Aug 2022 02:09:57 +0200 |
parents | 5e7fca6ef935 |
children |
line wrap: on
line diff
--- a/pkg/models/surveys.go Sat Aug 06 00:46:21 2022 +0200 +++ b/pkg/models/surveys.go Sat Aug 06 02:09:57 2022 +0200 @@ -13,13 +13,12 @@ package models -type ( - Survey struct { - BottleneckID string `json:"bottleneck_id"` - DateInfo string `json:"date_info"` - DepthReference string `json:"depth_reference"` - ReferenceGauge string `json:"gauge_objname"` - SurveyType SurveyType `json:"survey_type"` - WaterLevelValue *int64 `json:"waterlevel_value,omitempty"` - } -) +// Survey contains the relevant data about a survey. +type Survey struct { + BottleneckID string `json:"bottleneck_id"` + DateInfo string `json:"date_info"` + DepthReference string `json:"depth_reference"` + ReferenceGauge string `json:"gauge_objname"` + SurveyType SurveyType `json:"survey_type"` + WaterLevelValue *int64 `json:"waterlevel_value,omitempty"` +}