This repository has been archived by the owner on Jun 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi_type.gen.go
190 lines (160 loc) · 6.99 KB
/
openapi_type.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
// Package v1 provides primitives to interact with the openapi HTTP API.
//
// Code generated by github.com/deepmap/oapi-codegen version v1.12.3 DO NOT EDIT.
package v1
import (
openapi_types "github.com/deepmap/oapi-codegen/pkg/types"
)
// Defines values for CompetencyType.
const (
GENERAL CompetencyType = "GENERAL"
PROFESSIONAL CompetencyType = "PROFESSIONAL"
UNIVERSAL CompetencyType = "UNIVERSAL"
)
// Defines values for ErrorSlug.
const (
BadRequest ErrorSlug = "bad-request"
CompetenciesNotFound ErrorSlug = "competencies-not-found"
EmptyBearerToken ErrorSlug = "empty-bearer-token"
IndicatorNotFound ErrorSlug = "indicator-not-found"
InvalidCompetenciesParameters ErrorSlug = "invalid-competencies-parameters"
InvalidIndicatorParameters ErrorSlug = "invalid-indicator-parameters"
InvalidJson ErrorSlug = "invalid-json"
InvalidLevelParameters ErrorSlug = "invalid-level-parameters"
InvalidProgramParameters ErrorSlug = "invalid-program-parameters"
InvalidSpecialtiesParameters ErrorSlug = "invalid-specialties-parameters"
InvalidUgsnParameters ErrorSlug = "invalid-ugsn-parameters"
LevelNotFound ErrorSlug = "level-not-found"
NotFoundEntity ErrorSlug = "not-found-entity"
ProgramNotFound ErrorSlug = "program-not-found"
SpecialtyNotFound ErrorSlug = "specialty-not-found"
UgsnNotFound ErrorSlug = "ugsn-not-found"
UnableToVerifyJwt ErrorSlug = "unable-to-verify-jwt"
UnauthorizedUser ErrorSlug = "unauthorized-user"
UnexpectedError ErrorSlug = "unexpected-error"
)
// CompetencyResponse defines model for CompetencyResponse.
type CompetencyResponse struct {
Category string `json:"category"`
Code string `json:"code"`
Id openapi_types.UUID `json:"id"`
LevelId *openapi_types.UUID `json:"levelId,omitempty"`
ProgramId *openapi_types.UUID `json:"programId,omitempty"`
SpecialtyId *openapi_types.UUID `json:"specialtyId,omitempty"`
Title string `json:"title"`
Type CompetencyType `json:"type"`
UgsnId *openapi_types.UUID `json:"ugsnId,omitempty"`
}
// CompetencyType defines model for CompetencyType.
type CompetencyType string
// CreateCompetencyRequest defines model for CreateCompetencyRequest.
type CreateCompetencyRequest struct {
Category string `json:"category"`
Code string `json:"code"`
LevelId *openapi_types.UUID `json:"levelId,omitempty"`
ProgramId *openapi_types.UUID `json:"programId,omitempty"`
SpecialtyId *openapi_types.UUID `json:"specialtyId,omitempty"`
Title string `json:"title"`
Type CompetencyType `json:"type"`
UgsnId *openapi_types.UUID `json:"ugsnId,omitempty"`
}
// CreateIndicatorRequest defines model for CreateIndicatorRequest.
type CreateIndicatorRequest struct {
Code string `json:"code"`
Title string `json:"title"`
}
// CreateLevelRequest defines model for CreateLevelRequest.
type CreateLevelRequest struct {
Title string `json:"title"`
}
// CreateProgramRequest defines model for CreateProgramRequest.
type CreateProgramRequest struct {
Code string `json:"code"`
Title string `json:"title"`
}
// CreateSpecialtyRequest defines model for CreateSpecialtyRequest.
type CreateSpecialtyRequest struct {
Code string `json:"code"`
Title string `json:"title"`
}
// CreateUgsnRequest defines model for CreateUgsnRequest.
type CreateUgsnRequest struct {
Code string `json:"code"`
Title string `json:"title"`
}
// Error defines model for Error.
type Error struct {
Details string `json:"details"`
Slug ErrorSlug `json:"slug"`
}
// ErrorSlug defines model for ErrorSlug.
type ErrorSlug string
// LevelResponse defines model for LevelResponse.
type LevelResponse struct {
Id openapi_types.UUID `json:"id"`
Title string `json:"title"`
}
// ProgramResponse defines model for ProgramResponse.
type ProgramResponse struct {
Code string `json:"code"`
Id openapi_types.UUID `json:"id"`
SpecialtyId openapi_types.UUID `json:"specialtyId"`
Title string `json:"title"`
}
// SpecialtyResponse defines model for SpecialtyResponse.
type SpecialtyResponse struct {
Code string `json:"code"`
Id openapi_types.UUID `json:"id"`
Title string `json:"title"`
UgsnId openapi_types.UUID `json:"ugsnId"`
}
// SpecificLevelResponse defines model for SpecificLevelResponse.
type SpecificLevelResponse struct {
Id openapi_types.UUID `json:"id"`
Title string `json:"title"`
Ugsn []SpecificUgsnResponse `json:"ugsn"`
}
// SpecificSpecialtyResponse defines model for SpecificSpecialtyResponse.
type SpecificSpecialtyResponse struct {
Code string `json:"code"`
Id openapi_types.UUID `json:"id"`
Program []ProgramResponse `json:"program"`
Title string `json:"title"`
}
// SpecificUgsnResponse defines model for SpecificUgsnResponse.
type SpecificUgsnResponse struct {
Code string `json:"code"`
Id openapi_types.UUID `json:"id"`
Specialty []SpecificSpecialtyResponse `json:"specialty"`
Title string `json:"title"`
}
// UgsnResponse defines model for UgsnResponse.
type UgsnResponse struct {
Code string `json:"code"`
Id openapi_types.UUID `json:"id"`
LevelId openapi_types.UUID `json:"levelId"`
Title string `json:"title"`
}
// FilterCompetencyParams defines parameters for FilterCompetency.
type FilterCompetencyParams struct {
// LevelId select level id
LevelId *openapi_types.UUID `form:"levelId,omitempty" json:"levelId,omitempty"`
// UgsnId select ugsn id
UgsnId *openapi_types.UUID `form:"ugsnId,omitempty" json:"ugsnId,omitempty"`
// SpecialtyId select specialty id
SpecialtyId *openapi_types.UUID `form:"specialtyId,omitempty" json:"specialtyId,omitempty"`
// ProgramId select program id
ProgramId *openapi_types.UUID `form:"programId,omitempty" json:"programId,omitempty"`
}
// CreateCompetencyJSONRequestBody defines body for CreateCompetency for application/json ContentType.
type CreateCompetencyJSONRequestBody = CreateCompetencyRequest
// CreateIndicatorJSONRequestBody defines body for CreateIndicator for application/json ContentType.
type CreateIndicatorJSONRequestBody = CreateIndicatorRequest
// CreateLevelJSONRequestBody defines body for CreateLevel for application/json ContentType.
type CreateLevelJSONRequestBody = CreateLevelRequest
// AddUgsnJSONRequestBody defines body for AddUgsn for application/json ContentType.
type AddUgsnJSONRequestBody = CreateUgsnRequest
// AddProgramsJSONRequestBody defines body for AddPrograms for application/json ContentType.
type AddProgramsJSONRequestBody = CreateProgramRequest
// AddSpecialtiesJSONRequestBody defines body for AddSpecialties for application/json ContentType.
type AddSpecialtiesJSONRequestBody = CreateSpecialtyRequest