Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEFAULT = 1 + iota ADMIN )
Variables ¶
This section is empty.
Functions ¶
func CreateUser ¶
Types ¶
type User ¶
type User struct { db.BasicModel Username string `gorm:"type:varchar(24);not null" json:"username"` Password string `gorm:"type:varchar(128);not null" json:"-"` Email string `gorm:"type:varchar(128);not null" json:"email"` Role int32 `gorm:"type:smallint;not null;default:1" json:"role"` AvatarFid string `gorm:"column:avatar_fid;type:varchar(64);not null" json:"avatarFid"` }
func GetUsersByEmail ¶
func GetUsersById ¶
Click to show internal directories.
Click to hide internal directories.