-
Notifications
You must be signed in to change notification settings - Fork 191
/
user_responses.go
47 lines (41 loc) · 1.32 KB
/
user_responses.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
package user
// Create user response structure
type CreateUserResponse struct {
Id string `json:"id"`
Status string `json:"status"`
Code int `json:"code"`
}
// Update user response structure
type UpdateUserResponse struct {
Status string `json:"status"`
Code int `json:"code"`
}
// Delete user response structure
type DeleteUserResponse struct {
Status string `json:"status"`
Code int `json:"code"`
}
// Participant
type Contact struct {
To string `json:"to,omitempty"`
Method string `json:"method,omitempty"`
}
// Get user structure
type GetUserResponse struct {
Id string `json:"id,omitempty"`
Username string `json:"username,omitempty"`
Fullname string `json:"fullname,omitempty"`
SkypeUsername string `json:"skypeUsername,omitempty"`
Timezone string `json:"timezone,omitempty"`
Locale string `json:"locale,omitempty"`
State string `json:"state,omitempty"`
Escalations []string `json:"escalations,omitempty"`
Schedules []string `json:"schedules,omitempty"`
Role string `json:"role,omitempty"`
Groups []string `json:"groups,omitempty"`
Contacts []Contact `json:"contacts,omitempty"`
}
// List user response structure
type ListUsersResponse struct {
Users []GetUserResponse `json:"users,omitempty"`
}