-
Notifications
You must be signed in to change notification settings - Fork 2
/
organization_member_model.go
45 lines (35 loc) · 1.01 KB
/
organization_member_model.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
package deploygate
// Request
type ListOrganizationMembersRequest struct {
Organization string
}
type AddOrganizationMemberByUserNameRequest struct {
Organization string
UserName string
}
type AddOrganizationMemberByEmailRequest struct {
Organization string
Email string
}
type RemoveOrganizationMemberByUserNameRequest struct {
Organization string
UserName string
}
type RemoveOrganizationMemberByEmailRequest struct {
Organization string
Email string
}
// Response
type ListOrganizationMembersResponse struct {
Error bool `mapstructure:"error" json:"error"`
Message string `mapstructure:"message" json:"message"`
Members []Member `mapstructure:"members" json:"members"`
}
type AddOrganizationMemberResponse struct {
Error bool `mapstructure:"error" json:"error"`
Message string `mapstructure:"message" json:"message"`
}
type RemoveOrganizationMemberResponse struct {
Error bool `mapstructure:"error" json:"error"`
Message string `mapstructure:"message" json:"message"`
}