type UserBasic struct {
gorm.Model
Name string `gorm:"size:150;default:'';not null;comment:姓名"`
Password string `gorm:"size:255;default:'';not null;comment:密码"`
Phone string `gorm:"size:11;default:'';not null;comment:手机号码"`
Email string `gorm:"size:150;default:'';not null;comment:邮箱"`
Client string `gorm:"size:100;default:'';not null;comment:客户端"`
Identity string `gorm:"size:255;default:'';not null;comment:暂无"`
ClientIp string `gorm:"size:20;default:'';not null;comment:客户端IP"`
ClientPort string `gorm:"size:10;default:'';not null;comment:客户端端口"`
LoginTime time.Time `gorm:"comment:登陆时间"`
HeartbeatTime time.Time `gorm:"comment:心跳时间"`
LogoutTime time.Time `gorm:"comment:退出时间"`
IsLogout bool `gorm:"default:true;not null;comment:是否登陆"`
DeviceInfo string `gorm:"size:255;default:'';not null;comment:设备信息"`
}