Mercurial > gemma
comparison pkg/imports/modelconvert.go @ 4940:b3b2ba09a450 fairway-marks-import
Add missing fairway mark types
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 17 Feb 2020 18:38:45 +0100 |
parents | 9bd6a0ca63ea |
children | b0dbc0f2c748 |
comparison
equal
deleted
inserted
replaced
4939:39b67b910204 | 4940:b3b2ba09a450 |
---|---|
28 FDJobKind: func() interface{} { return new(models.FairwayDimensionImport) }, | 28 FDJobKind: func() interface{} { return new(models.FairwayDimensionImport) }, |
29 DMAJobKind: func() interface{} { return new(models.DistanceMarksAshoreImport) }, | 29 DMAJobKind: func() interface{} { return new(models.DistanceMarksAshoreImport) }, |
30 BCNLATJobKind: func() interface{} { return new(models.FairwayMarksImport) }, | 30 BCNLATJobKind: func() interface{} { return new(models.FairwayMarksImport) }, |
31 BOYCARJobKind: func() interface{} { return new(models.FairwayMarksImport) }, | 31 BOYCARJobKind: func() interface{} { return new(models.FairwayMarksImport) }, |
32 BOYLATJobKind: func() interface{} { return new(models.FairwayMarksImport) }, | 32 BOYLATJobKind: func() interface{} { return new(models.FairwayMarksImport) }, |
33 BOYSAWJobKind: func() interface{} { return new(models.FairwayMarksImport) }, | |
34 BOYSPPJobKind: func() interface{} { return new(models.FairwayMarksImport) }, | |
35 DAYMARJobKind: func() interface{} { return new(models.FairwayMarksImport) }, | |
36 LIGHTSJobKind: func() interface{} { return new(models.FairwayMarksImport) }, | |
37 RTPBCNJobKind: func() interface{} { return new(models.FairwayMarksImport) }, | |
38 TOPMARJobKind: func() interface{} { return new(models.FairwayMarksImport) }, | |
39 NOTMRKJobKind: func() interface{} { return new(models.FairwayMarksImport) }, | |
33 STJobKind: func() interface{} { return new(models.StretchImport) }, | 40 STJobKind: func() interface{} { return new(models.StretchImport) }, |
34 SECJobKind: func() interface{} { return new(models.SectionImport) }, | 41 SECJobKind: func() interface{} { return new(models.SectionImport) }, |
35 DSECJobKind: func() interface{} { return new(models.SectionDelete) }, | 42 DSECJobKind: func() interface{} { return new(models.SectionDelete) }, |
36 DSTJobKind: func() interface{} { return new(models.StretchDelete) }, | 43 DSTJobKind: func() interface{} { return new(models.StretchDelete) }, |
37 DSRJobKind: func() interface{} { return new(models.SoundingResultDelete) }, | 44 DSRJobKind: func() interface{} { return new(models.SoundingResultDelete) }, |
170 User: nilString(fmi.User), | 177 User: nilString(fmi.User), |
171 Password: nilString(fmi.Password), | 178 Password: nilString(fmi.Password), |
172 } | 179 } |
173 }, | 180 }, |
174 | 181 |
182 BOYSAWJobKind: func(input interface{}) interface{} { | |
183 fmi := input.(*models.FairwayMarksImport) | |
184 return &FairwayMarks{ | |
185 URL: fmi.URL, | |
186 FeatureType: fmi.FeatureType, | |
187 SortBy: nilString(fmi.SortBy), | |
188 User: nilString(fmi.User), | |
189 Password: nilString(fmi.Password), | |
190 } | |
191 }, | |
192 | |
193 BOYSPPJobKind: func(input interface{}) interface{} { | |
194 fmi := input.(*models.FairwayMarksImport) | |
195 return &FairwayMarks{ | |
196 URL: fmi.URL, | |
197 FeatureType: fmi.FeatureType, | |
198 SortBy: nilString(fmi.SortBy), | |
199 User: nilString(fmi.User), | |
200 Password: nilString(fmi.Password), | |
201 } | |
202 }, | |
203 | |
204 DAYMARJobKind: func(input interface{}) interface{} { | |
205 fmi := input.(*models.FairwayMarksImport) | |
206 return &FairwayMarks{ | |
207 URL: fmi.URL, | |
208 FeatureType: fmi.FeatureType, | |
209 SortBy: nilString(fmi.SortBy), | |
210 User: nilString(fmi.User), | |
211 Password: nilString(fmi.Password), | |
212 } | |
213 }, | |
214 | |
215 LIGHTSJobKind: func(input interface{}) interface{} { | |
216 fmi := input.(*models.FairwayMarksImport) | |
217 return &FairwayMarks{ | |
218 URL: fmi.URL, | |
219 FeatureType: fmi.FeatureType, | |
220 SortBy: nilString(fmi.SortBy), | |
221 User: nilString(fmi.User), | |
222 Password: nilString(fmi.Password), | |
223 } | |
224 }, | |
225 | |
226 RTPBCNJobKind: func(input interface{}) interface{} { | |
227 fmi := input.(*models.FairwayMarksImport) | |
228 return &FairwayMarks{ | |
229 URL: fmi.URL, | |
230 FeatureType: fmi.FeatureType, | |
231 SortBy: nilString(fmi.SortBy), | |
232 User: nilString(fmi.User), | |
233 Password: nilString(fmi.Password), | |
234 } | |
235 }, | |
236 | |
237 TOPMARJobKind: func(input interface{}) interface{} { | |
238 fmi := input.(*models.FairwayMarksImport) | |
239 return &FairwayMarks{ | |
240 URL: fmi.URL, | |
241 FeatureType: fmi.FeatureType, | |
242 SortBy: nilString(fmi.SortBy), | |
243 User: nilString(fmi.User), | |
244 Password: nilString(fmi.Password), | |
245 } | |
246 }, | |
247 | |
248 NOTMRKJobKind: func(input interface{}) interface{} { | |
249 fmi := input.(*models.FairwayMarksImport) | |
250 return &FairwayMarks{ | |
251 URL: fmi.URL, | |
252 FeatureType: fmi.FeatureType, | |
253 SortBy: nilString(fmi.SortBy), | |
254 User: nilString(fmi.User), | |
255 Password: nilString(fmi.Password), | |
256 } | |
257 }, | |
258 | |
175 STJobKind: func(input interface{}) interface{} { | 259 STJobKind: func(input interface{}) interface{} { |
176 sti := input.(*models.StretchImport) | 260 sti := input.(*models.StretchImport) |
177 return &Stretch{ | 261 return &Stretch{ |
178 Name: sti.Name, | 262 Name: sti.Name, |
179 From: sti.From, | 263 From: sti.From, |