data.go 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. package proto
  2. import (
  3. item "bet24.com/servers/micros/item_inventory/proto"
  4. )
  5. // 支付类型,从shop拷贝
  6. const (
  7. PayType_Diamond = iota // 0=钻石
  8. PayType_RMB // 1=人民币购买
  9. PayType_Gold // 2=金币购买
  10. )
  11. const (
  12. GiftType_Nomal = iota // 0普通礼物
  13. GiftType_AudioRoom // 1语聊房专用礼物
  14. GiftType_Both // 2通用
  15. )
  16. const (
  17. AnimationType_Pic = iota
  18. AnimationType_Normal
  19. AnimationType_Global
  20. )
  21. const (
  22. UserType_Normal = iota
  23. UserType_Member
  24. )
  25. const (
  26. SendGiftRet_Failed = iota // 0赠送失败
  27. SendGiftRet_OK // 1赠送成功
  28. SendGiftRet_Charge // 2需要充值
  29. )
  30. type Gift struct {
  31. GiftId int // 礼物ID
  32. GiftType int // 礼物类型
  33. Name string // 名称
  34. Desc string `json:",omitempty"` // 描述
  35. Price float64 // 价格
  36. PayType int // 支付方式
  37. ProductId string `json:",omitempty"` // 现金支付产品ID
  38. SenderCharm int // 发送者魅力值
  39. ReceiverCharm int // 接收方魅力值
  40. Icon string `json:",omitempty"` // 图标
  41. Items []item.ItemPack // 接收者得到的物品
  42. AnimationType int // 动画类型
  43. UserType int `json:",omitempty"` // 成员类型
  44. IsBottom bool `json:",omitempty"` // 是否置底
  45. UnlockLevel int `json:",omitempty"` // 解锁等级
  46. }
  47. type UserGift struct {
  48. Rid int // 流水号
  49. Sender int // 发送方
  50. Receiver int // 接收方
  51. GiftId int // 礼物ID
  52. SendTime int // 发送时间
  53. ClaimTime int // 领取时间,0表示未领取
  54. Items string // 物品信息,防止系统表修改后变化
  55. }