Changing password and use cache when uploading

This commit is contained in:
Aurélie Delhaie
2022-05-29 17:56:03 +02:00
parent d0ee7df3f5
commit 7a8672ce80
7 changed files with 239 additions and 93 deletions

View File

@@ -5,7 +5,9 @@ import "time"
type User struct {
ID int `json:"id"`
Username string `json:"username"`
Role string `json:"role"`
Password []byte `json:"-"`
IsAdmin bool `json:"is_admin" gorm:"-:all"`
}
type Game struct {
@@ -18,9 +20,3 @@ type Game struct {
UserId int `json:"-"`
Available bool `json:"available"`
}
type GameUploadToken struct {
GameId int `json:"-"`
UploadToken string `json:"upload_token"`
Expire time.Time `json:"expire"`
}