33 lines
2.1 KiB
Go
33 lines
2.1 KiB
Go
package entity
|
||
|
||
import (
|
||
"time"
|
||
)
|
||
|
||
// NlUser 用户表
|
||
type NlUser struct {
|
||
Id uint `json:"id" orm:"id,primary"` // 用户ID
|
||
OpenId string `json:"open_id" orm:"open_id"` // OpenID,用于第三方登录
|
||
Username string `json:"username" orm:"username"` // 用户名
|
||
Avatar string `json:"avatar" orm:"avatar"` // 头像
|
||
NickName string `json:"nick_name" orm:"nick_name"` // 昵称
|
||
Password string `json:"-" orm:"password"` // 密码
|
||
Phone string `json:"phone" orm:"phone"` // 手机号
|
||
Email string `json:"email" orm:"email"` // 邮箱
|
||
Gender int `json:"gender" orm:"gender"` // 性别 0未知 1男 2女
|
||
Birthday *time.Time `json:"birthday" orm:"birthday"` // 生日
|
||
VipLevel int `json:"vip_level" orm:"vip_level"` // VIP等级 0普通用户 1VIP1 2VIP2
|
||
VipExpireTime int `json:"vip_expire_time" orm:"vip_expire_time"` // VIP到期时间
|
||
Balance float64 `json:"balance" orm:"balance"` // 余额
|
||
Points int `json:"points" orm:"points"` // 积分
|
||
RegIp int64 `json:"reg_ip" orm:"reg_ip"` // 注册IP
|
||
LastLoginTime int `json:"last_login_time" orm:"last_login_time"` // 最后登录时间
|
||
LastLoginIp int64 `json:"last_login_ip" orm:"last_login_ip"` // 最后登录IP
|
||
LoginCount int `json:"login_count" orm:"login_count"` // 登录次数
|
||
Desc string `json:"desc" orm:"desc"` // 备注
|
||
Status int `json:"status" orm:"status"` // 状态 1正常 0禁用
|
||
CreatedAt int `json:"created_at" orm:"created_at"` // 创建时间
|
||
UpdatedAt int `json:"updated_at" orm:"updated_at"` // 更新时间
|
||
DeletedAt int `json:"deleted_at" orm:"deleted_at"` // 删除时间
|
||
}
|