123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- package msg
- const (
- EventTypeLogin = "login"
- EventTypeWatchAd = "watchAd"
- EventTypeBattle = "battle"
- EventTypeGuide = "guide"
- EventTypeOnlineDuration = "onlineDuration"
- SubTypeLoadResource1 = "loadResource1"
- SubTypeLoadResource2 = "loadResource2"
- SubTypeLoadResource3 = "loadResource3"
- SubTypeCover = "cover"
- SubTypeLogin = "login"
- SubTypeLoadJson = "loadJson"
- SubTypeHome = "home"
- )
- type EventLogReq struct {
- EventType string `json:"event_type"`
- Channel string `json:"channel"`
- PlayerId int64 `json:"player_id"`
- PlayerCreateTime int64 `json:"player_create_time"`
- // login
- EventId string `json:"event_id"`
- SubType string `json:"sub_type"`
- Duration int64 `json:"duration"`
- // ad
- AdId int64 `json:"ad_id"`
- Status int64 `json:"status"` // 状态 1.点击游戏内广告按钮;2.拉取不到广告;3.开始播放;4.播放完成并领取游戏内奖励;
- // battle
- ChapterId int64 `json:"chapter_id"` // 关卡id
- Wave int64 `json:"wave"` // 波数
- BattleTime int64 `json:"battle_time"` // 战斗时长
- BattleResult int64 `json:"battle_result"` // 战斗结果 0未通关 1通关
- IsRevive int `json:"is_revive"` // 是否复活 0否 1是
- ReviveWave int `json:"revive_wave"` // 复活波数
- // guide
- GuideId int64 `json:"guide_id"` // 引导id
- StepId int64 `json:"step_id"` // 步骤id
- // onlineDuration
- LoginAt int64 `json:"login_at"` // 登录时间
- IsValid int64 `json:"is_valid"` // 是否是有效用户 0否 1是
- }
- type EventLogResp struct {
- Code int64 `json:"code"`
- Msg string `json:"msg"`
- }
|