Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUserNotFound = errors.New("user not found") ErrUserAlreadyExists = errors.New("user already exists") )
Functions ¶
This section is empty.
Types ¶
type TokenGenerator ¶
type User ¶
type User struct { ID int `json:"id"` Name string `json:"name"` BirthDate Date Password string Email string DocumentNo string Address Address IsActive bool `json:"is_active"` IsStaff bool `json:"is_staff"` CreatedAt time.Time UpdatedAt time.Time DeletedAt *time.Time ResetToken string ResetTokenExpiresAt time.Time }
func (*User) ComparePassword ¶
func (*User) EncryptPassword ¶
type UserOutput ¶
type UserOutput struct { ID int `json:"id"` Name string `json:"name"` IsActive bool `json:"is_active"` IsStaff bool `json:"is_staff"` }
func NewUserOutput ¶
Click to show internal directories.
Click to hide internal directories.