mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-11-25 22:12:08 +02:00
feat: Add AccountType and Locale to User struct
This commit is contained in:
2
user.go
2
user.go
@@ -17,6 +17,7 @@ type UserService struct {
|
|||||||
type User struct {
|
type User struct {
|
||||||
Self string `json:"self,omitempty" structs:"self,omitempty"`
|
Self string `json:"self,omitempty" structs:"self,omitempty"`
|
||||||
AccountID string `json:"accountId,omitempty" structs:"accountId,omitempty"`
|
AccountID string `json:"accountId,omitempty" structs:"accountId,omitempty"`
|
||||||
|
AccountType string `json:"accountType,omitempty" structs:"accountType,omitempty"`
|
||||||
// TODO: name & key are deprecated, see:
|
// TODO: name & key are deprecated, see:
|
||||||
// https://developer.atlassian.com/cloud/jira/platform/api-changes-for-user-privacy-announcement/
|
// https://developer.atlassian.com/cloud/jira/platform/api-changes-for-user-privacy-announcement/
|
||||||
Name string `json:"name,omitempty" structs:"name,omitempty"`
|
Name string `json:"name,omitempty" structs:"name,omitempty"`
|
||||||
@@ -27,6 +28,7 @@ type User struct {
|
|||||||
DisplayName string `json:"displayName,omitempty" structs:"displayName,omitempty"`
|
DisplayName string `json:"displayName,omitempty" structs:"displayName,omitempty"`
|
||||||
Active bool `json:"active,omitempty" structs:"active,omitempty"`
|
Active bool `json:"active,omitempty" structs:"active,omitempty"`
|
||||||
TimeZone string `json:"timeZone,omitempty" structs:"timeZone,omitempty"`
|
TimeZone string `json:"timeZone,omitempty" structs:"timeZone,omitempty"`
|
||||||
|
Locale string `json:"locale,omitempty" structs:"locale,omitempty"`
|
||||||
ApplicationKeys []string `json:"applicationKeys,omitempty" structs:"applicationKeys,omitempty"`
|
ApplicationKeys []string `json:"applicationKeys,omitempty" structs:"applicationKeys,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user