蛋蛋星球-制度模式
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mq.go 3.6 KiB

3 weeks ago
3 weeks ago
2 weeks ago
5 days ago
3 weeks ago
5 days ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. package md
  2. const EggEnergyExchange = "egg.energy"
  3. const IMEggEnergyExchange = "im.egg.energy"
  4. const (
  5. EggEnergyRoutKeyForStarLevelDividend = "star_level_dividend" // 星级分红
  6. EggEnergyRoutKeyForSettlementPublicGiveActivityCoin = "settlement_public_give_activity_coin" // 计算观看激励视屏得到活跃积分
  7. EggEnergyRoutKeyForStartExchangeGreenEnergyToPerson = "start_exchange_egg_energy_to_person" // 开始兑换个人蛋蛋能量
  8. EggEnergyRoutKeyForAutoExchangeGreenEnergyToPerson = "auto_exchange_egg_energy_to_person" // 自动兑换个人蛋蛋能量
  9. EggEnergyRoutKeyForStartExchangeGreenEnergyToTeam = "start_exchange_egg_energy_to_team" // 开始兑换团队蛋蛋能量
  10. EggEnergyRoutKeyForAutoExchangeGreenEnergyToTeam = "auto_exchange_egg_energy_to_team" // 自动兑换团队蛋蛋能量
  11. EggEnergyRoutKeyForEggEnergyFundData = "fund_data" // 资金汇入
  12. EggEnergyRoutKeyForPlatformRevenueData = "platform_revenue_data" // 平台收入
  13. EggEnergyRoutKeyForDealUserVirtualCoinData = "deal_user_virtual_coin" // 处理给用户虚拟币积分
  14. IMEggEnergyRoutKeyForBatchSendMessageData = "batch_send_message_data" // 批量发送信息
  15. )
  16. type EggEnergyStructForSignIn struct {
  17. MasterId string `json:"master_id"`
  18. Uid int `json:"uid"`
  19. Id int64 `json:"id"`
  20. EndTime string `json:"end_time"`
  21. }
  22. type UpdateEggEnergyStructForSignInRecords struct {
  23. Id int64 `json:"id"`
  24. Uid int `json:"uid"`
  25. }
  26. type EggEnergyStructForStarLevelDividends struct {
  27. Uid int64 `json:"uid"`
  28. SignDividend float64 `json:"sign_dividend"`
  29. }
  30. type EggEnergyStructForStartExchangeGreenEnergy struct {
  31. Uid int64 `json:"uid"`
  32. Amount string `json:"amount"`
  33. PointCoinId int `json:"point_coin_id"`
  34. EnergyCoinId int `json:"energy_coin_id"`
  35. AutoExchangeNumsAmount string `json:"auto_exchange_nums_amount"`
  36. StartExchangeTime string `json:"start_exchange_time"` //发起兑换时间
  37. EndExchangeTime string `json:"end_exchange_time"` //截止兑换时间
  38. }
  39. type EggEnergyStructForAutoExchangeGreenEnergy struct {
  40. Uid int64 `json:"uid"`
  41. EnergyCoinId int `json:"energy_coin_id"`
  42. AutoExchangeNumsAmount string `json:"auto_exchange_nums_amount"`
  43. StartExchangeTime string `json:"start_exchange_time"` //发起兑换时间
  44. EndExchangeTime string `json:"end_exchange_time"` //截止兑换时间
  45. }
  46. type EggEnergyStructForPlatformRevenueData struct {
  47. ID int `json:"id"`
  48. Amount string `json:"amount"` // 资金汇入处理金额
  49. }
  50. type EggEnergyStructForEggEnergyFundData struct {
  51. ID int `json:"id"`
  52. Amount string `json:"amount"` // 平台收入处理金额
  53. }
  54. type IMEggEnergyStructForBatchSendMessageData struct {
  55. ReceiverType int `json:"receiver_type"` // 接受者类型 1:用户 2:群组
  56. MessageType int `json:"message_type"` // 消息类型(0未知 1文本 2表情 3语音消息 4图片 5文件 6地理位置 7指令推送 8自定义 9撤回消息 10红包消息)
  57. SendId int64 `json:"send_id"` // 发送者 id
  58. ReceiveIMId int64 `json:"receive_id"` // 接受者IM id
  59. Content string `json:"content"` // 消息内容
  60. }
  61. type EggEnergyStructForDealUserVirtualCoinData struct {
  62. Kind string `json:"kind"`
  63. Title string `json:"title"`
  64. TransferType int `json:"transfer_type"`
  65. CoinId int `json:"coin_id"`
  66. Uid int64 `json:"uid"`
  67. Amount float64 `json:"amount"`
  68. }