This commit is contained in:
2023-07-18 17:52:03 +08:00
parent 3040bdca2b
commit 7ab41bc866
2 changed files with 3 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ import (
type Account struct {
ID int `json:"id"`
Gold int `json:"gold"`
Name string `json:"name"`
Email string `json:"email"`
Admin bool `json:"admin"`
@@ -87,6 +88,7 @@ func AccountRead(w http.ResponseWriter, r *http.Request, cb func(account *Accoun
var account Account
account.ID = user.ID
account.Gold = user.Gold
account.Name = user.Name
account.Email = user.Email
account.Admin = user.Admin