96 lines
2.1 KiB
Go
96 lines
2.1 KiB
Go
package old
|
|
|
|
import json "github.com/json-iterator/go"
|
|
|
|
type ServerDetect struct {
|
|
Name string `json:"name"`
|
|
AppId uint32 `json:"appId"`
|
|
}
|
|
|
|
type MsgServerDetectReq struct {
|
|
List []*ServerDetect `json:"list"`
|
|
}
|
|
|
|
type ServerDetectData struct {
|
|
ServerDetect
|
|
ProgramHash string `json:"programHash"`
|
|
DataHash string `json:"dataHash"`
|
|
ConfigHash string `json:"configHash"`
|
|
Pid int `json:"pid"`
|
|
CPU float64 `json:"cpu"`
|
|
Memory float64 `json:"memory"`
|
|
Online uint32 `json:"online"`
|
|
Coroutine uint32 `json:"coroutine"`
|
|
Info string `json:"info"`
|
|
}
|
|
|
|
type MsgServerDetectAck struct {
|
|
List []*ServerDetectData `json:"list"`
|
|
}
|
|
|
|
type ServerReply struct {
|
|
AppId uint32 `json:"appId"`
|
|
Status int `json:"status"`
|
|
Message string `json:"message"`
|
|
}
|
|
|
|
type MsgGameDataReloadAck struct {
|
|
ServerReplies []*ServerReply `json:"serverReplies"`
|
|
}
|
|
|
|
type ServerMailList struct {
|
|
ServerReply
|
|
MailList []*BackMail `json:"mailList,omitempty"`
|
|
}
|
|
|
|
type MsgGameMailListReq struct {
|
|
AppId uint32 `json:"appId"`
|
|
}
|
|
|
|
type MsgGameMailListAck struct {
|
|
ServerReplies []*ServerMailList `json:"serverReplies"`
|
|
}
|
|
|
|
type MsgGameMailSendReq struct {
|
|
AppIds []uint32 `json:"appIds"`
|
|
PlayerIds []uint64 `json:"playerIds"`
|
|
BackMail *BackMail `json:"backMail"`
|
|
}
|
|
|
|
type MsgGameMailSendAck struct {
|
|
ServerReplies []*ServerReply `json:"serverReplies"`
|
|
}
|
|
|
|
type ServerSelectedIds struct {
|
|
AppId uint32 `json:"appId"`
|
|
Ids []uint64 `json:"ids"`
|
|
}
|
|
|
|
type MsgGameMailDeleteReq struct {
|
|
SelectedLists []*ServerSelectedIds `json:"selectedLists"`
|
|
}
|
|
|
|
type MsgGameMailDeleteAck struct {
|
|
ServerReplies []*ServerReply `json:"serverReplies"`
|
|
}
|
|
|
|
type MsgGamePlayerQueryReq struct {
|
|
AppId uint32 `json:"appId"`
|
|
PlayerId uint64 `json:"playerId"`
|
|
Projects []string `json:"projects,omitempty"`
|
|
}
|
|
|
|
type MsgGamePlayerQueryAck struct {
|
|
Player json.RawMessage `json:"player,omitempty"`
|
|
}
|
|
|
|
type MsgGamePlayerOperateReq struct {
|
|
AppId uint32 `json:"appId"`
|
|
PlayerId uint64 `json:"playerId"`
|
|
OperateType uint32 `json:"operateType"` //1.ban,2.unban,3.kick
|
|
OperateArg int64 `json:"operation"` //banning time
|
|
}
|
|
|
|
type MsgGamePlayerOperateAck struct {
|
|
}
|