feat(tester): add UpdateContest endpoint

This commit is contained in:
Vyacheslav1557 2025-03-07 17:04:19 +05:00
parent 2bc625363d
commit e1720e7f82
8 changed files with 45 additions and 1 deletions

View file

@ -57,3 +57,7 @@ func (uc *ContestUseCase) ListContests(ctx context.Context, page int32, pageSize
func (uc *ContestUseCase) ListParticipants(ctx context.Context, contestId int32, page int32, pageSize int32) ([]*models.ParticipantsListItem, int32, error) {
return uc.contestRepo.ListParticipants(ctx, contestId, page, pageSize)
}
func (uc *ContestUseCase) UpdateContest(ctx context.Context, id int32, contestUpdate models.ContestUpdate) error {
return uc.contestRepo.UpdateContest(ctx, id, contestUpdate)
}