add JS session interface

This commit is contained in:
cyber-dream 2022-10-28 17:21:10 +03:00
parent ceb5cac7ea
commit 7c0ce88a38

View File

@ -5,13 +5,15 @@ import (
) )
type Session struct { type Session struct {
expirateAt time.Time Expires time.Time
gameId string GameId string
} }
type JSSessionInterface struct { type JSSessionInterface struct {
GameID string `json:"gameId"` GameID string `json:"gameId"`
Title string `json:"title"` Icon string `json:"icon"`
Image string `json:"image"` Title string `json:"title"`
Description string `json:"description"` Status string `json:"status"`
Version string `json:"version"`
Expires time.Time `json:"expires"`
} }