Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrCreateSession = "fail on create session" ErrFindUser = "fail on find user" )
ErrCreateSession create session
Variables ¶
View Source
var ErrGeneratePassword = errors.New("error on generate hash of password")
ErrGeneratePassword generate password
View Source
var ErrInvalidEntity = errors.New("invalid entity")
ErrInvalidEntity invalid entity
View Source
var ErrNotFound = errors.New("not found")
ErrNotFound not found
Functions ¶
This section is empty.
Types ¶
type LoginResponse ¶
type User ¶
type User struct { ID int64 `gorm:"primaryKey" json:"id"` Name string `gorm:"type:varchar(200)" json:"name"` Email string `gorm:"type:varchar(100);not null;unique_index" json:"email"` BirthDate time.Time Password string `gorm:"type:varchar(255)" json:"password"` CreatedAt time.Time UpdatedAt time.Time DeletedAt gorm.DeletedAt }
func (*User) UpdatePassword ¶
func (*User) ValidatePassword ¶
Click to show internal directories.
Click to hide internal directories.