148 lines
3.4 KiB
Go
148 lines
3.4 KiB
Go
![]() |
package proto
|
||
|
|
||
|
type EventLogger struct {
|
||
|
AppId uint32 `json:"appId"`
|
||
|
LogType uint32 `json:"logType"`
|
||
|
LogTime int64 `json:"logTime"`
|
||
|
}
|
||
|
|
||
|
type MsgEventServerOperateReq struct {
|
||
|
*EventLogger
|
||
|
Operate uint32 `json:"operate"`
|
||
|
Version string `json:"version"`
|
||
|
ProgramHash string `json:"programHash"`
|
||
|
DataHash string `json:"dataHash"`
|
||
|
ConfigHash string `json:"configHash"`
|
||
|
}
|
||
|
|
||
|
type MsgEventServerOnlineReq struct {
|
||
|
*EventLogger
|
||
|
ServerId uint32 `json:"serverId"`
|
||
|
Create uint32 `json:"create"`
|
||
|
Online uint32 `json:"online"`
|
||
|
MaxOnline uint32 `json:"maxOnline"`
|
||
|
MaxOnlineTime int64 `json:"maxOnlineTime"`
|
||
|
}
|
||
|
|
||
|
type EventPlayer struct {
|
||
|
Platform uint32 `json:"platform"`
|
||
|
Channel uint32 `json:"channel"`
|
||
|
ServerId uint32 `json:"serverId"`
|
||
|
UserId uint64 `json:"userId"`
|
||
|
RoleId uint64 `json:"roleId"`
|
||
|
Device string `json:"machine"`
|
||
|
Version string `json:"version"`
|
||
|
}
|
||
|
|
||
|
type MsgEventPlayerCommonReq struct {
|
||
|
*EventLogger
|
||
|
*EventPlayer
|
||
|
Numbers []int32 `json:"numbers"`
|
||
|
Strings []string `json:"strings"`
|
||
|
}
|
||
|
|
||
|
type MsgEventPlayerCreateReq struct {
|
||
|
*EventLogger
|
||
|
*EventPlayer
|
||
|
Name string `json:"name"`
|
||
|
Gender uint32 `json:"gender"`
|
||
|
}
|
||
|
|
||
|
type MsgEventPlayerLoginReq struct {
|
||
|
*EventLogger
|
||
|
*EventPlayer
|
||
|
OptionType uint32 `json:"optionType"`
|
||
|
LoginIp string `json:"loginIp"`
|
||
|
}
|
||
|
|
||
|
type MsgEventPlayerRechargeReq struct {
|
||
|
*EventLogger
|
||
|
*EventPlayer
|
||
|
RechargeId uint32 `json:"chargeId"`
|
||
|
Type uint32 `json:"type"`
|
||
|
SubType uint32 `json:"subType"`
|
||
|
Count uint32 `json:"count"`
|
||
|
Money uint32 `json:"money"`
|
||
|
Status uint32 `json:"status"`
|
||
|
}
|
||
|
|
||
|
type MsgEventPlayerLevelReq struct {
|
||
|
*EventLogger
|
||
|
*EventPlayer
|
||
|
PreLevel uint32 `json:"preLevel"`
|
||
|
CurLevel uint32 `json:"curLevel"`
|
||
|
}
|
||
|
|
||
|
type MsgEventPlayerItemObtainReq struct {
|
||
|
*EventLogger
|
||
|
*EventPlayer
|
||
|
ItemId uint32 `json:"itemId"`
|
||
|
ItemNum uint32 `json:"itemNum"`
|
||
|
}
|
||
|
|
||
|
type MsgEventPlayerItemConsumeReq struct {
|
||
|
*EventLogger
|
||
|
*EventPlayer
|
||
|
ItemId uint32 `json:"itemId"`
|
||
|
ItemNum uint32 `json:"itemNum"`
|
||
|
}
|
||
|
|
||
|
type MsgEventPlayerMoneyObtainReq struct {
|
||
|
*EventLogger
|
||
|
*EventPlayer
|
||
|
MoneyType uint32 `json:"MoneyType"`
|
||
|
Amount uint32 `json:"Amount"`
|
||
|
CurAmount uint32 `json:"CurAmount"`
|
||
|
}
|
||
|
|
||
|
type MsgEventPlayerMoneyConsumeReq struct {
|
||
|
*EventLogger
|
||
|
*EventPlayer
|
||
|
MoneyType uint32 `json:"MoneyType"`
|
||
|
Amount uint32 `json:"Amount"`
|
||
|
CurAmount uint32 `json:"CurAmount"`
|
||
|
}
|
||
|
|
||
|
type MsgEventPlayerMailReq struct {
|
||
|
*EventLogger
|
||
|
*EventPlayer
|
||
|
MailId uint64 `json:"mailId"`
|
||
|
MailType uint32 `json:"mailType"`
|
||
|
SentUserId uint64 `json:"sentUserId"`
|
||
|
SentServerId uint32 `json:"sentServerId"`
|
||
|
SentRoleId uint64 `json:"sentRoleId"`
|
||
|
Title string `json:"title"`
|
||
|
Content string `json:"content"`
|
||
|
CreateTime int64 `json:"createTime"`
|
||
|
Expiration int64 `json:"expiration"`
|
||
|
Args []string `json:"args"`
|
||
|
ItemIds []uint32 `json:"itemId"`
|
||
|
ItemNums []uint32 `json:"itemNum"`
|
||
|
}
|
||
|
|
||
|
type MsgEventPlayerTaskReq struct {
|
||
|
*EventLogger
|
||
|
*EventPlayer
|
||
|
TaskId uint32 `json:"taskId"`
|
||
|
Args1 []int `json:"args1"`
|
||
|
Args2 []int `json:"args2"`
|
||
|
Args3 []int `json:"args3"`
|
||
|
}
|
||
|
|
||
|
type MsgEventPlayerStoreReq struct {
|
||
|
*EventLogger
|
||
|
*EventPlayer
|
||
|
StoreType uint32 `json:"storeType"`
|
||
|
ItemId uint32 `json:"itemId"`
|
||
|
ItemNum uint32 `json:"itemNum"`
|
||
|
MoneyType int32 `json:"moneyType"`
|
||
|
MoneyNum uint32 `json:"moneyNum"`
|
||
|
}
|
||
|
|
||
|
type MsgEventPlayerActivityReq struct {
|
||
|
*EventLogger
|
||
|
*EventPlayer
|
||
|
Type uint32 `json:"type"`
|
||
|
Status uint32 `json:"status"`
|
||
|
}
|