-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.gen.go
200 lines (165 loc) · 7.42 KB
/
models.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
// Package backend provides primitives to interact with the openapi HTTP API.
//
// Code generated by github.com/deepmap/oapi-codegen version v1.11.0 DO NOT EDIT.
package backend
import (
openapi_types "github.com/deepmap/oapi-codegen/pkg/types"
)
const (
BearerScopes = "Bearer.Scopes"
)
// CreateEventBody defines model for CreateEventBody.
type CreateEventBody struct {
Completed *bool `json:"completed,omitempty"`
Datetimes *[]CreateEventDatetime `json:"datetimes,omitempty"`
Description *string `json:"description,omitempty"`
Location *string `json:"location,omitempty"`
Name string `json:"name"`
Published *bool `json:"published,omitempty"`
}
// CreateEventDatetime defines model for CreateEventDatetime.
type CreateEventDatetime struct {
End string `json:"end"`
Start string `json:"start"`
}
// CreateEventDocumentBody defines model for CreateEventDocumentBody.
type CreateEventDocumentBody struct {
Name string `json:"name"`
Url string `json:"url"`
}
// CreateUserBody defines model for CreateUserBody.
type CreateUserBody struct {
Email openapi_types.Email `json:"email"`
GithubUsername *string `json:"github_username,omitempty"`
Name string `json:"name"`
Password string `json:"password"`
TwitterId *string `json:"twitter_id,omitempty"`
}
// Event defines model for Event.
type Event struct {
Completed bool `json:"completed"`
Datetimes []EventDatetime `json:"datetimes"`
Description *string `json:"description,omitempty"`
Documents *[]EventDocument `json:"documents,omitempty"`
Id string `json:"id"`
Location *string `json:"location,omitempty"`
Name string `json:"name"`
Published bool `json:"published"`
User *User `json:"user,omitempty"`
}
// EventDatetime defines model for EventDatetime.
type EventDatetime struct {
End string `json:"end"`
Start string `json:"start"`
}
// EventDocument defines model for EventDocument.
type EventDocument struct {
Id string `json:"id"`
Name string `json:"name"`
Url string `json:"url"`
}
// LoginBody defines model for LoginBody.
type LoginBody struct {
Email openapi_types.Email `json:"email"`
Password string `json:"password"`
}
// Token defines model for Token.
type Token struct {
Token string `json:"token"`
}
// UpdateEventBody defines model for UpdateEventBody.
type UpdateEventBody struct {
Completed *bool `json:"completed,omitempty"`
Datetimes *[]CreateEventDatetime `json:"datetimes,omitempty"`
Description *string `json:"description,omitempty"`
Location *string `json:"location,omitempty"`
Name *string `json:"name,omitempty"`
Published *bool `json:"published,omitempty"`
}
// UpdateEventDocumentBody defines model for UpdateEventDocumentBody.
type UpdateEventDocumentBody struct {
Name *string `json:"name,omitempty"`
Url *string `json:"url,omitempty"`
}
// UpdateUserBody defines model for UpdateUserBody.
type UpdateUserBody struct {
Email *string `json:"email,omitempty"`
GithubUsername *string `json:"github_username,omitempty"`
Manage *bool `json:"manage,omitempty"`
Name *string `json:"name,omitempty"`
Password *string `json:"password,omitempty"`
PostEventAvailabled *bool `json:"post_event_availabled,omitempty"`
TwitterId *string `json:"twitter_id,omitempty"`
}
// User defines model for User.
type User struct {
Admin bool `json:"admin"`
Email openapi_types.Email `json:"email"`
GithubUsername *string `json:"github_username,omitempty"`
Id string `json:"id"`
Manage bool `json:"manage"`
Name string `json:"name"`
PostEventAvailabled bool `json:"post_event_availabled"`
StarCount *uint64 `json:"star_count,omitempty"`
TwitterId *string `json:"twitter_id,omitempty"`
}
// UserWithToken defines model for UserWithToken.
type UserWithToken struct {
Admin bool `json:"admin"`
Email openapi_types.Email `json:"email"`
GithubUsername *string `json:"github_username,omitempty"`
Id string `json:"id"`
Name string `json:"name"`
PostEventAvailabled bool `json:"post_event_availabled"`
Token string `json:"token"`
TwitterId *string `json:"twitter_id,omitempty"`
}
// DocumentId defines model for document_id.
type DocumentId = string
// Embed defines model for embed.
type Embed = []string
// Id defines model for id.
type Id = string
// Location defines model for location.
type Location = string
// LocationContain defines model for location_contain.
type LocationContain = string
// Name defines model for name.
type Name = string
// NameContain defines model for name_contain.
type NameContain = string
// GetEventsParams defines parameters for GetEvents.
type GetEventsParams struct {
Name *Name `form:"name,omitempty" json:"name,omitempty"`
NameContain *NameContain `form:"name_contain,omitempty" json:"name_contain,omitempty"`
Location *Location `form:"location,omitempty" json:"location,omitempty"`
LocationContain *LocationContain `form:"location_contain,omitempty" json:"location_contain,omitempty"`
Embed *Embed `form:"embed,omitempty" json:"embed,omitempty"`
}
// GetEventsParamsEmbed defines parameters for GetEvents.
type GetEventsParamsEmbed string
// GetEventsIdParams defines parameters for GetEventsId.
type GetEventsIdParams struct {
Embed *Embed `form:"embed,omitempty" json:"embed,omitempty"`
}
// GetEventsIdParamsEmbed defines parameters for GetEventsId.
type GetEventsIdParamsEmbed string
// GetEventsIdDocumentsParams defines parameters for GetEventsIdDocuments.
type GetEventsIdDocumentsParams struct {
Name *Name `form:"name,omitempty" json:"name,omitempty"`
NameContain *NameContain `form:"name_contain,omitempty" json:"name_contain,omitempty"`
}
// PostEventsJSONRequestBody defines body for PostEvents for application/json ContentType.
type PostEventsJSONRequestBody = CreateEventBody
// PatchEventsIdJSONRequestBody defines body for PatchEventsId for application/json ContentType.
type PatchEventsIdJSONRequestBody = UpdateEventBody
// PostEventsIdDocumentsJSONRequestBody defines body for PostEventsIdDocuments for application/json ContentType.
type PostEventsIdDocumentsJSONRequestBody = CreateEventDocumentBody
// PatchEventsIdDocumentsDocumentIdJSONRequestBody defines body for PatchEventsIdDocumentsDocumentId for application/json ContentType.
type PatchEventsIdDocumentsDocumentIdJSONRequestBody = UpdateEventDocumentBody
// PostUsersJSONRequestBody defines body for PostUsers for application/json ContentType.
type PostUsersJSONRequestBody = CreateUserBody
// PostUsersSignInJSONRequestBody defines body for PostUsersSignIn for application/json ContentType.
type PostUsersSignInJSONRequestBody = LoginBody
// PatchUsersIdJSONRequestBody defines body for PatchUsersId for application/json ContentType.
type PatchUsersIdJSONRequestBody = UpdateUserBody