feat: 音色管理
This commit is contained in:
@@ -15,7 +15,7 @@ import (
|
||||
type ChannelService struct{}
|
||||
|
||||
func (s *ChannelService) GetFreeChannelList(req common.PageInfo) ([]radio.RadioChannel, int64, error) {
|
||||
db := global.DB.Model(&radio.RadioChannel{}).Where("is_free = 1")
|
||||
db := global.DB.Model(&radio.RadioChannel{}).Where("is_free = 1").Where("status = ?", 1)
|
||||
var list []radio.RadioChannel
|
||||
var total int64
|
||||
err := db.Count(&total).Error
|
||||
@@ -33,7 +33,7 @@ func (s *ChannelService) GetFreeChannelList(req common.PageInfo) ([]radio.RadioC
|
||||
|
||||
// GetChannelList 获取频道列表
|
||||
func (s *ChannelService) GetChannelList(userId string, info radioReq.GetChannelList) ([]radio.RadioChannel, int64, error) {
|
||||
db := global.DB.Model(&radio.RadioChannel{})
|
||||
db := global.DB.Model(&radio.RadioChannel{}).Where("status = ?", 1)
|
||||
var list []radio.RadioChannel
|
||||
var total int64
|
||||
|
||||
|
||||
Reference in New Issue
Block a user