ms-tester/internal/contests/pg_repository.go
Vyacheslav1557 d62ae666d5 refactor:
2024-10-09 23:55:16 +05:00

14 lines
377 B
Go

package contests
import (
"context"
"git.sch9.ru/new_gate/models"
)
type ContestRepository interface {
CreateContest(ctx context.Context, contest *models.Contest) (int32, error)
ReadContestById(ctx context.Context, id int32) (*models.Contest, error)
UpdateContest(ctx context.Context, contest *models.Contest) error
DeleteContest(ctx context.Context, id int32) error
}