mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
42 lines
783 B
Go
42 lines
783 B
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
|
|
}
|