mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00

- add validators for widgets - revise implementation of widget endpoints - clean up testdata, serializers and response - improve documentation for swaggo
66 lines
1.1 KiB
Go
66 lines
1.1 KiB
Go
package docs
|
|
|
|
import "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/common"
|
|
|
|
// This file defines the responses to any endpoint in the backend
|
|
// The defined structures are only used for documentation purposes with swaggo and are NOT used in the code
|
|
|
|
type ResponseError struct {
|
|
success bool
|
|
message string
|
|
}
|
|
|
|
type ResponseAuthenticate struct {
|
|
success bool
|
|
token string
|
|
message string
|
|
user common.User
|
|
}
|
|
|
|
type ResponseUsers struct {
|
|
users []common.User
|
|
}
|
|
|
|
type ResponseUser struct {
|
|
user common.User
|
|
}
|
|
|
|
type ResponseSimulators struct {
|
|
simulators []common.Simulator
|
|
}
|
|
|
|
type ResponseSimulator struct {
|
|
simulator common.Simulator
|
|
}
|
|
|
|
type ResponseScenarios struct {
|
|
scenarios []common.Scenario
|
|
}
|
|
|
|
type ResponseScenario struct {
|
|
scenario common.Scenario
|
|
}
|
|
|
|
type ResponseSimulationModels struct {
|
|
models []common.SimulationModel
|
|
}
|
|
|
|
type ResponseSimulationModel struct {
|
|
model common.SimulationModel
|
|
}
|
|
|
|
type ResponseDashboards struct {
|
|
dashboards []common.Dashboard
|
|
}
|
|
|
|
type ResponseDashboard struct {
|
|
dashboard common.Dashboard
|
|
}
|
|
|
|
type ResponseWidgets struct {
|
|
widgets []common.Widget
|
|
}
|
|
|
|
type ResponseWidget struct {
|
|
widget common.Widget
|
|
}
|