voice_broadcast.go 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. IsAuthor bool `description:"是否为作者"`
  22. CouldSendMsg bool `description:"是否可推送消息"`
  23. }
  24. //type SectionListResp struct {
  25. // List []VarietyList
  26. //}
  27. type VarietyList struct {
  28. VarietyId int
  29. VarietyName string
  30. Children []SectionList
  31. }
  32. type SectionList struct {
  33. ImgUrl string
  34. SectionId int
  35. SectionName string
  36. Status int
  37. }