feat: paginate/search words and improve review flow

This commit is contained in:
2026-02-27 13:15:37 +08:00
parent 906c5c37ba
commit a62c2a3aa1
6 changed files with 116 additions and 28 deletions

View File

@@ -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))
}
// 获取记忆统计