rename Server.CountPlayers -> NumberOfPlayers, Server.CountTribes -> NumberOfTribes, Server.CountVillages -> NumberOfVillages

This commit is contained in:
Dawid Wysokiński 2020-06-21 10:19:52 +02:00
parent 011aa011b9
commit 6f18736130
1 changed files with 6 additions and 6 deletions

View File

@ -48,12 +48,12 @@ func (ss ServerStatus) MarshalGQL(w io.Writer) {
type Server struct {
tableName struct{} `pg:"alias:server"`
ID int `json:"id" gqlgen:"id" xml:"id"`
Key string `json:"key" gqlgen:"key" pg:",unique" xml:"key"`
Status ServerStatus `json:"status" gqlgen:"status" xml:"status"`
CountPlayers int `pg:",use_zero" json:"countPlayers" gqlgen:"countPlayers" xml:"countPlayers"`
CountVillages int `pg:",use_zero" json:"countVillages" gqlgen:"countVillages" xml:"countVillages"`
CountTribes int `pg:",use_zero" json:"countTribes" gqlgen:"countTribes" xml:"countTribes"`
ID int `json:"id" gqlgen:"id" xml:"id"`
Key string `json:"key" gqlgen:"key" pg:",unique" xml:"key"`
Status ServerStatus `json:"status" gqlgen:"status" xml:"status"`
NumberOfPlayers int `pg:",use_zero" json:"numberOfPlayers" gqlgen:"numberOfPlayers" xml:"numberOfPlayers"`
NumberOfTribes int `pg:",use_zero" json:"numberOfTribes" gqlgen:"numberOfTribes" xml:"numberOfTribes"`
NumberOfVillages int `pg:",use_zero" json:"numberOfVillages" gqlgen:"numberOfVillages" xml:"numberOfVillages"`
Config ServerConfig `json:"config" gqlgen:"config" xml:"config"`
BuildingConfig BuildingConfig `json:"buildingConfig" gqlgen:"buildingConfig" xml:"buildingConfig"`