1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web-backend-go/ synced 2025-03-16 00:00:03 +01:00
VILLASweb-backend-go/doc/api/responses.go
2019-11-09 11:40:56 +01:00

82 lines
1.4 KiB
Go

package docs
import "git.rwth-aachen.de/acs/public/villas/web-backend-go/database"
// 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 database.User
}
type ResponseUsers struct {
users []database.User
}
type ResponseUser struct {
user database.User
}
type ResponseSimulators struct {
simulators []database.Simulator
}
type ResponseSimulator struct {
simulator database.Simulator
}
type ResponseScenarios struct {
scenarios []database.Scenario
}
type ResponseScenario struct {
scenario database.Scenario
}
type ResponseSimulationModels struct {
models []database.SimulationModel
}
type ResponseSimulationModel struct {
model database.SimulationModel
}
type ResponseDashboards struct {
dashboards []database.Dashboard
}
type ResponseDashboard struct {
dashboard database.Dashboard
}
type ResponseWidgets struct {
widgets []database.Widget
}
type ResponseWidget struct {
widget database.Widget
}
type ResponseSignals struct {
signals []database.Signal
}
type ResponseSignal struct {
signal database.Signal
}
type ResponseFiles struct {
files []database.File
}
type ResponseFile struct {
file database.File
}