ecs/proto/old/internal_event.go

142 lines
3.6 KiB
Go
Raw Normal View History

2025-06-04 18:17:39 +08:00
package old
type MsgEventServerOperateReq struct {
LogType uint32 `json:"logType"`
ServerId uint32 `json:"serverId"`
Operate uint32 `json:"operate"`
Version string `json:"version"`
ProgramHash string `json:"programHash"`
DataHash string `json:"dataHash"`
ConfigHash string `json:"configHash"`
}
type MsgEventServerOnlineReq struct {
LogType uint32 `json:"logType"`
ServerId uint32 `json:"serverID"`
Create uint32 `json:"create"`
Online uint32 `json:"online"`
Offlines uint32 `json:"offlines"`
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"`
Machine uint32 `json:"machine"`
Version string `json:"version"`
}
type MsgEventPlayerCommonReq struct {
*EventPlayer
LogType uint32 `json:"logType"`
Param1 int32 `json:"param1"`
Param2 int32 `json:"param2"`
Param3 int32 `json:"param3"`
ParamStr string `json:"paramStr"`
}
type MsgEventPlayerCreateReq struct {
*EventPlayer
LogType uint32 `json:"logType"`
}
type MsgEventPlayerLoginReq struct {
*EventPlayer
LogType uint32 `json:"logType"`
OptionType uint32 `json:"optionType"`
LoginIp string `json:"loginIp"`
}
type MsgEventPlayerRechargeReq struct {
*EventPlayer
LogType uint32 `json:"logType"`
ChargeId uint32 `json:"chargeId"`
CurrType uint32 `json:"currType"`
Count uint32 `json:"count"`
Added uint32 `json:"added"`
LogSubtype uint32 `json:"logSubtype"`
Money uint32 `json:"money"`
AddTime int64 `json:"addTime"`
Status uint32 `json:"status"`
}
type MsgEventPlayerLevelUpgradeReq struct {
*EventPlayer
LogType uint32 `json:"logType"`
PreLevel uint32 `json:"preLevel"`
CurLevel uint32 `json:"curLevel"`
}
type MsgEventPlayerItemObtainReq struct {
*EventPlayer
LogType uint32 `json:"logType"`
ItemId uint32 `json:"itemId"`
ItemNum uint32 `json:"itemNum"`
}
type MsgEventPlayerItemConsumeReq struct {
*EventPlayer
LogType uint32 `json:"logType"`
ItemId uint32 `json:"itemId"`
ItemNum uint32 `json:"itemNum"`
}
type MsgEventPlayerMoneyObtainReq struct {
*EventPlayer
LogType uint32 `json:"logType"`
MoneyType uint32 `json:"moneyType"`
Amount uint32 `json:"amount"`
CurAmount uint32 `json:"curAmount"`
}
type MsgEventPlayerMoneyConsumeReq struct {
*EventPlayer
LogType uint32 `json:"logType"`
MoneyType uint32 `json:"moneyType"`
Amount uint32 `json:"amount"`
CurAmount uint32 `json:"curAmount"`
}
type MsgEventPlayerMailLogReq struct {
*EventPlayer
LogType uint32 `json:"logType"`
MailId uint64 `json:"mailId"`
MailType uint32 `json:"mailType"`
RewardType uint32 `json:"rewardType"`
Title string `json:"title"`
Content string `json:"content"`
Attachment string `json:"attachment"`
SenderId uint64 `json:"senderId"`
SenderTime int64 `json:"senderTime"`
}
type MsgEventPlayerTaskLogReq struct {
*EventPlayer
LogType uint32 `json:"logType"`
TaskId uint32 `json:"taskId"`
Param1 []int `json:"param1"`
Param2 []int `json:"param2"`
Param3 []int `json:"param3"`
}
type MsgEventPlayerShopLogReq struct {
*EventPlayer
LogType uint32 `json:"logType"`
ShopType uint32 `json:"shopType"`
ItemId uint32 `json:"itemID"`
ItemNum uint32 `json:"itemNum"`
PriceType int32 `json:"priceType"`
Price uint32 `json:"price"`
}
type MsgEventPlayerActivityReq struct {
*EventPlayer
LogType uint32 `json:"logType"`
ActivityType uint32 `json:"activityType"`
Status uint32 `json:"status"`
}