rename Server.CountPlayers -> NumberOfPlayers, Server.CountTribes -> NumberOfTribes, Server.CountVillages -> NumberOfVillages
This commit is contained in:
parent
011aa011b9
commit
6f18736130
|
@ -48,12 +48,12 @@ func (ss ServerStatus) MarshalGQL(w io.Writer) {
|
||||||
type Server struct {
|
type Server struct {
|
||||||
tableName struct{} `pg:"alias:server"`
|
tableName struct{} `pg:"alias:server"`
|
||||||
|
|
||||||
ID int `json:"id" gqlgen:"id" xml:"id"`
|
ID int `json:"id" gqlgen:"id" xml:"id"`
|
||||||
Key string `json:"key" gqlgen:"key" pg:",unique" xml:"key"`
|
Key string `json:"key" gqlgen:"key" pg:",unique" xml:"key"`
|
||||||
Status ServerStatus `json:"status" gqlgen:"status" xml:"status"`
|
Status ServerStatus `json:"status" gqlgen:"status" xml:"status"`
|
||||||
CountPlayers int `pg:",use_zero" json:"countPlayers" gqlgen:"countPlayers" xml:"countPlayers"`
|
NumberOfPlayers int `pg:",use_zero" json:"numberOfPlayers" gqlgen:"numberOfPlayers" xml:"numberOfPlayers"`
|
||||||
CountVillages int `pg:",use_zero" json:"countVillages" gqlgen:"countVillages" xml:"countVillages"`
|
NumberOfTribes int `pg:",use_zero" json:"numberOfTribes" gqlgen:"numberOfTribes" xml:"numberOfTribes"`
|
||||||
CountTribes int `pg:",use_zero" json:"countTribes" gqlgen:"countTribes" xml:"countTribes"`
|
NumberOfVillages int `pg:",use_zero" json:"numberOfVillages" gqlgen:"numberOfVillages" xml:"numberOfVillages"`
|
||||||
|
|
||||||
Config ServerConfig `json:"config" gqlgen:"config" xml:"config"`
|
Config ServerConfig `json:"config" gqlgen:"config" xml:"config"`
|
||||||
BuildingConfig BuildingConfig `json:"buildingConfig" gqlgen:"buildingConfig" xml:"buildingConfig"`
|
BuildingConfig BuildingConfig `json:"buildingConfig" gqlgen:"buildingConfig" xml:"buildingConfig"`
|
||||||
|
|
Reference in New Issue
Block a user