Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
func CreateUser ¶
CreateUser create user info
func GetWorkCountByUserId ¶
Types ¶
type User ¶
type User struct { gorm.Model ID int64 `gorm:"primaryKey";json:"id"` UserName string `gorm:"type:varchar(255)"json:"user_name"` Password string `gorm:"type:varchar(255)"json:"password"` Avatar string `gorm:"type:varchar(255)"json:"avatar"` // 用户头像 URL BackgroundImage string `gorm:"type:varchar(255)"json:"background_image"` // 用户背景图 URL Signature string `gorm:"type:varchar(255)"json:"signature"` // 用户个性签名 }
func QueryUserByUserId ¶
QueryUserByUserId get user in the database by user id
Click to show internal directories.
Click to hide internal directories.