蛋蛋星球-制度模式
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.2 KiB

3 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. IMEggEnergyRoutKeyForBatchSendMessageData = "batch_send_message_data" // 批量发送信息
  14. )
  15. type EggEnergyStructForSignIn struct {
  16. MasterId string `json:"master_id"`
  17. Uid int `json:"uid"`
  18. Id int64 `json:"id"`
  19. EndTime string `json:"end_time"`
  20. }
  21. type UpdateEggEnergyStructForSignInRecords struct {
  22. Id int64 `json:"id"`
  23. Uid int `json:"uid"`
  24. }
  25. type EggEnergyStructForStarLevelDividends struct {
  26. Uid int64 `json:"uid"`
  27. SignDividend float64 `json:"sign_dividend"`
  28. }
  29. type EggEnergyStructForStartExchangeGreenEnergy struct {
  30. Uid int64 `json:"uid"`
  31. Amount string `json:"amount"`
  32. PointCoinId int `json:"point_coin_id"`
  33. EnergyCoinId int `json:"energy_coin_id"`
  34. AutoExchangeNumsAmount string `json:"auto_exchange_nums_amount"`
  35. StartExchangeTime string `json:"start_exchange_time"` //发起兑换时间
  36. EndExchangeTime string `json:"end_exchange_time"` //截止兑换时间
  37. }
  38. type EggEnergyStructForAutoExchangeGreenEnergy struct {
  39. Uid int64 `json:"uid"`
  40. EnergyCoinId int `json:"energy_coin_id"`
  41. AutoExchangeNumsAmount string `json:"auto_exchange_nums_amount"`
  42. StartExchangeTime string `json:"start_exchange_time"` //发起兑换时间
  43. EndExchangeTime string `json:"end_exchange_time"` //截止兑换时间
  44. }
  45. type EggEnergyStructForPlatformRevenueData struct {
  46. ID int `json:"id"`
  47. Amount string `json:"amount"` // 资金汇入处理金额
  48. }
  49. type EggEnergyStructForEggEnergyFundData struct {
  50. ID int `json:"id"`
  51. Amount string `json:"amount"` // 平台收入处理金额
  52. }
  53. type IMEggEnergyStructForBatchSendMessageData struct {
  54. ReceiverType int `json:"receiver_type"` // 接受者类型 1:用户 2:群组
  55. MessageType int `json:"message_type"` // 消息类型(0未知 1文本 2表情 3语音消息 4图片 5文件 6地理位置 7指令推送 8自定义 9撤回消息 10红包消息)
  56. SendId int64 `json:"send_id"` // 发送者 id
  57. ReceiveIMId int64 `json:"receive_id"` // 接受者IM id
  58. Content string `json:"content"` // 消息内容
  59. }