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:"verified_email"` Name string `json:"name"` GivenName string `json:"given_name"` FamilyName string `json:"family_name"` 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 }