voice_broadcast.go 1.3 KB

12345678910111213141516171819202122232425262728
  1. package voice_broadcast
  2. type VoiceBroadcast struct {
  3. BroadcastId int `gorm:"primaryKey;column:broadcast_id;type:int(11)" description:"语音ID"`
  4. BroadcastName string `description:"语音名称"`
  5. SectionId int `description:"语音分类ID"`
  6. SectionName string `description:"语音分类名称"`
  7. VarietyId int `description:"品种id"`
  8. VarietyName string `description:"品种名称"`
  9. AuthorId int `description:"作者id"`
  10. Author string `description:"作者"`
  11. ImgUrl string `description:"背景图url"`
  12. VoiceUrl string `description:"音频url"`
  13. VoicePlaySeconds string `description:"音频时长"`
  14. VoiceSize string `description:"音频大小"`
  15. CreateTime string `description:"创建时间"`
  16. ModifyTime string `description:"更新时间"`
  17. PublishState int `description:"发布状态:0-未发布 1-已发布"`
  18. PublishTime string `description:"发布时间"`
  19. PrePublishTime string `description:"预发布时间"`
  20. MsgState int `description:"消息推送状态:0-待推送 1-已推送"`
  21. MsgTime string `description:"消息推送时间"`
  22. }
  23. // TableName get sql table name.获取数据库表名
  24. func (m *VoiceBroadcast) TableName() string {
  25. return "yb_voice_broadcast"
  26. }