27 lines
742 B
Go
27 lines
742 B
Go
package domain
|
|
|
|
import "time"
|
|
|
|
// GoogleUserInfo is a data type which contains a mapping of the Google User Info API call.
|
|
type GoogleUserInfo struct {
|
|
Id string `json:"Id"`
|
|
Email string `json:"Email"`
|
|
Verified bool `json:"VerifiedEmail"`
|
|
Name string `json:"Name"`
|
|
GivenName string `json:"GivenName"`
|
|
FamilyName string `json:"FamilyName"`
|
|
Picture string `json:"Picture"`
|
|
}
|
|
|
|
// User is the database model of a user. There is no need to map to a different model so
|
|
// this will remain in the domain.
|
|
type User struct {
|
|
Id int
|
|
GoogleId string
|
|
Name string
|
|
Email string
|
|
ImageUrl string
|
|
GoogleRefreshToken string
|
|
Created time.Time
|
|
}
|