Component Config: selected file ID is signed integer instead of uint (no file selected = -1)

This commit is contained in:
Sonja Happ 2020-05-29 12:52:25 +02:00
parent afb311a8b5
commit e6b42ba63c
2 changed files with 2 additions and 2 deletions

View file

@ -93,7 +93,7 @@ type ComponentConfiguration struct {
// Mapping of input signals of the Component Configuration, order of signals is important
InputMapping []Signal `json:"-" gorm:"foreignkey:ConfigID"`
// Currently selected FileID
SelectedFileID uint `json:"selectedFileID" gorm:"default:0"`
SelectedFileID int `json:"selectedFileID" gorm:"default:0"`
}
// Signal data model

View file

@ -45,7 +45,7 @@ type ConfigRequest struct {
ScenarioID uint `json:"scenarioID,omitempty"`
ICID uint `json:"icID,omitempty"`
StartParameters postgres.Jsonb `json:"startParameters,omitempty"`
SelectedFileID uint `json:"selectedFileID,omitempty"`
SelectedFileID int `json:"selectedFileID,omitempty"`
}
type ICRequest struct {