Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"message"`
}
type LoginInput ¶
type RegistrationInput ¶
type RequestUser ¶
type User ¶
type User struct {
gorm.Model
Name string `gorm:"type:varchar(255);not null" json:"name"`
Username string `gorm:"size:255;not null;unique" json:"username"`
Email string `gorm:"size:255;not null;unique" json:"email"`
Password string `gorm:"size:255;not null;" json:"-"`
PhotoURL string `gorm:"size:255" json:"photo_url"`
Active bool `gorm:"not null;default:true" json:"is_active"`
Admin bool `gorm:"not null;default:false" json:"is_admin"`
}
func (*User) ToUserResponse ¶
func (u *User) ToUserResponse() interface{}
func (*User) ValidatePassword ¶
Click to show internal directories.
Click to hide internal directories.