|
@@ -7,13 +7,13 @@ import (
|
|
|
|
|
|
// GetVoiceSection 查询所有语音播报章节
|
|
|
func GetVoiceSection() (list []*VoiceSection, err error) {
|
|
|
- err = global.DEFAULT_MYSQL.Find(&list).Error
|
|
|
+ err = global.DEFAULT_MYSQL.Order("create_time").Find(&list).Error
|
|
|
return
|
|
|
}
|
|
|
|
|
|
// GetVoiceSection 查询所有语音播报章节
|
|
|
func GetVoiceVariety() (list []*VoiceSection, err error) {
|
|
|
- err = global.DEFAULT_MYSQL.Group("variety_id").Find(&list).Error
|
|
|
+ err = global.DEFAULT_MYSQL.Group("variety_id").Order("create_time").Find(&list).Error
|
|
|
return
|
|
|
}
|
|
|
|