Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { ID uint `json:"id,omitempty" gorm:"primarykey" binding:"required"` CreatedAt time.Time UpdatedAt time.Time `json:"-"` DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` Name string `json:"name,omitempty" gorm:"not null" binding:"required"` Lastname string `json:"lastname,omitempty" gorm:"not null" binding:"required"` Email string `json:"email,omitempty" gorm:"not null" binding:"required"` Role uint `json:"role,omitempty"` Active bool `json:"active" gorm:"default=false"` HashedPassword string `json:"-" gorm:"not null"` }
func (*User) TryAuthenticate ¶
type UserFormData ¶
func (*UserFormData) GetUser ¶
func (ufd *UserFormData) GetUser() *User
Click to show internal directories.
Click to hide internal directories.