rename Config model to ServerConfig

This commit is contained in:
Dawid Wysokiński 2020-06-19 18:07:27 +02:00
parent 3476188924
commit e6290ee856
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ type Server struct {
Key string `json:"key" gqlgen:"key" pg:",unique" xml:"key"`
Status ServerStatus `json:"status" gqlgen:"status" xml:"status"`
Config Config `json:"config" gqlgen:"config" xml:"config"`
Config ServerConfig `json:"config" gqlgen:"config" xml:"config"`
BuildingConfig BuildingConfig `json:"buildingConfig" gqlgen:"buildingConfig" xml:"buildingConfig"`
UnitConfig UnitConfig `json:"unitConfig" gqlgen:"unitConfig" xml:"unitConfig"`

View File

@ -2,7 +2,7 @@ package models
import "encoding/xml"
type Config struct {
type ServerConfig struct {
XMLName xml.Name `xml:"config" json:"-" gqlgen:"xmlName"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
Speed float32 `xml:"speed" json:"speed" gqlgen:"speed"`