-
Notifications
You must be signed in to change notification settings - Fork 0
/
models_gen.go
102 lines (95 loc) · 4.04 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
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
package GraphQL_Service
type Films struct {
ID string `json:"id"`
Title string `json:"title"`
EpisodeID *int `json:"episode_id"`
OpeningCrawl *string `json:"opening_crawl"`
Director *string `json:"director"`
Producer *string `json:"producer"`
ReleaseDate *string `json:"release_date"`
Characters []*People `json:"characters"`
Planets []*Planets `json:"planets"`
Starships []*Starships `json:"starships"`
Vehicles []*Vehicles `json:"vehicles"`
Species []*Species `json:"species"`
}
type People struct {
ID string `json:"id"`
Name string `json:"name"`
Height *string `json:"height"`
Mass *string `json:"mass"`
HairColor *string `json:"hair_color"`
SkinColor *string `json:"skin_color"`
EyeColor *string `json:"eye_color"`
BirthYear *string `json:"birth_year"`
Gender *string `json:"gender"`
Homeworld *Planets `json:"homeworld"`
Films []*Films `json:"films"`
Species []*Species `json:"species"`
Vehicles []*Vehicles `json:"vehicles"`
Starships []*Starships `json:"starships"`
}
type Planets struct {
ID string `json:"id"`
Name string `json:"name"`
RotationPeriod *string `json:"rotation_period"`
OrbitalPeriod *string `json:"orbital_period"`
Diameter *string `json:"diameter"`
Climate *string `json:"climate"`
Gravity *string `json:"gravity"`
Terrain *string `json:"terrain"`
SurfaceWater *string `json:"surface_water"`
Population *string `json:"population"`
Residents []*People `json:"residents"`
Films []*Films `json:"films"`
}
type Species struct {
ID string `json:"id"`
Name *string `json:"name"`
Classification *string `json:"classification"`
Designation *string `json:"designation"`
AverageHeight *string `json:"average_height"`
SkinColors *string `json:"skin_colors"`
HairColors *string `json:"hair_colors"`
EyeColors *string `json:"eye_colors"`
AverageLifespan *string `json:"average_lifespan"`
Homeworld *Planets `json:"homeworld"`
Language *string `json:"language"`
People []*People `json:"people"`
Films []*Films `json:"films"`
}
type Starships struct {
ID string `json:"id"`
Name *string `json:"name"`
Model *string `json:"model"`
Manufacturer *string `json:"manufacturer"`
CostInCredits *string `json:"cost_in_credits"`
Length *string `json:"length"`
MaxAtmospheringSpeed *string `json:"max_atmosphering_speed"`
Crew *string `json:"crew"`
Passengers *string `json:"passengers"`
CargoCapacity *string `json:"cargo_capacity"`
Consumables *string `json:"consumables"`
HyperdriveRating *string `json:"hyperdrive_rating"`
Mglt *string `json:"MGLT"`
StarshipClass *string `json:"starship_class"`
Pilots []*People `json:"pilots"`
Films []*Films `json:"films"`
}
type Vehicles struct {
ID string `json:"id"`
Name *string `json:"name"`
Model *string `json:"model"`
Manufacturer *string `json:"manufacturer"`
CostInCredits *string `json:"cost_in_credits"`
Length *string `json:"length"`
MaxAtmospheringSpeed *string `json:"max_atmosphering_speed"`
Crew *string `json:"crew"`
Passengers *string `json:"passengers"`
CargoCapacity *string `json:"cargo_capacity"`
Consumables *string `json:"consumables"`
VehicleClass *string `json:"vehicle_class"`
Pilots []*People `json:"pilots"`
Films []*Films `json:"films"`
}