game.go 456 B

12345678910111213141516171819202122232425262728
  1. package game
  2. type Download struct {
  3. ID int64
  4. Title string
  5. Desc string
  6. Icon string
  7. Cover string
  8. URLType int
  9. URLValue string
  10. BtnTxt int
  11. ReType int
  12. ReValue string
  13. ButtonText string
  14. DoubleCover string
  15. Number int
  16. }
  17. func (d *Download) CardChange() {
  18. switch d.BtnTxt {
  19. case 0:
  20. d.ButtonText = "下载"
  21. case 1:
  22. d.ButtonText = "预约"
  23. case 2:
  24. d.ButtonText = "查看详情"
  25. }
  26. }