-
Notifications
You must be signed in to change notification settings - Fork 15
/
user.go
21 lines (20 loc) · 1.3 KB
/
user.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package entity
type User struct {
Id string `bson:"_id,omitempty"` // ID
UserId int `bson:"user_id,omitempty"` // 用户ID
Name string `bson:"name,omitempty"` // 姓名
Avatar string `bson:"avatar,omitempty"` // 头像
Email string `bson:"email,omitempty"` // 邮箱
Phone string `bson:"phone,omitempty"` // 手机号
VipLevel int `bson:"vip_level,omitempty"` // 会员等级
Quota int `bson:"quota,omitempty"` // 剩余额度
UsedQuota int `bson:"used_quota,omitempty"` // 已用额度
QuotaExpiresAt int64 `bson:"quota_expires_at,omitempty"` // 额度过期时间
Models []string `bson:"models,omitempty"` // 模型权限
Remark string `bson:"remark,omitempty"` // 备注
Status int `bson:"status,omitempty"` // 状态[1:正常, 2:禁用, -1:删除]
Creator string `bson:"creator,omitempty"` // 创建人
Updater string `bson:"updater,omitempty"` // 更新人
CreatedAt int64 `bson:"created_at,omitempty"` // 创建时间
UpdatedAt int64 `bson:"updated_at,omitempty"` // 更新时间
}