Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct { ID uuid.UUID `gorm:"type:uuid;primary_key"` //<-:create CreatedAt time.Time UpdatedAt time.Time DeletedAt gorm.DeletedAt `gorm:"index"` }
gorm.Model definition
type Restaurant ¶
type User ¶
type User struct { Base Username string `param:"username" query:"username" form:"username" json:"username" xml:"username"` Email string `param:"email" query:"email" form:"email" json:"email" xml:"email"` Password string `param:"password" query:"password" form:"password" json:"password" xml:"password"` Role RoleName `param:"role" query:"role" form:"role" json:"role" xml:"role"` Restaurants []Restaurant `gorm:"foreignKey:OwnerID" param:"restaurants" query:"restaurants" form:"restaurants" json:"restaurants" xml:"restaurants" ` }
func (*User) CheckPassword ¶
Click to show internal directories.
Click to hide internal directories.