-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi_types.gen.go
53 lines (43 loc) · 1.75 KB
/
openapi_types.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Package trainings provides primitives to interact with the openapi HTTP API.
//
// Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.
package trainings
import (
"time"
openapi_types "github.com/deepmap/oapi-codegen/pkg/types"
)
const (
BearerAuthScopes = "bearerAuth.Scopes"
)
// Error defines model for Error.
type Error struct {
Message string `json:"message"`
Slug string `json:"slug"`
}
// PostTraining defines model for PostTraining.
type PostTraining struct {
Notes string `json:"notes"`
Time time.Time `json:"time"`
}
// Training defines model for Training.
type Training struct {
CanBeCancelled bool `json:"canBeCancelled"`
MoveProposedBy *string `json:"moveProposedBy,omitempty"`
MoveRequiresAccept bool `json:"moveRequiresAccept"`
Notes string `json:"notes"`
ProposedTime *time.Time `json:"proposedTime,omitempty"`
Time time.Time `json:"time"`
User string `json:"user"`
UserUuid openapi_types.UUID `json:"userUuid"`
Uuid openapi_types.UUID `json:"uuid"`
}
// Trainings defines model for Trainings.
type Trainings struct {
Trainings []Training `json:"trainings"`
}
// CreateTrainingJSONRequestBody defines body for CreateTraining for application/json ContentType.
type CreateTrainingJSONRequestBody = PostTraining
// RequestRescheduleTrainingJSONRequestBody defines body for RequestRescheduleTraining for application/json ContentType.
type RequestRescheduleTrainingJSONRequestBody = PostTraining
// RescheduleTrainingJSONRequestBody defines body for RescheduleTraining for application/json ContentType.
type RescheduleTrainingJSONRequestBody = PostTraining