create sessions

This commit is contained in:
cyber-dream 2022-10-27 23:31:46 +03:00
parent 2a62f1f8c7
commit 5d36467946
2 changed files with 22 additions and 0 deletions

5
sessionUtils/session.go Normal file
View File

@ -0,0 +1,5 @@
package sessionUtils
func GetJSSessionInterface(s Session) JSSessionInterface {
return JSSessionInterface{}
}

View File

@ -0,0 +1,17 @@
package sessionUtils
import (
"time"
)
type Session struct {
expirateAt time.Time
gameId string
}
type JSSessionInterface struct {
GameID string `json:"gameId"`
Title string `json:"title"`
Image string `json:"image"`
Description string `json:"description"`
}