separate to different packages
This commit is contained in:
parent
e8adbe4653
commit
19790ea5c5
29
models/sessions/sessionTypes.go
Normal file
29
models/sessions/sessionTypes.go
Normal file
@ -0,0 +1,29 @@
|
||||
package sessionsModels
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
gamesModels "git.gregbrzezinski.com/Skirda/skirdagoutils/models/games"
|
||||
)
|
||||
|
||||
type Session struct {
|
||||
SessionId string
|
||||
GameId string
|
||||
Assets gamesModels.GameInterfaceAssets
|
||||
Expires time.Time
|
||||
Arguments []gamesModels.Argument
|
||||
}
|
||||
|
||||
type Sessions struct {
|
||||
Sessions []Session
|
||||
}
|
||||
|
||||
type JSSessionInterface struct {
|
||||
GameID string `json:"gameId"`
|
||||
SessionId string `json:"sessionId"`
|
||||
Expires time.Time `json:"expires"`
|
||||
Title string `json:"title"`
|
||||
Icon string `json:"icon"`
|
||||
Description string `json:"description"`
|
||||
Backgrounds []string `json:"backgrounds"`
|
||||
}
|
Loading…
Reference in New Issue
Block a user