132 lines
3.5 KiB
Go
132 lines
3.5 KiB
Go
package logic
|
|
|
|
type EventLogger struct {
|
|
AppId uint32 `bson:"app_id"`
|
|
LogType uint32 `bson:"log_type"`
|
|
LogTime int64 `bson:"log_time"`
|
|
}
|
|
|
|
type ServerOperateLog struct {
|
|
EventLogger `bson:",inline"`
|
|
Operate uint32 `bson:"operate"`
|
|
Version string `bson:"version"`
|
|
ProgramHash string `bson:"program_hash"`
|
|
DataHash string `bson:"data_hash"`
|
|
ConfigHash string `bson:"config_hash"`
|
|
}
|
|
|
|
type ServerOnlineLog struct {
|
|
EventLogger `bson:",inline"`
|
|
ServerId uint32 `bson:"server_id"`
|
|
Create uint32 `bson:"create"`
|
|
Online uint32 `bson:"online"`
|
|
MaxOnline uint32 `bson:"max_online"`
|
|
MaxOnlineTime int64 `bson:"max_online_time"`
|
|
}
|
|
|
|
type EventPlayer struct {
|
|
Platform uint32 `bson:"platform"`
|
|
Channel uint32 `bson:"channel"`
|
|
ServerId uint32 `bson:"server_id"`
|
|
UserId uint64 `bson:"user_id"`
|
|
RoleId uint64 `bson:"role_id"`
|
|
Device string `bson:"device"`
|
|
Version string `bson:"version"`
|
|
}
|
|
|
|
type PlayerCommonLog struct {
|
|
EventLogger `bson:",inline"`
|
|
EventPlayer `bson:",inline"`
|
|
Numbers []int32 `bson:"numbers"`
|
|
Strings []string `bson:"strings"`
|
|
}
|
|
|
|
type PlayerCreateLog struct {
|
|
EventLogger `bson:",inline"`
|
|
EventPlayer `bson:",inline"`
|
|
Name string `bson:"name"`
|
|
Gender uint32 `bson:"gender"`
|
|
}
|
|
|
|
type PlayerLoginLog struct {
|
|
EventLogger `bson:",inline"`
|
|
EventPlayer `bson:",inline"`
|
|
OptionType uint32 `bson:"option_type"`
|
|
LoginIp string `bson:"login_ip"`
|
|
}
|
|
|
|
type PlayerRechargeLog struct {
|
|
EventLogger `bson:",inline"`
|
|
EventPlayer `bson:",inline"`
|
|
RechargeId uint32 `bson:"charge_id"`
|
|
Type uint32 `bson:"type"`
|
|
SubType uint32 `bson:"sub_type"`
|
|
Count uint32 `bson:"count"`
|
|
Money uint32 `bson:"money"`
|
|
Status uint32 `bson:"status"`
|
|
}
|
|
|
|
type PlayerLevelLog struct {
|
|
EventLogger `bson:",inline"`
|
|
EventPlayer `bson:",inline"`
|
|
PreLevel uint32 `bson:"pre_level"`
|
|
CurLevel uint32 `bson:"cur_level"`
|
|
}
|
|
|
|
type PlayerItemObtainLog struct {
|
|
EventLogger `bson:",inline"`
|
|
EventPlayer `bson:",inline"`
|
|
ItemId uint32 `bson:"item_id"`
|
|
ItemNum uint32 `bson:"item_num"`
|
|
}
|
|
|
|
type PlayerItemConsumeLog struct {
|
|
EventLogger `bson:",inline"`
|
|
EventPlayer `bson:",inline"`
|
|
ItemId uint32 `bson:"item_id"`
|
|
ItemNum uint32 `bson:"item_num"`
|
|
}
|
|
|
|
type PlayerMailLog struct {
|
|
EventLogger `bson:",inline"`
|
|
EventPlayer `bson:",inline"`
|
|
MailId uint64 `json:"mail_id"`
|
|
MailType uint32 `json:"mail_type"`
|
|
SentUserId uint64 `json:"sent_user_id"`
|
|
SentServerId uint32 `json:"sent_server_id"`
|
|
SentRoleId uint64 `json:"sent_role_id"`
|
|
Title string `json:"title"`
|
|
Content string `json:"content"`
|
|
CreateTime int64 `json:"create_time"`
|
|
Expiration int64 `json:"expiration"`
|
|
Args []string `json:"args"`
|
|
ItemIds []uint32 `json:"item_id"`
|
|
ItemNums []uint32 `json:"item_num"`
|
|
}
|
|
|
|
type PlayerTaskLog struct {
|
|
EventLogger `bson:",inline"`
|
|
EventPlayer `bson:",inline"`
|
|
TaskId uint32 `bson:"task_id"`
|
|
Args1 []int `bson:"args1"`
|
|
Args2 []int `bson:"args2"`
|
|
Args3 []int `bson:"args3"`
|
|
}
|
|
|
|
type PlayerStoreLog struct {
|
|
EventLogger `bson:",inline"`
|
|
EventPlayer `bson:",inline"`
|
|
StoreType uint32 `bson:"store_type"`
|
|
ItemId uint32 `bson:"item_id"`
|
|
ItemNum uint32 `bson:"item_num"`
|
|
MoneyType int32 `bson:"money_type"`
|
|
MoneyNum uint32 `bson:"money_num"`
|
|
}
|
|
|
|
type PlayerActivityLog struct {
|
|
EventLogger `bson:",inline"`
|
|
EventPlayer `bson:",inline"`
|
|
Type uint32 `bson:"type"`
|
|
Status uint32 `bson:"status"`
|
|
}
|