feat: 音色管理

This commit is contained in:
Blizzard
2026-04-28 10:16:23 +08:00
parent 5f4f739f16
commit 141424878c
11 changed files with 1148 additions and 387 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ type CategoryService struct{}
// GetCategoryList 获取分类列表
func (s *CategoryService) GetCategoryList(info radioReq.GetCategoryList) ([]radio.RadioCategory, int64, error) {
db := global.DB.Model(&radio.RadioCategory{})
db := global.DB.Model(&radio.RadioCategory{}).Where("status = ?", 1)
var list []radio.RadioCategory
var total int64
@@ -50,7 +50,7 @@ func (s *CategoryService) GetCategoryTree() ([]radio.RadioCategory, error) {
func (s *CategoryService) GetAllCategory() ([]radio.RadioCategory, error) {
var res []radio.RadioCategory
err := global.DB.Find(&res).Error
err := global.DB.Where("status = ?", 1).Find(&res).Error
return res, err
}