comparison pkg/models/import.go @ 2662:f90557a8c960 import-overview-rework

Moved summary from /api/imports overview to /api/imports/{id} details.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 14 Mar 2019 11:31:22 +0100
parents 20d9b71f4125
children 386ff766dfcd
comparison
equal deleted inserted replaced
2640:4bcb26542767 2662:f90557a8c960
21 21
22 type ( 22 type (
23 ImportTime struct{ time.Time } 23 ImportTime struct{ time.Time }
24 24
25 Import struct { 25 Import struct {
26 ID int64 `json:"id"` 26 ID int64 `json:"id"`
27 State string `json:"state"` 27 State string `json:"state"`
28 Enqueued ImportTime `json:"enqueued"` 28 Enqueued ImportTime `json:"enqueued"`
29 Kind string `json:"kind"` 29 Kind string `json:"kind"`
30 User string `json:"user"` 30 User string `json:"user"`
31 Signer string `json:"signer,omitempty"` 31 Signer string `json:"signer,omitempty"`
32 Summary interface{} `json:"summary,omitempty"` 32 Summary bool `json:"summary,omitempty"`
33 Warnings bool `json:"warnings,omitempty"` 33 Warnings bool `json:"warnings,omitempty"`
34 } 34 }
35 35
36 ImportLogEntry struct { 36 ImportLogEntry struct {
37 Time ImportTime `json:"time"` 37 Time ImportTime `json:"time"`
38 Kind string `json:"kind"` 38 Kind string `json:"kind"`