change skirdaDomainApi

This commit is contained in:
cyber-dream 2023-03-26 17:31:23 +03:00
parent 2a7c682ffa
commit 55433b7d11
3 changed files with 14 additions and 7 deletions

View File

@ -1,7 +1,7 @@
package skirdaobjects
type LauncherSkirdaDomain struct {
SkirdaDomainId string `json:"skirdaDomainId"`
Games []string `json:"Games"`
Events []string `json:"Events"`
type SkirdaDomainApi struct {
SkirdaDomainId string `json:"skirdaDomainId"`
Games []SkirdaGameApi `json:"games"`
Events []SkirdaEventApi `json:"events"`
}

7
skirdaobjects/events.go Normal file
View File

@ -0,0 +1,7 @@
package skirdaobjects
type SkirdaEventApi struct {
SkirdaEventId string `json:"skirdaevent_id"`
SkirdaGameId string `json:"skirdagame_id"`
Title string `json:"title"`
}

View File

@ -1,6 +1,6 @@
package skirdaobjects
type SkirdaGame struct {
SkirdaGameId string `bson:"skirdagameid" json:"skirdagameid"`
Title string `bson:"title" json:"title"`
type SkirdaGameApi struct {
SkirdaGameId string `json:"skirdagameid"`
Title string `json:"title"`
}