feat: add nickname field for user

This commit is contained in:
RockYang
2023-12-29 17:39:37 +08:00
parent cf4b04e047
commit cb6e323596
9 changed files with 40 additions and 39 deletions

View File

@@ -3,6 +3,7 @@ package model
type User struct {
BaseModel
Mobile string
Nickname string
Password string
Avatar string
Salt string // 密码盐

View File

@@ -5,6 +5,7 @@ import "chatplus/core/types"
type User struct {
BaseVo
Mobile string `json:"mobile"`
Nickname string `json:"nickname"`
Avatar string `json:"avatar"`
Salt string `json:"salt"` // 密码盐
TotalTokens int64 `json:"total_tokens"` // 总消耗tokens