voice_broadcast.go 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package response
  2. // BroadcastListResp 语音播报列表resp
  3. type BroadcastListResp struct {
  4. List []Broadcast
  5. IsVoiceAdmin bool `description:"是否为语音管理员"`
  6. }
  7. type Broadcast struct {
  8. BroadcastId int `description:"语音ID"`
  9. BroadcastName string `description:"语音名称"`
  10. SectionId int `description:"语音分类ID"`
  11. SectionName string `description:"语音分类名称"`
  12. VarietyId int `description:"品种id"`
  13. VarietyName string `description:"品种名称"`
  14. AuthorId int `description:"作者id"`
  15. Author string `description:"作者"`
  16. ImgUrl string `description:"背景图url"`
  17. VoiceUrl string `description:"音频url"`
  18. VoicePlaySeconds string `description:"音频时长"`
  19. VoiceSize string `description:"音频大小"`
  20. CreateTime string `description:"创建时间"`
  21. ModifyTime string `description:"更新时间"`
  22. IsAuthor bool `description:"是否为作者"`
  23. CouldSendMsg bool `description:"是否可推送消息"`
  24. PublishState int `description:"发布状态:0-未发布 1-已发布"`
  25. PublishTime string `description:"发布时间"`
  26. PrePublishTime string `description:"定时发布时间"`
  27. Imgs []string `description:"图片"`
  28. }
  29. type VarietyList struct {
  30. VarietyId int
  31. VarietyName string
  32. Children []SectionList
  33. }
  34. type SectionList struct {
  35. ImgUrl string
  36. SectionId int
  37. SectionName string
  38. Status int
  39. }
  40. type BroadcastListStatusCount struct {
  41. Unpublished int `description:"未发布"`
  42. Published int `description:"已发布"`
  43. All int `description:"全部"`
  44. }