bangumi.go 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. package model
  2. import "encoding/json"
  3. // Bangumi struct
  4. type Bangumi struct {
  5. Actors string `json:"actors,omitempty"`
  6. Akira string `json:"akira,omitempty"`
  7. Alias string `json:"alias,omitempty"`
  8. Country string `json:"country,omitempty"`
  9. CoverImage string `json:"cover_image,omitempty"`
  10. DisplayAddress string `json:"display_address,omitempty"`
  11. DownloadAddress string `json:"download_address,omitempty"`
  12. Duration int64 `json:"duration"`
  13. Episodes []struct {
  14. Index int64 `json:"index"`
  15. PlayURL string `json:"play_url"`
  16. } `json:"episodes"`
  17. Intro string `json:"intro,omitempty"`
  18. Name string `json:"name,omitempty"`
  19. PlayCount int64 `json:"play_count"`
  20. Premieredate string `json:"premieredate,omitempty"`
  21. Season struct {
  22. ID int64 `json:"id"`
  23. Index int64 `json:"index"`
  24. Paymentstatus int64 `json:"paymentstatus"`
  25. Title string `json:"title"`
  26. } `json:"season"`
  27. Staff struct {
  28. AnimationProduction string `json:"animation_production,omitempty"`
  29. AnimationScript string `json:"animation_script,omitempty"`
  30. ArtSupervisor string `json:"art_supervisor,omitempty"`
  31. CharacterDisign string `json:"character_disign,omitempty"`
  32. ChiefContributor string `json:"chief_contributor,omitempty"`
  33. ChiefDirector string `json:"chief_director,omitempty"`
  34. ChiefExecutiveProducer string `json:"chief_executive_producer,omitempty"`
  35. ChiefProducer string `json:"chief_producer,omitempty"`
  36. ChiefProductionManager string `json:"chief_production_manager,omitempty"`
  37. ChiefScenarist string `json:"chief_scenarist,omitempty"`
  38. ColorDesign string `json:"color_design,omitempty"`
  39. Director string `json:"director,omitempty"`
  40. DocumentaryProduction string `json:"documentary_production,omitempty"`
  41. ExecutiveProducer string `json:"executive_producer,omitempty"`
  42. JointProduction string `json:"joint_production,omitempty"`
  43. Music string `json:"music,omitempty"`
  44. OriginalAutor string `json:"original_autor,omitempty"`
  45. OriginalCharacter string `json:"original_character,omitempty"`
  46. PaintingSupervisor string `json:"painting_supervisor,omitempty"`
  47. Performer string `json:"performer,omitempty"`
  48. Produce string `json:"produce,omitempty"`
  49. Producer string `json:"producer,omitempty"`
  50. Production string `json:"production,omitempty"`
  51. ProductionManager string `json:"production_manager,omitempty"`
  52. Publisher string `json:"publisher,omitempty"`
  53. Screenwriter string `json:"screenwriter,omitempty"`
  54. SeriesComposition string `json:"series_composition,omitempty"`
  55. Star string `json:"star,omitempty"`
  56. Storyboard string `json:"storyboard,omitempty"`
  57. Supervisor string `json:"supervisor,omitempty"`
  58. } `json:"staff"`
  59. Type int64 `json:"type"`
  60. }
  61. // BangumiResp .
  62. type BangumiResp struct {
  63. Code int `json:"code"`
  64. Message string `json:"message"`
  65. Result json.RawMessage `json:"result"`
  66. Total int64 `json:"total"`
  67. }
  68. // BangumiOffResp .
  69. type BangumiOffResp struct {
  70. Code int `json:"code"`
  71. Message string `json:"message"`
  72. Total int64 `json:"total"`
  73. Result []*BangumiOff `json:"result"`
  74. }
  75. // BangumiOff .
  76. type BangumiOff struct {
  77. Name string `json:"name"`
  78. Seasonid int64 `json:"seasonid"`
  79. Type int64 `json:"type"`
  80. }