defs.go 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. package proto
  2. import (
  3. item "bet24.com/servers/micros/item_inventory/proto"
  4. )
  5. const (
  6. _ = iota //无效
  7. Notification_Gold // 1=金币
  8. Notification_Chip // 2=元宝
  9. Notification_Vitality // 3=活跃度
  10. _ // 4=空闲(保留)
  11. _ // 5=空闲(保留)
  12. _ // 6=空闲(保留)
  13. _ // 7=空闲(保留)
  14. _ // 8=空闲(保留)
  15. _ // 9=空闲(保留)
  16. Notification_Invalid // 10=空闲(保留)
  17. Notification_Task // 11=任务
  18. Notification_Vip // 12=vip等级变化
  19. Notification_Inventory // 13=背包
  20. Notification_Cannon // 14=炮台
  21. Notification_Recharge // 15=充值
  22. Notification_Broadcast // 16=广播
  23. Notification_Redpoint // 17=小红点
  24. Notification_Chat // 18=聊天
  25. Notification_Friend // 19=好友
  26. Notification_Agent // 20=代理
  27. Notification_CouponTask // 21=红包券任务
  28. Notification_Level // 22=等级变化
  29. Notification_Experience // 23=经验变化
  30. Notification_ChannelChat // 24=私人聊天
  31. Notification_Return // 25=回归奖励
  32. Notification_SlotScore // 26=slot积分
  33. Notification_BattlePass // 27=battlepass完成任务
  34. Notification_Match // 28=比赛提示
  35. Notification_AudioRoom // 29=语音房
  36. Notification_UserInfoChanged // 30=自己的用户信息已改变
  37. Notification_PrivateRoom // 31=私人场消息
  38. Notification_RoomImageChanged // 32=房间封面变化
  39. Notification_VipExpire // 33=vip过期
  40. Notification_VipGiftBagUpgrade // 34=vip礼包升级(等级发生变化后,遍历当前等级以上的道具)
  41. Notification_VipGiftBagPurchase // 35=vip礼包购买
  42. Notification_VipGiftPack // 36=vip每日礼包
  43. Notification_VipAttributeChange // 37=vip属性变化(等级、经验、时长)
  44. Notification_Exchange // 38=兑换
  45. Notification_BadgeChange // 39=成就徽章变化(经验、等级)
  46. Notification_ReceiveGift // 40=收到礼物通知
  47. Notification_GiftSent // 41=发送礼物成功
  48. Notification_NoviceWelfare // 42=新手福利变化
  49. Notification_LevelRewards // 43=等级礼包变化
  50. Notification_LadderChanged // 44=排位赛等级信息变化 {Old{Ladder,Level,Star,Point},New{Ladder,Level,Star,Point}}
  51. Notification_VipAddDuration // 45=vip添加时长
  52. Notification_HighlyProfitableChage // 46=一本万利变化
  53. )
  54. /*type NotificationTask struct {
  55. TaskId int
  56. }*/
  57. type Notification struct {
  58. Id int //通知id
  59. Data string //数据
  60. }
  61. type NotificationInventory struct {
  62. ItemIds []int
  63. Action int //动作
  64. }
  65. type NotificationCannon struct {
  66. ItemId int
  67. }
  68. type NotificationVitality struct {
  69. DayPoint int //日活跃度
  70. WeekPoint int //周活跃度
  71. }
  72. type NotificationRecharge struct {
  73. RetCode int //操作结果
  74. ProductId string
  75. ShopType int
  76. Items []item.ItemPack //物品
  77. BasePrice float64
  78. IsRefresh bool
  79. IsGift bool // 是否赠送别人礼物
  80. }
  81. type NotificationBroadcast struct {
  82. GameID int //游戏ID 0=所有游戏
  83. UserId int
  84. Msg string //消息
  85. Priority int //优先级
  86. Ext string //扩展信息
  87. }
  88. type Notification_Channel struct {
  89. Key string
  90. New int // 未读消息数量
  91. LatestMsg string
  92. LatestTime string // 最近消息时间
  93. MessageType int
  94. }
  95. /*type NotificationRedpoint struct {
  96. MsgTip bool // 客服留言
  97. MailTip bool // 邮件(含附件)
  98. MailVipTip bool // 重要邮件(含附件)
  99. SignTip bool // 签到
  100. MonthTip bool // 月卡
  101. SpreadTip bool // 邀请
  102. TaskTip bool // 任务
  103. TaskScene int // 任务场景
  104. FriendTip bool // 好友
  105. VideoSignTip bool // 视频广告(大厅)
  106. PrizeWheelTip bool // 彩票
  107. ReviewTip bool // 五星好评
  108. GameVideoTip bool // 游戏返还视频
  109. AgentUpTip bool // 代理升级提醒
  110. PurchaseTip bool // 100K购提醒
  111. NoviceWelfareTip bool // 新手福利任务提醒
  112. DailWheelFreeTip bool // 转盘免费
  113. }*/
  114. type NotificationFriend struct {
  115. NotifyId int //通知ID
  116. UserId int //用户ID
  117. Data interface{} //数据
  118. }
  119. type NotificationAgent struct {
  120. Grade int // 代理等级
  121. }
  122. type NotificationCouponTask struct {
  123. Action int // 动作 1=活动状态 2=任务完成
  124. TodayCount int // 今天券数量
  125. Data interface{} // 数据
  126. }
  127. type UserNotification struct {
  128. UserId int
  129. Data string
  130. }
  131. type NotificationAudioRoom struct {
  132. NotifyId int // 通知id
  133. RoomId int // 房间id
  134. Data interface{} // 数据
  135. }