Move generics to their own file
This commit is contained in:
20
wow/gamedata/generics.go
Normal file
20
wow/gamedata/generics.go
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
package gamedata
|
||||||
|
|
||||||
|
const (
|
||||||
|
UP string = "UP"
|
||||||
|
DOWN string = "DOWN"
|
||||||
|
)
|
||||||
|
|
||||||
|
type href struct {
|
||||||
|
Href string `json:"href"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type idAndKey struct {
|
||||||
|
ID int `json:"id"`
|
||||||
|
Key href `json:"key"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type idAndType struct {
|
||||||
|
ID int `json:"id"`
|
||||||
|
Type string `json:"type"`
|
||||||
|
}
|
||||||
@@ -53,20 +53,6 @@ const (
|
|||||||
ClassWarriorProtection string = "warrior-protection"
|
ClassWarriorProtection string = "warrior-protection"
|
||||||
)
|
)
|
||||||
|
|
||||||
type href struct {
|
|
||||||
Href string `json:"href"`
|
|
||||||
}
|
|
||||||
|
|
||||||
type idAndKey struct {
|
|
||||||
ID int `json:"id"`
|
|
||||||
Key href `json:"key"`
|
|
||||||
}
|
|
||||||
|
|
||||||
type idAndType struct {
|
|
||||||
ID int `json:"id"`
|
|
||||||
Type string `json:"type"`
|
|
||||||
}
|
|
||||||
|
|
||||||
type PvpSeasonIndexAPI struct {
|
type PvpSeasonIndexAPI struct {
|
||||||
Seasons []idAndKey `json:"seasons"`
|
Seasons []idAndKey `json:"seasons"`
|
||||||
CurrentSeason idAndKey `json:"current_season"`
|
CurrentSeason idAndKey `json:"current_season"`
|
||||||
|
|||||||
Reference in New Issue
Block a user