-
Notifications
You must be signed in to change notification settings - Fork 2
/
app_member_model.go
65 lines (53 loc) · 1.78 KB
/
app_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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package deploygate
// Request
type GetAppMembersRequest struct {
Owner string
Platform string
AppId string
}
type AddAppMembersRequest struct {
Owner string
Platform string
AppId string
Users string
Role string
}
type RemoveAppMembersRequest struct {
Owner string
Platform string
AppId string
Users string
}
// Response
type GetAppMembersResponse struct {
Error bool `mapstructure:"error" json:"error"`
Results GetAppMembersResponseResult `mapstructure:"results" json:"results"`
}
type GetAppMembersResponseResult struct {
Usage Usage `mapstructure:"usage" json:"usage"`
Users []User `mapstructure:"users" json:"users"`
}
type Usage struct {
Used uint `mapstructure:"used" json:"used"`
Max uint `mapstructure:"max" json:"max"`
}
type AddAppMembersResponse struct {
Error bool `mapstructure:"error" json:"error"`
Message string `mapstructure:"message" json:"message"`
Because string `mapstructure:"because" json:"because"`
Results AddAppMembersResponseResult `mapstructure:"results" json:"results"`
}
type AddAppMembersResponseResult struct {
Invite string `mapstructure:"invite" json:"invite"`
Added []User `mapstructure:"added" json:"added"`
Invited []User `mapstructure:"invited" json:"invited"`
}
type RemoveAppMembersResponse struct {
Error bool `mapstructure:"error" json:"error"`
Message string `mapstructure:"message" json:"message"`
Because string `mapstructure:"because" json:"because"`
Results RemoveAppMembersResponseResult `mapstructure:"results" json:"results"`
}
type RemoveAppMembersResponseResult struct {
Invite string `mapstructure:"invite" json:"invite"`
}