forked from ctreminiom/go-atlassian
/
sm_customer.go
35 lines (31 loc) · 1.36 KB
/
sm_customer.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
package models
type CustomerPageScheme struct {
Expands []interface{} `json:"_expands,omitempty"`
Size int `json:"size,omitempty"`
Start int `json:"start,omitempty"`
Limit int `json:"limit,omitempty"`
IsLastPage bool `json:"isLastPage,omitempty"`
Links *CustomerPageLinksScheme `json:"_links,omitempty"`
Values []*CustomerScheme `json:"values,omitempty"`
}
type CustomerPageLinksScheme struct {
Base string `json:"base,omitempty"`
Context string `json:"context,omitempty"`
Next string `json:"next,omitempty"`
Prev string `json:"prev,omitempty"`
}
type CustomerScheme struct {
AccountID string `json:"accountId,omitempty"`
Name string `json:"name,omitempty"`
Key string `json:"key,omitempty"`
EmailAddress string `json:"emailAddress,omitempty"`
DisplayName string `json:"displayName,omitempty"`
Active bool `json:"active,omitempty"`
TimeZone string `json:"timeZone,omitempty"`
Links *CustomerLinkScheme `json:"_links,omitempty"`
}
type CustomerLinkScheme struct {
JiraRest string `json:"jiraRest"`
AvatarUrls *AvatarURLScheme `json:"avatarUrls"`
Self string `json:"self"`
}