-
Notifications
You must be signed in to change notification settings - Fork 2
/
app_team_model.go
44 lines (36 loc) · 1.02 KB
/
app_team_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
package deploygate
// Request
type ListAppTeamsRequest struct {
Organization string
Platform string
AppId string
}
type AddAppTeamRequest struct {
Organization string
Platform string
AppId string
Team string
}
type RemoveAppTeamRequest struct {
Organization string
Platform string
AppId string
Team string
}
// Response
type ListAppTeamsResponse struct {
Error bool `mapstructure:"error" json:"error"`
Message string `mapstructure:"message" json:"message"`
Because string `mapstructure:"because" json:"because"`
Teams []Team `mapstructure:"teams" json:"teams"`
}
type AddAppTeamResponse struct {
Error bool `mapstructure:"error" json:"error"`
Message string `mapstructure:"message" json:"message"`
Because string `mapstructure:"because" json:"because"`
}
type RemoveAppTeamResponse struct {
Error bool `mapstructure:"error" json:"error"`
Message string `mapstructure:"message" json:"message"`
Because string `mapstructure:"because" json:"because"`
}