dyjx.go 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. package models
  2. type DyJieXiInput struct {
  3. Url string `json:"url"` //短视频url
  4. }
  5. type DyJieXiOutput struct {
  6. OutputBase
  7. Data DyJieXiData `json:"data"`
  8. }
  9. type DyJieXiData struct {
  10. VideoUrl string `json:"videoUrl"` //无水印url
  11. AudioUrl string `json:"audioUrl"` //音频url
  12. VideoPic string `json:"videoPic"` //文案
  13. Desc string `json:"desc"` //封面
  14. }
  15. type DyJieXi struct {
  16. ItemList []ItemList `json:"item_list"`
  17. Extra Extra `json:"extra"`
  18. StatusCode int `json:"status_code"`
  19. }
  20. type CoverHd struct {
  21. URI string `json:"uri"`
  22. URLList []string `json:"url_list"`
  23. }
  24. type CoverLarge struct {
  25. URLList []string `json:"url_list"`
  26. URI string `json:"uri"`
  27. }
  28. type CoverMedium struct {
  29. URI string `json:"uri"`
  30. URLList []string `json:"url_list"`
  31. }
  32. type CoverThumb struct {
  33. URI string `json:"uri"`
  34. URLList []string `json:"url_list"`
  35. }
  36. type PlayURL struct {
  37. URI string `json:"uri"`
  38. URLList []string `json:"url_list"`
  39. }
  40. type Music struct {
  41. Title string `json:"title"`
  42. Author string `json:"author"`
  43. CoverHd CoverHd `json:"cover_hd"`
  44. Duration int `json:"duration"`
  45. Position interface{} `json:"position"`
  46. ID int64 `json:"id"`
  47. CoverLarge CoverLarge `json:"cover_large"`
  48. CoverMedium CoverMedium `json:"cover_medium"`
  49. CoverThumb CoverThumb `json:"cover_thumb"`
  50. PlayURL PlayURL `json:"play_url"`
  51. Status int `json:"status"`
  52. Mid string `json:"mid"`
  53. }
  54. type DynamicCover struct {
  55. URI string `json:"uri"`
  56. URLList []string `json:"url_list"`
  57. }
  58. type OriginCover struct {
  59. URI string `json:"uri"`
  60. URLList []string `json:"url_list"`
  61. }
  62. type PlayAddr struct {
  63. URI string `json:"uri"`
  64. URLList []string `json:"url_list"`
  65. }
  66. type Cover struct {
  67. URI string `json:"uri"`
  68. URLList []string `json:"url_list"`
  69. }
  70. type Video struct {
  71. Duration int `json:"duration"`
  72. Height int `json:"height"`
  73. DynamicCover DynamicCover `json:"dynamic_cover"`
  74. OriginCover OriginCover `json:"origin_cover"`
  75. Ratio string `json:"ratio"`
  76. HasWatermark bool `json:"has_watermark"`
  77. PlayAddr PlayAddr `json:"play_addr"`
  78. Cover Cover `json:"cover"`
  79. Width int `json:"width"`
  80. BitRate interface{} `json:"bit_rate"`
  81. Vid string `json:"vid"`
  82. }
  83. type Statistics struct {
  84. AwemeID string `json:"aweme_id"`
  85. CommentCount int `json:"comment_count"`
  86. DiggCount int `json:"digg_count"`
  87. PlayCount int `json:"play_count"`
  88. }
  89. type AvatarLarger struct {
  90. URI string `json:"uri"`
  91. URLList []string `json:"url_list"`
  92. }
  93. type AvatarThumb struct {
  94. URI string `json:"uri"`
  95. URLList []string `json:"url_list"`
  96. }
  97. type AvatarMedium struct {
  98. URI string `json:"uri"`
  99. URLList []string `json:"url_list"`
  100. }
  101. type Author struct {
  102. UID string `json:"uid"`
  103. ShortID string `json:"short_id"`
  104. Nickname string `json:"nickname"`
  105. AvatarLarger AvatarLarger `json:"avatar_larger"`
  106. AvatarThumb AvatarThumb `json:"avatar_thumb"`
  107. UniqueID string `json:"unique_id"`
  108. FollowersDetail interface{} `json:"followers_detail"`
  109. Geofencing interface{} `json:"geofencing"`
  110. PolicyVersion interface{} `json:"policy_version"`
  111. Signature string `json:"signature"`
  112. AvatarMedium AvatarMedium `json:"avatar_medium"`
  113. PlatformSyncInfo interface{} `json:"platform_sync_info"`
  114. TypeLabel interface{} `json:"type_label"`
  115. }
  116. type TextExtra struct {
  117. HashtagID int64 `json:"hashtag_id"`
  118. Start int `json:"start"`
  119. End int `json:"end"`
  120. Type int `json:"type"`
  121. HashtagName string `json:"hashtag_name"`
  122. }
  123. type ChaList struct {
  124. ChaName string `json:"cha_name"`
  125. UserCount int `json:"user_count"`
  126. Type int `json:"type"`
  127. IsCommerce bool `json:"is_commerce"`
  128. Cid string `json:"cid"`
  129. Desc string `json:"desc"`
  130. ConnectMusic interface{} `json:"connect_music"`
  131. ViewCount int `json:"view_count"`
  132. HashTagProfile string `json:"hash_tag_profile"`
  133. }
  134. type ShareInfo struct {
  135. ShareWeiboDesc string `json:"share_weibo_desc"`
  136. ShareDesc string `json:"share_desc"`
  137. ShareTitle string `json:"share_title"`
  138. }
  139. type RiskInfos struct {
  140. Type int `json:"type"`
  141. Content string `json:"content"`
  142. Warn bool `json:"warn"`
  143. }
  144. type ItemList struct {
  145. Desc string `json:"desc"`
  146. CreateTime int `json:"create_time"`
  147. IsLiveReplay bool `json:"is_live_replay"`
  148. Music Music `json:"music"`
  149. GroupID int64 `json:"group_id"`
  150. Images interface{} `json:"images"`
  151. Video Video `json:"video"`
  152. Duration int `json:"duration"`
  153. ShareURL string `json:"share_url"`
  154. VideoLabels interface{} `json:"video_labels"`
  155. Statistics Statistics `json:"statistics"`
  156. ImageInfos interface{} `json:"image_infos"`
  157. VideoText interface{} `json:"video_text"`
  158. Author Author `json:"author"`
  159. TextExtra []TextExtra `json:"text_extra"`
  160. Promotions interface{} `json:"promotions"`
  161. LongVideo interface{} `json:"long_video"`
  162. ChaList []ChaList `json:"cha_list"`
  163. ShareInfo ShareInfo `json:"share_info"`
  164. CommentList interface{} `json:"comment_list"`
  165. AuthorUserID int64 `json:"author_user_id"`
  166. IsPreview int `json:"is_preview"`
  167. AwemeID string `json:"aweme_id"`
  168. AwemeType int `json:"aweme_type"`
  169. RiskInfos RiskInfos `json:"risk_infos"`
  170. Geofencing interface{} `json:"geofencing"`
  171. LabelTopText interface{} `json:"label_top_text"`
  172. ForwardID string `json:"forward_id"`
  173. }
  174. type Extra struct {
  175. Now int64 `json:"now"`
  176. Logid string `json:"logid"`
  177. }