mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-06-27 00:21:07 +02:00
Merge pull request #204 from benmcginnis/master
Add AccountID to User struct to support GDPR
This commit is contained in:
7
user.go
7
user.go
@ -15,10 +15,13 @@ type UserService struct {
|
|||||||
|
|
||||||
// User represents a JIRA user.
|
// User represents a JIRA user.
|
||||||
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"`
|
||||||
|
// TODO: name & key are deprecated, see:
|
||||||
|
// 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"`
|
||||||
Password string `json:"-"`
|
|
||||||
Key string `json:"key,omitempty" structs:"key,omitempty"`
|
Key string `json:"key,omitempty" structs:"key,omitempty"`
|
||||||
|
Password string `json:"-"`
|
||||||
EmailAddress string `json:"emailAddress,omitempty" structs:"emailAddress,omitempty"`
|
EmailAddress string `json:"emailAddress,omitempty" structs:"emailAddress,omitempty"`
|
||||||
AvatarUrls AvatarUrls `json:"avatarUrls,omitempty" structs:"avatarUrls,omitempty"`
|
AvatarUrls AvatarUrls `json:"avatarUrls,omitempty" structs:"avatarUrls,omitempty"`
|
||||||
DisplayName string `json:"displayName,omitempty" structs:"displayName,omitempty"`
|
DisplayName string `json:"displayName,omitempty" structs:"displayName,omitempty"`
|
||||||
|
Reference in New Issue
Block a user