@@ -5,103 +5,87 @@ package api
55// User represents an user from the 42's API.
66// Truncated to keep only useful entries.
77type User struct {
8- /*
9- ID int `json:"id"`
10- Email string `json:"email"`
11- */
8+ // ID int `json:"id"`
9+ // Email string `json:"email"`
1210 Login string `json:"login"`
13- /*
14- FirstName string `json:"first_name"`
15- LastName string `json:"last_name"`
16- URL string `json:"url"`
17- Phone interface{} `json:"phone"`
18- Displayname string `json:"displayname"`
19- ImageURL string `json:"image_url"`
20- Staff bool `json:"staff?"`
21- CorrectionPoint int `json:"correction_point"`
22- PoolMonth string `json:"pool_month"`
23- PoolYear string `json:"pool_year"`
24- Location string `json:"location"`
25- Wallet int `json:"wallet"`
26- Groups []interface{} `json:"groups"`
27- */
11+ // FirstName string `json:"first_name"`
12+ // LastName string `json:"last_name"`
13+ // URL string `json:"url"`
14+ // Phone interface{} `json:"phone"`
15+ // Displayname string `json:"displayname"`
16+ // ImageURL string `json:"image_url"`
17+ // Staff bool `json:"staff?"`
18+ // CorrectionPoint int `json:"correction_point"`
19+ // PoolMonth string `json:"pool_month"`
20+ // PoolYear string `json:"pool_year"`
21+ // Location string `json:"location"`
22+ // Wallet int `json:"wallet"`
23+ // Groups []interface{} `json:"groups"`
2824 CursusUsers []struct {
29- /*
30- ID int `json:"id"`
31- BeginAt time.Time `json:"begin_at"`
32- EndAt interface{} `json:"end_at"`
33- Grade interface{} `json:"grade"`
34- */
25+ // ID int `json:"id"`
26+ // BeginAt time.Time `json:"begin_at"`
27+ // EndAt interface{} `json:"end_at"`
28+ // Grade interface{} `json:"grade"`
3529 Level float64 `json:"level"`
36- /*
37- Skills []interface{} `json:"skills"`
38- CursusID int `json:"cursus_id"`
39- HasCoalition bool `json:"has_coalition"`
40- User User `json:"user"`
41- Cursus struct {
42- ID int `json:"id"`
43- CreatedAt time.Time `json:"created_at"`
44- Name string `json:"name"`
45- Slug string `json:"slug"`
46- } `json:"cursus"`
47- */
30+ // Skills []interface{} `json:"skills"`
31+ // CursusID int `json:"cursus_id"`
32+ // HasCoalition bool `json:"has_coalition"`
33+ // User User `json:"user"`
34+ // Cursus struct {
35+ // ID int `json:"id"`
36+ // CreatedAt time.Time `json:"created_at"`
37+ // Name string `json:"name"`
38+ // Slug string `json:"slug"`
39+ // } `json:"cursus"`
4840 } `json:"cursus_users"`
49- /*
50- ProjectsUsers []interface{} `json:"projects_users"`
51- LanguagesUsers []struct {
52- ID int `json:"id"`
53- LanguageID int `json:"language_id"`
54- UserID int `json:"user_id"`
55- Position int `json:"position"`
56- CreatedAt time.Time `json:"created_at"`
57- } `json:"languages_users"`
58- Achievements []interface{} `json:"achievements"`
59- Titles []interface{} `json:"titles"`
60- TitlesUsers []interface{} `json:"titles_users"`
61- Partnerships []interface{} `json:"partnerships"`
62- Patroned []struct {
63- ID int `json:"id"`
64- UserID int `json:"user_id"`
65- GodfatherID int `json:"godfather_id"`
66- Ongoing bool `json:"ongoing"`
67- CreatedAt time.Time `json:"created_at"`
68- UpdatedAt time.Time `json:"updated_at"`
69- } `json:"patroned"`
70- Patroning []interface{} `json:"patroning"`
71- ExpertisesUsers []struct {
72- ID int `json:"id"`
73- ExpertiseID int `json:"expertise_id"`
74- Interested bool `json:"interested"`
75- Value int `json:"value"`
76- ContactMe bool `json:"contact_me"`
77- CreatedAt time.Time `json:"created_at"`
78- UserID int `json:"user_id"`
79- } `json:"expertises_users"`
80- */
81- Campus []struct {
82- /*
83- ID int `json:"id"`
84- */
85- Name string `json:"name"`
86- /*
87- TimeZone string `json:"time_zone"`
88- Language struct {
89- ID int `json:"id"`
90- Name string `json:"name"`
91- Identifier string `json:"identifier"`
92- CreatedAt time.Time `json:"created_at"`
93- UpdatedAt time.Time `json:"updated_at"`
94- } `json:"language"`
95- UsersCount int `json:"users_count"`
96- VogsphereID int `json:"vogsphere_id"`
97- */
98- } `json:"campus"`
99- /*
100- CampusUsers []struct {
101- ID int `json:"id"`
102- UserID int `json:"user_id"`
103- CampusID int `json:"campus_id"`
104- IsPrimary bool `json:"is_primary"`
105- } `json:"campus_users"`
106- */
41+ // ProjectsUsers []interface{} `json:"projects_users"`
42+ // LanguagesUsers []struct {
43+ // ID int `json:"id"`
44+ // LanguageID int `json:"language_id"`
45+ // UserID int `json:"user_id"`
46+ // Position int `json:"position"`
47+ // CreatedAt time.Time `json:"created_at"`
48+ // } `json:"languages_users"`
49+ // Achievements []interface{} `json:"achievements"`
50+ // Titles []interface{} `json:"titles"`
51+ // TitlesUsers []interface{} `json:"titles_users"`
52+ // Partnerships []interface{} `json:"partnerships"`
53+ // Patroned []struct {
54+ // ID int `json:"id"`
55+ // UserID int `json:"user_id"`
56+ // GodfatherID int `json:"godfather_id"`
57+ // Ongoing bool `json:"ongoing"`
58+ // CreatedAt time.Time `json:"created_at"`
59+ // UpdatedAt time.Time `json:"updated_at"`
60+ // } `json:"patroned"`
61+ // Patroning []interface{} `json:"patroning"`
62+ // ExpertisesUsers []struct {
63+ // ID int `json:"id"`
64+ // ExpertiseID int `json:"expertise_id"`
65+ // Interested bool `json:"interested"`
66+ // Value int `json:"value"`
67+ // ContactMe bool `json:"contact_me"`
68+ // CreatedAt time.Time `json:"created_at"`
69+ // UserID int `json:"user_id"`
70+ // } `json:"expertises_users"`
71+ Campus []struct {
72+ // ID int `json:"id"`
73+ Name string `json:"name"`
74+ // TimeZone string `json:"time_zone"`
75+ // Language struct {
76+ // ID int `json:"id"`
77+ // Name string `json:"name"`
78+ // Identifier string `json:"identifier"`
79+ // CreatedAt time.Time `json:"created_at"`
80+ // UpdatedAt time.Time `json:"updated_at"`
81+ // } `json:"language"`
82+ // UsersCount int `json:"users_count"`
83+ // VogsphereID int `json:"vogsphere_id"`
84+ } `json:"campus"`
85+ // CampusUsers []struct {
86+ // ID int `json:"id"`
87+ // UserID int `json:"user_id"`
88+ // CampusID int `json:"campus_id"`
89+ // IsPrimary bool `json:"is_primary"`
90+ // } `json:"campus_users"`
10791}
0 commit comments