feat: article: finish base functions

This commit is contained in:
fallen-angle
2022-02-15 16:49:32 +08:00
parent 72ef5c92c4
commit be5def58fd
13 changed files with 245 additions and 37 deletions

View File

@@ -7,8 +7,8 @@ type BackUser struct {
Username string `gorm:"column:username" json:"username"` // 用户真实姓名
Password string `gorm:"column:password" json:"password"` // 用户密码
Role int `gorm:"column:role" json:"role"` // 用户角色
Email string `gorm:"column:email" json:"email"` // 用户邮箱
Phone string `gorm:"column:phone" json:"phone"` // 用户手机号码
Email string `gorm:"unique;column:email" json:"email"` // 用户邮箱
Phone string `gorm:"unique;column:phone" json:"phone"` // 用户手机号码
Aptitude string `gorm:"column:aptitude" json:"aptitude"` // 用户资质证明(图片URL)
RegisterTime time.Time `gorm:"column:register_time" json:"registerTime"` // 用户注册时间
Approver int `gorm:"column:approver" json:"approver"` // 注册审核人ID