-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstructs.go
32 lines (28 loc) · 853 Bytes
/
structs.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
package main
// Team is a Vercel Team object
type Team struct {
ID string `json:"id,omitempty"`
Slug string `json:"slug,omitempty"`
Name string `json:"name,omitempty"`
CreatedAt int `json:"createdAt,omitempty"`
Created string `json:"created,omitempty"`
}
type Pagination struct {
Count int `json:"count,omitempty"`
Next int `json:"next,omitempty"`
Prev int `json:"prev,omitempty"`
}
type TeamsResponse struct {
Teams []Team `json:"teams,omitempty"`
Pagination Pagination `json:"pagination,omitempty"`
}
type User struct {
ID string `json:"id,omitempty"`
Username string `json:"username,omitempty"`
Email string `json:"email,omitempty"`
Name string `json:"name,omitempty"`
CreatedAt int `json:"createdAt,omitempty"`
}
type UserResponse struct {
User User `json:"user,omitempty"`
}