-
Notifications
You must be signed in to change notification settings - Fork 2
/
organization_model.go
53 lines (42 loc) · 1.52 KB
/
organization_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
package deploygate
// Request
type CreateOrganizationRequest struct {
Name string
Description string
}
type GetOrganizationRequest struct {
Name string
}
type UpdateOrganizationRequest struct {
Name string
Description string
}
type DeleteOrganizationRequest struct {
Name string
}
// Response
type ListOrganizationsResponse struct {
Error bool `mapstructure:"error" json:"error"`
Message string `mapstructure:"message" json:"message"`
Organizations []Organization `mapstructure:"organizations" json:"organizations"`
}
type CreateOrganizationResponse struct {
Error bool `mapstructure:"error" json:"error"`
Message string `mapstructure:"message" json:"message"`
Organization Organization `mapstructure:"organization" json:"organization"`
}
type GetOrganizationResponse struct {
Error bool `mapstructure:"error" json:"error"`
Message string `mapstructure:"message" json:"message"`
Organization OrganizationInfo `mapstructure:"organization" json:"organization"`
}
type UpdateOrganizationResponse struct {
Error bool `mapstructure:"error" json:"error"`
Message string `mapstructure:"message" json:"message"`
Organization Organization `mapstructure:"organization" json:"organization"`
}
type DeleteOrganizationResponse struct {
Error bool `mapstructure:"error" json:"error"`
Message string `mapstructure:"message" json:"message"`
Results Results `mapstructure:"results" json:"results"`
}