111
This commit is contained in:
parent
6a69688928
commit
5d4241ec98
@ -72,10 +72,14 @@ func (r *QuestionService) GetGuessUserLIkeList(userId int64) (m []*model.Questio
|
|||||||
maps := make(map[string]interface{})
|
maps := make(map[string]interface{})
|
||||||
maps["question_status"] = 1
|
maps["question_status"] = 1
|
||||||
maps["is_hide"] = 0
|
maps["is_hide"] = 0
|
||||||
questions, err = questionDao.GetQuestionListRand(maps, limit)
|
results, err := questionDao.GetQuestionListRand(maps, limit)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for _, result := range results {
|
||||||
|
questions = append(questions, result)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return questions, nil
|
return questions, nil
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user