feat: 音色管理
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user