rename packages
This commit is contained in:
parent
6ecd1f8846
commit
bf4b92b296
@ -1,7 +1,5 @@
|
|||||||
package distribution
|
package distribution
|
||||||
|
|
||||||
import domainUtils "git.gregbrzezinski.com/Skirda/skirdagoutils/domain"
|
|
||||||
|
|
||||||
type Distributiuon struct {
|
type Distributiuon struct {
|
||||||
Domains []domainUtils.Domain
|
Domains []Domain
|
||||||
}
|
}
|
||||||
|
11
distribution/domainModels.go
Normal file
11
distribution/domainModels.go
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
package distribution
|
||||||
|
|
||||||
|
type Domain struct {
|
||||||
|
DiscordGroupID string
|
||||||
|
Games Games
|
||||||
|
Sessions Sessions
|
||||||
|
}
|
||||||
|
|
||||||
|
type Domains struct {
|
||||||
|
Domains []Domain
|
||||||
|
}
|
13
distribution/domainUtils.go
Normal file
13
distribution/domainUtils.go
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
package distribution
|
||||||
|
|
||||||
|
var fakeDomains = Domains{ //TODO: Move to back
|
||||||
|
Domains: []Domain{defaultDomain},
|
||||||
|
}
|
||||||
|
|
||||||
|
var defaultDomain = Domain{
|
||||||
|
DiscordGroupID: "0",
|
||||||
|
Games: Games{
|
||||||
|
SteamGames: SteamFakeGamesList,
|
||||||
|
},
|
||||||
|
Sessions: FakeSessions,
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
package gameUtils
|
package distribution
|
||||||
|
|
||||||
var garrysmodGame = SteamGame{ //TODO: Move to front
|
var garrysmodGame = SteamGame{ //TODO: Move to front
|
||||||
GameId: "garrysmod",
|
GameId: "garrysmod",
|
@ -1,4 +1,4 @@
|
|||||||
package gameUtils
|
package distribution
|
||||||
|
|
||||||
type SteamGame struct {
|
type SteamGame struct {
|
||||||
GameId string
|
GameId string
|
@ -1,4 +1,4 @@
|
|||||||
package gameUtils
|
package distribution
|
||||||
|
|
||||||
func FindGameByID(id string, list Games) SteamGame {
|
func FindGameByID(id string, list Games) SteamGame {
|
||||||
for _, game := range list.SteamGames {
|
for _, game := range list.SteamGames {
|
@ -1,4 +1,4 @@
|
|||||||
package gameUtils
|
package distribution
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
@ -1,4 +1,4 @@
|
|||||||
package gameUtils
|
package distribution
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
@ -1,13 +0,0 @@
|
|||||||
package domainUtils
|
|
||||||
|
|
||||||
import "git.gregbrzezinski.com/Skirda/skirdagoutils/gameUtils"
|
|
||||||
|
|
||||||
type Domain struct {
|
|
||||||
DiscordGroupID string
|
|
||||||
Games gameUtils.Games
|
|
||||||
Sessions gameUtils.Sessions
|
|
||||||
}
|
|
||||||
|
|
||||||
type Domains struct {
|
|
||||||
Domains []Domain
|
|
||||||
}
|
|
@ -1,15 +0,0 @@
|
|||||||
package domainUtils
|
|
||||||
|
|
||||||
import "git.gregbrzezinski.com/Skirda/skirdagoutils/gameUtils"
|
|
||||||
|
|
||||||
var fakeDomains = Domains{ //TODO: Move to back
|
|
||||||
Domains: []Domain{defaultDomain},
|
|
||||||
}
|
|
||||||
|
|
||||||
var defaultDomain = Domain{
|
|
||||||
DiscordGroupID: "0",
|
|
||||||
Games: gameUtils.Games{
|
|
||||||
SteamGames: gameUtils.SteamFakeGamesList,
|
|
||||||
},
|
|
||||||
Sessions: gameUtils.FakeSessions,
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user