fix(tester): extend ListProblems endpoint

This commit is contained in:
Vyacheslav1557 2025-03-02 13:38:29 +05:00
parent 81d7aa2366
commit 700cdecfc5
7 changed files with 75 additions and 3 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)
}