ecs/proto/json_internal_event.go

148 lines
4.0 KiB
Go
Raw Permalink Normal View History

2025-07-16 10:05:22 +08:00
package proto
type EventLogger struct {
AppId uint32 `json:"appId"`
LogType uint32 `json:"logType"`
LogTime int64 `json:"logTime"`
}
type MsgEventServerOperateReq struct {
2025-07-17 16:21:08 +08:00
*EventLogger `json:",inline"`
Operate uint32 `json:"operate"`
Version string `json:"version"`
ProgramHash string `json:"programHash"`
DataHash string `json:"dataHash"`
ConfigHash string `json:"configHash"`
2025-07-16 10:05:22 +08:00
}
type MsgEventServerOnlineReq struct {
2025-07-17 16:21:08 +08:00
*EventLogger `json:",inline"`
2025-07-16 10:05:22 +08:00
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 {
2025-07-17 16:21:08 +08:00
*EventLogger `json:",inline"`
*EventPlayer `json:",inline"`
Numbers []int32 `json:"numbers"`
Strings []string `json:"strings"`
2025-07-16 10:05:22 +08:00
}
type MsgEventPlayerCreateReq struct {
2025-07-17 16:21:08 +08:00
*EventLogger `json:",inline"`
*EventPlayer `json:",inline"`
Name string `json:"name"`
Gender uint32 `json:"gender"`
2025-07-16 10:05:22 +08:00
}
type MsgEventPlayerLoginReq struct {
2025-07-17 16:21:08 +08:00
*EventLogger `json:",inline"`
*EventPlayer `json:",inline"`
OptionType uint32 `json:"optionType"`
LoginIp string `json:"loginIp"`
2025-07-16 10:05:22 +08:00
}
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 {
2025-07-17 16:21:08 +08:00
*EventLogger `json:",inline"`
*EventPlayer `json:",inline"`
PreLevel uint32 `json:"preLevel"`
CurLevel uint32 `json:"curLevel"`
2025-07-16 10:05:22 +08:00
}
type MsgEventPlayerItemObtainReq struct {
2025-07-17 16:21:08 +08:00
*EventLogger `json:",inline"`
*EventPlayer `json:",inline"`
ItemId uint32 `json:"itemId"`
ItemNum uint32 `json:"itemNum"`
2025-07-16 10:05:22 +08:00
}
type MsgEventPlayerItemConsumeReq struct {
2025-07-17 16:21:08 +08:00
*EventLogger `json:",inline"`
*EventPlayer `json:",inline"`
ItemId uint32 `json:"itemId"`
ItemNum uint32 `json:"itemNum"`
2025-07-16 10:05:22 +08:00
}
type MsgEventPlayerMoneyObtainReq struct {
2025-07-17 16:21:08 +08:00
*EventLogger `json:",inline"`
*EventPlayer `json:",inline"`
MoneyType uint32 `json:"MoneyType"`
Amount uint32 `json:"Amount"`
CurAmount uint32 `json:"CurAmount"`
2025-07-16 10:05:22 +08:00
}
type MsgEventPlayerMoneyConsumeReq struct {
2025-07-17 16:21:08 +08:00
*EventLogger `json:",inline"`
*EventPlayer `json:",inline"`
MoneyType uint32 `json:"MoneyType"`
Amount uint32 `json:"Amount"`
CurAmount uint32 `json:"CurAmount"`
2025-07-16 10:05:22 +08:00
}
type MsgEventPlayerMailReq struct {
2025-07-17 16:21:08 +08:00
*EventLogger `json:",inline"`
*EventPlayer `json:",inline"`
2025-07-16 10:05:22 +08:00
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 {
2025-07-17 16:21:08 +08:00
*EventLogger `json:",inline"`
*EventPlayer `json:",inline"`
TaskId uint32 `json:"taskId"`
Args1 []int `json:"args1"`
Args2 []int `json:"args2"`
Args3 []int `json:"args3"`
2025-07-16 10:05:22 +08:00
}
type MsgEventPlayerStoreReq struct {
2025-07-17 16:21:08 +08:00
*EventLogger `json:",inline"`
*EventPlayer `json:",inline"`
StoreType uint32 `json:"storeType"`
ItemId uint32 `json:"itemId"`
ItemNum uint32 `json:"itemNum"`
MoneyType int32 `json:"moneyType"`
MoneyNum uint32 `json:"moneyNum"`
2025-07-16 10:05:22 +08:00
}
type MsgEventPlayerActivityReq struct {
2025-07-17 16:21:08 +08:00
*EventLogger `json:",inline"`
*EventPlayer `json:",inline"`
Type uint32 `json:"type"`
Status uint32 `json:"status"`
2025-07-16 10:05:22 +08:00
}