♻️ Brand new user center

This commit is contained in:
2024-02-28 23:30:29 +08:00
parent 14efa09486
commit e4ace4324a
13 changed files with 759 additions and 31 deletions

View File

@ -12,6 +12,7 @@ type Account struct {
Name string `json:"name" gorm:"uniqueIndex"`
Nick string `json:"nick"`
Description string `json:"description"`
Avatar string `json:"avatar"`
Profile AccountProfile `json:"profile"`
Sessions []AuthSession `json:"sessions"`

View File

@ -6,7 +6,6 @@ type AccountProfile struct {
BaseModel
FirstName string `json:"first_name"`
MiddleName string `json:"middle_name"`
LastName string `json:"last_name"`
Experience uint64 `json:"experience"`
Birthday *time.Time `json:"birthday"`