feat: 订阅列表和免费列表
This commit is contained in:
@@ -41,7 +41,7 @@ func (s *InteractionService) AddHistory(userId string, req radioReq.AddHistory)
|
||||
|
||||
// GetHistoryList 获取收听历史列表
|
||||
func (s *InteractionService) GetHistoryList(userId string, info radioReq.GetHistoryList) ([]radio.RadioHistory, int64, error) {
|
||||
db := global.DB.Model(&radio.RadioHistory{}).Where("user_id = ?", userId)
|
||||
db := global.DB.Model(&radio.RadioHistory{}).Where("user_id = ?", userId).Preload("RadioProgram")
|
||||
var list []radio.RadioHistory
|
||||
var total int64
|
||||
|
||||
|
||||
Reference in New Issue
Block a user