rename Config model to ServerConfig
This commit is contained in:
parent
3476188924
commit
e6290ee856
|
@ -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"`
|
||||
|
||||
|
|
|
@ -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"`
|
||||
|
|
Reference in New Issue