Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteGroup ¶
func EncryptionPassword ¶
Types ¶
type User ¶
type User struct { gorm.Model Nickname string Username string `gorm:"type:varchar(100);unique"` Password string Email string `gorm:"type:varchar(100);unique"` Group []Group `gorm:"many2many:user_group"` }
func GetUserById ¶
func GetUserByName ¶
func (User) DeleteGroup ¶
Click to show internal directories.
Click to hide internal directories.