Mercurial > gemma
comparison pkg/models/imports.go @ 4189:2ac52d89619e
Exposed the import to delete sections under POST /api/imports/dsec with a JSON input as '{ "id": 42 }'.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 07 Aug 2019 15:23:41 +0200 |
parents | c8ded555c2a8 |
children | 024b16a1c253 |
comparison
equal
deleted
inserted
replaced
4188:f8b7db7e392a | 4189:2ac52d89619e |
---|---|
118 ObjNam string `json:"objnam"` | 118 ObjNam string `json:"objnam"` |
119 NObjNam *string `json:"nobjnam"` | 119 NObjNam *string `json:"nobjnam"` |
120 Source string `json:"source-organization"` | 120 Source string `json:"source-organization"` |
121 Date Date `json:"date-info"` | 121 Date Date `json:"date-info"` |
122 } | 122 } |
123 | |
124 SectionDelete struct { | |
125 ID int64 `json:"id"` | |
126 } | |
123 ) | 127 ) |
124 | 128 |
125 func (cui *ConfigurableURLImport) MarshalAttributes(attrs common.Attributes) error { | 129 func (cui *ConfigurableURLImport) MarshalAttributes(attrs common.Attributes) error { |
126 if err := cui.URLType.MarshalAttributes(attrs); err != nil { | 130 if err := cui.URLType.MarshalAttributes(attrs); err != nil { |
127 return err | 131 return err |