Update ServerListResp to include HumanCount instead of PlayerCount
All checks were successful
CI - Build and Push / Build and Push Docker Image (push) Successful in 40s
All checks were successful
CI - Build and Push / Build and Push Docker Image (push) Successful in 40s
This commit is contained in:
@@ -182,13 +182,13 @@ type (
|
||||
type (
|
||||
ServerListReq {}
|
||||
ServerListResp {
|
||||
ServerName string `json:"serverName"` // Server name
|
||||
ServerIP string `json:"serverIP"` // Server IP address
|
||||
ServerPort int `json:"serverPort"` // Server port
|
||||
Category string `json:"category"` // Server category
|
||||
MapName string `json:"mapName"` // Current map name
|
||||
PlayerCount int `json:"playerCount"` // Current player count
|
||||
BotCount int `json:"botCount"` // Bot count
|
||||
ServerName string `json:"serverName"` // Server name
|
||||
ServerIP string `json:"serverIP"` // Server IP address
|
||||
ServerPort int `json:"serverPort"` // Server port
|
||||
Category string `json:"category"` // Server category
|
||||
MapName string `json:"mapName"` // Current map name
|
||||
HumanCount int `json:"humanCount"` // Current human player count
|
||||
BotCount int `json:"botCount"` // Bot count
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ func (l *ServerListLogic) ServerList(req *types.ServerListReq) (resp []types.Ser
|
||||
&server.ServerPort,
|
||||
&server.Category,
|
||||
&server.BotCount,
|
||||
&server.PlayerCount,
|
||||
&server.HumanCount,
|
||||
&server.MapName,
|
||||
)
|
||||
if err != nil {
|
||||
|
||||
@@ -70,13 +70,13 @@ type ServerListReq struct {
|
||||
}
|
||||
|
||||
type ServerListResp struct {
|
||||
ServerName string `json:"serverName"` // Server name
|
||||
ServerIP string `json:"serverIP"` // Server IP address
|
||||
ServerPort int `json:"serverPort"` // Server port
|
||||
Category string `json:"category"` // Server category
|
||||
MapName string `json:"mapName"` // Current map name
|
||||
PlayerCount int `json:"playerCount"` // Current player count
|
||||
BotCount int `json:"botCount"` // Bot count
|
||||
ServerName string `json:"serverName"` // Server name
|
||||
ServerIP string `json:"serverIP"` // Server IP address
|
||||
ServerPort int `json:"serverPort"` // Server port
|
||||
Category string `json:"category"` // Server category
|
||||
MapName string `json:"mapName"` // Current map name
|
||||
HumanCount int `json:"humanCount"` // Current human player count
|
||||
BotCount int `json:"botCount"` // Bot count
|
||||
}
|
||||
|
||||
type TopKillerReq struct {
|
||||
|
||||
Reference in New Issue
Block a user