Mercurial > gemma
diff 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 |
line wrap: on
line diff
--- a/pkg/imports/modelconvert.go Mon Feb 17 15:14:24 2020 +0100 +++ b/pkg/imports/modelconvert.go Mon Feb 17 18:38:45 2020 +0100 @@ -30,6 +30,13 @@ BCNLATJobKind: func() interface{} { return new(models.FairwayMarksImport) }, BOYCARJobKind: func() interface{} { return new(models.FairwayMarksImport) }, BOYLATJobKind: func() interface{} { return new(models.FairwayMarksImport) }, + BOYSAWJobKind: func() interface{} { return new(models.FairwayMarksImport) }, + BOYSPPJobKind: func() interface{} { return new(models.FairwayMarksImport) }, + DAYMARJobKind: func() interface{} { return new(models.FairwayMarksImport) }, + LIGHTSJobKind: func() interface{} { return new(models.FairwayMarksImport) }, + RTPBCNJobKind: func() interface{} { return new(models.FairwayMarksImport) }, + TOPMARJobKind: func() interface{} { return new(models.FairwayMarksImport) }, + NOTMRKJobKind: func() interface{} { return new(models.FairwayMarksImport) }, STJobKind: func() interface{} { return new(models.StretchImport) }, SECJobKind: func() interface{} { return new(models.SectionImport) }, DSECJobKind: func() interface{} { return new(models.SectionDelete) }, @@ -172,6 +179,83 @@ } }, + BOYSAWJobKind: func(input interface{}) interface{} { + fmi := input.(*models.FairwayMarksImport) + return &FairwayMarks{ + URL: fmi.URL, + FeatureType: fmi.FeatureType, + SortBy: nilString(fmi.SortBy), + User: nilString(fmi.User), + Password: nilString(fmi.Password), + } + }, + + BOYSPPJobKind: func(input interface{}) interface{} { + fmi := input.(*models.FairwayMarksImport) + return &FairwayMarks{ + URL: fmi.URL, + FeatureType: fmi.FeatureType, + SortBy: nilString(fmi.SortBy), + User: nilString(fmi.User), + Password: nilString(fmi.Password), + } + }, + + DAYMARJobKind: func(input interface{}) interface{} { + fmi := input.(*models.FairwayMarksImport) + return &FairwayMarks{ + URL: fmi.URL, + FeatureType: fmi.FeatureType, + SortBy: nilString(fmi.SortBy), + User: nilString(fmi.User), + Password: nilString(fmi.Password), + } + }, + + LIGHTSJobKind: func(input interface{}) interface{} { + fmi := input.(*models.FairwayMarksImport) + return &FairwayMarks{ + URL: fmi.URL, + FeatureType: fmi.FeatureType, + SortBy: nilString(fmi.SortBy), + User: nilString(fmi.User), + Password: nilString(fmi.Password), + } + }, + + RTPBCNJobKind: func(input interface{}) interface{} { + fmi := input.(*models.FairwayMarksImport) + return &FairwayMarks{ + URL: fmi.URL, + FeatureType: fmi.FeatureType, + SortBy: nilString(fmi.SortBy), + User: nilString(fmi.User), + Password: nilString(fmi.Password), + } + }, + + TOPMARJobKind: func(input interface{}) interface{} { + fmi := input.(*models.FairwayMarksImport) + return &FairwayMarks{ + URL: fmi.URL, + FeatureType: fmi.FeatureType, + SortBy: nilString(fmi.SortBy), + User: nilString(fmi.User), + Password: nilString(fmi.Password), + } + }, + + NOTMRKJobKind: func(input interface{}) interface{} { + fmi := input.(*models.FairwayMarksImport) + return &FairwayMarks{ + URL: fmi.URL, + FeatureType: fmi.FeatureType, + SortBy: nilString(fmi.SortBy), + User: nilString(fmi.User), + Password: nilString(fmi.Password), + } + }, + STJobKind: func(input interface{}) interface{} { sti := input.(*models.StretchImport) return &Stretch{