data.go 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. package video
  2. import item "bet24.com/servers/micros/item_inventory/proto"
  3. const (
  4. _ = iota
  5. Video_Sign // 1=签到
  6. Video_Game_Settle // 2=游戏结算
  7. )
  8. // 视频系统数值
  9. type video struct {
  10. VideoId int //视频ID
  11. PlayTimes int //播放次数
  12. Awards []item.ItemPack //奖励
  13. }
  14. // 用户视频
  15. type userVideo struct {
  16. VideoId int //视频ID
  17. PlayTimes int //播放次数
  18. UpdateTime int //更新时间
  19. settles []settleInfo
  20. }
  21. type settleInfo struct {
  22. ReturnAmount int //返还金额(用于游戏结算返还 >0 表示待返还)
  23. TimeStamp int //时间戳
  24. GameId int //游戏ID
  25. }
  26. // 游戏结算视频
  27. type settleVideo struct {
  28. GameID int // 游戏ID
  29. LoseAmount int // 输金额
  30. MaxTimes int // 最大返还次数
  31. MaxRate int // 最大返还比率
  32. }
  33. // 游戏视频返还信息
  34. type settleVideoInfo struct {
  35. SettleId int // 结算Id
  36. GameID int // 游戏ID
  37. LoseAmount int // 输金币
  38. MaxTimes int // 最大次数
  39. SettleTimes int // 返还次数
  40. MaxAmount int // 最大金币
  41. SettleAmount int // 返还金币
  42. Crdate string // 时间
  43. TimeStamp int `json:"-"` // 时间戳
  44. }
  45. type awardRetInfo struct {
  46. RetCode int `json:"retCode"` // 操作结果
  47. Amount int `json:"amount"` // 领取金币
  48. }
  49. type settleInfo_resp struct {
  50. Success bool // 成功标识
  51. TimeStamp int // 时间戳
  52. ReturnAmount int // 总返还金币
  53. MaxTimes int // 最大次数
  54. SettleAmount int // 返还金币
  55. }