ServerConfigNight.DefFactor int -> float64

This commit is contained in:
Dawid Wysokiński 2020-07-16 13:31:06 +02:00
parent 722e4a520a
commit 11ff9ddf1b
2 changed files with 6 additions and 6 deletions

View File

@ -14,7 +14,7 @@ type PlayerHistory struct {
Rank int `json:"rank" pg:",use_zero" gqlgen:"rank" xml:"rank"`
TribeID int `json:"-" pg:",use_zero" gqlgen:"tribeID" xml:"tribeID"`
Tribe *Tribe `json:"tribe,omitempty" gqlgen:"-" xml:"tribe"`
CreateDate time.Time `pg:"default:now(),type:DATE,unique:group_1,use_zero" json:"createDate" gqlgen:"createDate" xml:"createDate"`
CreateDate time.Time `pg:"default:CURRENT_DATE,type:DATE,unique:group_1,use_zero" json:"createDate" gqlgen:"createDate" xml:"createDate"`
}
type PlayerHistoryFilter struct {

View File

@ -134,11 +134,11 @@ type ServerConfigSleep struct {
}
type ServerConfigNight struct {
Text string `xml:",chardata" json:"-" gqlgen:"text"`
Active int `xml:"active" json:"active" gqlgen:"active"`
StartHour int `xml:"start_hour" json:"start_hour" gqlgen:"startHour"`
EndHour int `xml:"end_hour" json:"end_hour" gqlgen:"endHour"`
DefFactor int `xml:"def_factor" json:"def_factor" gqlgen:"defFactor"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
Active int `xml:"active" json:"active" gqlgen:"active"`
StartHour int `xml:"start_hour" json:"start_hour" gqlgen:"startHour"`
EndHour int `xml:"end_hour" json:"end_hour" gqlgen:"endHour"`
DefFactor float64 `xml:"def_factor" json:"def_factor" gqlgen:"defFactor"`
}
type ServerConfigWin struct {