Changing password and use cache when uploading
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user