nats.go 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package msg
  2. type LevelChanged struct {
  3. PlayerId int64 `json:"userId"`
  4. Level int `json:"level"`
  5. ServerId int `json:"serverId"`
  6. }
  7. type LastLoginServer struct {
  8. PlayerId int64 `json:"userId"`
  9. ServerId int `json:"serverId"`
  10. Level int `json:"level"`
  11. }
  12. type BanUser struct {
  13. PlayerId int64 `json:"userId"`
  14. AccId int64 `json:"accId"`
  15. Ban int `json:"ban"` // 1拉黑 0解除拉黑 2只上报记录不拉黑
  16. Reason string `json:"reason"` // 拉黑原因
  17. Time int64 `json:"time"` // 拉黑时间
  18. }
  19. type AvatarUrlChanged struct {
  20. AccId int64 `json:"accId"`
  21. AvatarUrl string `json:"AvatarUrl"`
  22. Nick string `json:"Nick"`
  23. }
  24. // GameDataAlarm
  25. type GameDataAlarm struct {
  26. PlayerId int64 `json:"playerId"` // 玩家ID
  27. Attrs []int `json:"attrs"` // 错误属性
  28. Msg string `json:"msg"` // 错误详情
  29. Time int64 `json:"created"` // 触发时间
  30. ServerId int `json:"serverId"` // 几服
  31. Module string `json:"module"` // 触发模块
  32. }
  33. type GmDelAccountId struct {
  34. MsgId string `json:"msgId"`
  35. AccId int64 `json:"accId"`
  36. }
  37. type ResponseGmDelAccountId struct {
  38. ErrCode int `json:"errCode"`
  39. MsgId string `json:"msgId"`
  40. }