feat: paginate/search words and improve review flow
This commit is contained in:
@@ -412,8 +412,8 @@ func (s *WordService) SubmitReviewAnswer(userID int64, req request.ReviewAnswerR
|
||||
}
|
||||
|
||||
// 获取所有单词
|
||||
func (s *WordService) GetAllWords(limit, offset int) ([]model.Word, int64, error) {
|
||||
return s.wordRepo.List(limit, offset)
|
||||
func (s *WordService) GetAllWords(limit, offset int, query string) ([]model.Word, int64, error) {
|
||||
return s.wordRepo.List(limit, offset, strings.TrimSpace(query))
|
||||
}
|
||||
|
||||
// 获取记忆统计
|
||||
|
||||
Reference in New Issue
Block a user