query.go 407 B

123456789101112131415
  1. package voice_section
  2. import "hongze/hongze_yb/global"
  3. // GetVoiceSection 查询所有语音播报章节
  4. func GetVoiceSection() (list []*VoiceSection, err error) {
  5. err = global.DEFAULT_MYSQL.Find(&list).Error
  6. return
  7. }
  8. // GetVoiceSection 查询所有语音播报章节
  9. func GetVoiceVariety() (list []*VoiceSection, err error) {
  10. err = global.DEFAULT_MYSQL.Group("variety_id").Find(&list).Error
  11. return
  12. }