All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 46s
22 lines
400 B
Go
22 lines
400 B
Go
package types
|
|
|
|
import "github.com/google/uuid"
|
|
|
|
type SessionId string
|
|
|
|
type User struct {
|
|
Id uuid.UUID
|
|
Email string
|
|
SessionId SessionId
|
|
EmailVerified bool
|
|
}
|
|
|
|
func NewUser(id uuid.UUID, email string, sessionId SessionId, emailVerified bool) *User {
|
|
return &User{
|
|
Id: id,
|
|
Email: email,
|
|
SessionId: sessionId,
|
|
EmailVerified: emailVerified,
|
|
}
|
|
}
|