separate to different packages

This commit is contained in:
cyber-dream 2023-01-05 06:31:30 +03:00
parent e8adbe4653
commit 19790ea5c5

View 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"`
}