feat(tester): extend ListProblems endpoint

This commit is contained in:
Vyacheslav1557 2025-03-02 13:41:24 +05:00
parent 81d7aa2366
commit 251772a049
8 changed files with 76 additions and 4 deletions

View file

@ -32,3 +32,7 @@ func (u *ProblemUseCase) ReadProblemById(ctx context.Context, id int32) (*models
func (u *ProblemUseCase) DeleteProblem(ctx context.Context, id int32) error {
return u.problemRepo.DeleteProblem(ctx, id)
}
func (u *ProblemUseCase) ListProblems(ctx context.Context, page int32, pageSize int32) ([]*models.ProblemListItem, int32, error) {
return u.problemRepo.ListProblems(ctx, page, pageSize)
}