Mercurial > gemma
diff pkg/imports/modelconvert.go @ 4400:3b36c4d810b0
Added back end for deletion of sounding results.
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Mon, 16 Sep 2019 16:41:56 +0200 |
parents | 024b16a1c253 |
children | 046a07a33b19 |
line wrap: on
line diff
--- a/pkg/imports/modelconvert.go Fri Sep 13 16:16:59 2019 +0200 +++ b/pkg/imports/modelconvert.go Mon Sep 16 16:41:56 2019 +0200 @@ -31,6 +31,7 @@ SECJobKind: func() interface{} { return new(models.SectionImport) }, DSECJobKind: func() interface{} { return new(models.SectionDelete) }, DSTJobKind: func() interface{} { return new(models.StretchDelete) }, + DSRJobKind: func() interface{} { return new(models.SoundingResultDelete) }, } // ImportModelForJobKind returns the constructor function to @@ -173,6 +174,14 @@ dst := input.(*models.StretchDelete) return &DeleteStretch{ID: dst.ID} }, + + DSRJobKind: func(input interface{}) interface{} { + dsr := input.(*models.SoundingResultDelete) + return &DeleteSoundingResult{ + BottleneckId: dsr.BottleneckId, + Date: dsr.Date, + } + }, } func nilString(s *string) string {