refactor: V3 版本重构已基本完成

This commit is contained in:
RockYang
2023-06-15 09:41:30 +08:00
parent be6e8c7713
commit 567cdc6f8d
99 changed files with 5209 additions and 5752 deletions

View File

@@ -0,0 +1,18 @@
package model
type User struct {
BaseModel
Username string `gorm:"index:username,unique"`
Password string
Nickname string
Avatar string
Salt string // 密码盐
Tokens int64 // 剩余tokens
Calls int // 剩余对话次数
ChatConfig string `gorm:"column:chat_config_json"` // 聊天配置 json
ChatRoles string `gorm:"column:chat_roles_json"` // 聊天角色
ExpiredTime int64 // 账户到期时间
Status bool // 当前状态
LastLoginAt int64 // 最后登录时间
LastLoginIp string // 最后登录 IP
}