You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
591 B

package model
import "time"
type User struct {
//gorm.Model
ID int32
Avatar string `gorm:"default:'https://msb-edu-dev.oss-cn-beijing.aliyuncs.com/default-headimg.png'"`
ClientId int32 `gorm:"default:1"`
Nickname string `gorm:"default:'随机名称'"`
Phone string
Password string `gorm:"default:'1234'"`
SystemId string `gorm:"default:1"`
LastLoginTime time.Time
CreateTime time.Time
IsDeleted int32 `gorm:"default:0"`
UnionId string `gorm:"default:'1'"`
}
func (table *User) TableName() string {
return "user"
}