dailywheel.go 650 B

123456789101112131415161718192021222324252627
  1. package proto
  2. import (
  3. item "bet24.com/servers/micros/item_inventory/proto"
  4. )
  5. type WheelItem struct {
  6. Index int
  7. Odds int `json:",omitempty"` // 概率
  8. Prize item.ItemPack
  9. MaxCount int `json:",omitempty"` // 每天最多出多少个
  10. }
  11. type UserWheelInfo struct {
  12. Price item.ItemPack // 转盘所需道具
  13. Owned int // 当前拥有道具数量
  14. IsFree bool
  15. Items []WheelItem
  16. RefreshTaskCost item.ItemPack // 刷新任务所需道具
  17. }
  18. type WheelResult struct {
  19. Success bool
  20. ErrorMsg string
  21. Index int // 中奖项目Index
  22. Items item.ItemPack // 中奖内容
  23. }