userLoginEvent.go 531 B

12345678910111213141516
  1. package eventmodels
  2. // 用户登录事件
  3. type UserLoginEventContent struct {
  4. UserBasic
  5. EventBasic
  6. Ip string `json:"ip"` // IP
  7. Platform string `json:"platform"` // 平台
  8. Channel string `json:"channel"` // 渠道
  9. ContinuousDays int `json:"continuous_days"` // 连续登陆天数
  10. ContinuousDaysMax int `json:"continuous_days_max"` // 最大连续登陆天数
  11. }
  12. func (e *UserLoginEventContent) EventName() string {
  13. return "UserLogin"
  14. }