mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
Component Config: selected file ID is signed integer instead of uint (no file selected = -1)
This commit is contained in:
parent
afb311a8b5
commit
e6b42ba63c
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue