You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
661 B
19 lines
661 B
package models |
|
|
|
import ( |
|
"time" |
|
) |
|
|
|
// ExternalAPIUser represents a single 3rd party integration that uses an access token. |
|
// This struct mostly matches the User struct so they can be used interchangeably. |
|
type ExternalAPIUser struct { |
|
CreatedAt time.Time `json:"createdAt"` |
|
LastUsedAt *time.Time `json:"lastUsedAt,omitempty"` |
|
ID string `json:"id"` |
|
AccessToken string `json:"accessToken"` |
|
DisplayName string `json:"displayName"` |
|
Type string `json:"type,omitempty"` // Should be API |
|
Scopes []string `json:"scopes"` |
|
DisplayColor int `json:"displayColor"` |
|
IsBot bool `json:"isBot"` |
|
}
|
|
|