special_award.go 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. package model
  2. import (
  3. "go-common/library/time"
  4. )
  5. // SpecialAward special award info
  6. type SpecialAward struct {
  7. AwardID int64 `json:"award_id"`
  8. AwardName string `json:"award_name"`
  9. Divisions []string `json:"divisions"`
  10. CycleStart time.Time `json:"cycle_start"`
  11. CycleEnd time.Time `json:"cycle_end"`
  12. AnnounceDate time.Time `json:"announce_date"`
  13. Duration int64 `json:"duration"`
  14. OpenStatus int `json:"open_status"`
  15. }
  16. // Resource award resource
  17. type Resource struct {
  18. ResourceType int
  19. ResourceIndex int
  20. Content string
  21. }
  22. // WinningRecord winning record
  23. type WinningRecord struct {
  24. AwardID int64 `json:"award_id"`
  25. AwardName string `json:"award_name"`
  26. PrizeID int64 `json:"prize_id"`
  27. State int `json:"state"`
  28. }
  29. // Poster poster
  30. type Poster struct {
  31. AwardName string `json:"award_name"`
  32. Nickname string `json:"nickname"`
  33. Face string `json:"face"`
  34. PrizeName string `json:"prize_name"`
  35. Date string `json:"date"`
  36. Bonus int64 `json:"bonus"`
  37. }
  38. // SimpleSpecialAward simplify
  39. type SimpleSpecialAward struct {
  40. AwardName string `json:"award_name"`
  41. AwardID int64 `json:"award_id"`
  42. CycleStart time.Time `json:"cycle_start"`
  43. }
  44. // QA question & answer
  45. type QA struct {
  46. Question string `json:"question"`
  47. Answer string `json:"answer"`
  48. }
  49. // UpAwardState up award state
  50. type UpAwardState struct {
  51. AwardID int64 `json:"-"`
  52. AwardName string `json:"award_name"`
  53. State int `json:"state"`
  54. }
  55. // AwardUpStatus up status
  56. type AwardUpStatus struct {
  57. Joined bool `json:"joined"`
  58. Qualified bool `json:"qualified"`
  59. }