🎨 新增讲师关注功能
This commit is contained in:
@@ -20,6 +20,8 @@ type User struct {
|
||||
UserType int8 `gorm:"column:user_type;default:1;NOT NULL;comment:'用户类型 1 用户 2 讲师'" json:"user_type" form:"user_type" `
|
||||
IsVip int8 `gorm:"column:is_vip;default:0;NOT NULL;comment:'是否是VIP 0 否 1 是'" json:"is_vip" form:"is_vip"`
|
||||
VipExpireTime string `json:"vip_expire_time" form:"vip_expire_time" gorm:"comment:VIP过期时间"`
|
||||
//权重
|
||||
Weight int `json:"weight" form:"weight" gorm:"comment:用户权重"`
|
||||
}
|
||||
|
||||
func (User) TableName() string {
|
||||
|
Reference in New Issue
Block a user