mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-08 02:03:42 +08:00
feat: vue-mobile => 完成移动端聊天配置功能
This commit is contained in:
@@ -4,16 +4,16 @@ import "chatplus/core/types"
|
||||
|
||||
type User struct {
|
||||
BaseVo
|
||||
Username string `json:"username"`
|
||||
Nickname string `json:"nickname"`
|
||||
Avatar string `json:"avatar"`
|
||||
Salt string `json:"salt"` // 密码盐
|
||||
Tokens int64 `json:"tokens"` // 剩余tokens
|
||||
Calls int `json:"calls"` // 剩余对话次数
|
||||
ChatConfig types.ChatConfig `json:"chat_config"` // 聊天配置
|
||||
ChatRoles []string `json:"chat_roles"` // 聊天角色集合
|
||||
ExpiredTime int64 `json:"expired_time"` // 账户到期时间
|
||||
Status bool `json:"status"` // 当前状态
|
||||
LastLoginAt int64 `json:"last_login_at"` // 最后登录时间
|
||||
LastLoginIp string `json:"last_login_ip"` // 最后登录 IP
|
||||
Username string `json:"username,omitempty"`
|
||||
Nickname string `json:"nickname,omitempty"`
|
||||
Avatar string `json:"avatar,omitempty"`
|
||||
Salt string `json:"salt,omitempty"` // 密码盐
|
||||
Tokens int64 `json:"tokens,omitempty"` // 剩余tokens
|
||||
Calls int `json:"calls,omitempty"` // 剩余对话次数
|
||||
ChatConfig types.ChatConfig `json:"chat_config,omitempty"` // 聊天配置
|
||||
ChatRoles []string `json:"chat_roles,omitempty"` // 聊天角色集合
|
||||
ExpiredTime int64 `json:"expired_time,omitempty"` // 账户到期时间
|
||||
Status bool `json:"status,omitempty"` // 当前状态
|
||||
LastLoginAt int64 `json:"last_login_at,omitempty"` // 最后登录时间
|
||||
LastLoginIp string `json:"last_login_ip,omitempty"` // 最后登录 IP
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user