Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Profile ¶
type Profile struct { gorm.Model UserID uint `gorm:"uniqueIndex"` // 用户ID Nickname string `gorm:"size:255"` // 用户昵称 AvatarURL string `gorm:"size:255"` // 用户头像URL }
Profile 定义了用户配置的模型
func (*Profile) BeforeCreate ¶
BeforeCreate 钩子
Click to show internal directories.
Click to hide internal directories.