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 package skirdaobjects
type LauncherSkirdaDomain struct { type SkirdaDomainApi struct {
SkirdaDomainId string `json:"skirdaDomainId"` SkirdaDomainId string `json:"skirdaDomainId"`
Games []string `json:"Games"` Games []SkirdaGameApi `json:"games"`
Events []string `json:"Events"` 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 package skirdaobjects
type SkirdaGame struct { type SkirdaGameApi struct {
SkirdaGameId string `bson:"skirdagameid" json:"skirdagameid"` SkirdaGameId string `json:"skirdagameid"`
Title string `bson:"title" json:"title"` Title string `json:"title"`
} }