ms-tester/internal/problems/pg_repository.go

14 lines
423 B
Go
Raw Normal View History

2024-10-09 18:55:16 +00:00
package problems
import (
"context"
"git.sch9.ru/new_gate/models"
)
type ProblemPostgresRepository interface {
CreateProblem(ctx context.Context, problem *models.Problem, testGroupData []models.TestGroupData) (int32, error)
ReadProblemById(ctx context.Context, id int32) (*models.Problem, error)
UpdateProblem(ctx context.Context, problem *models.Problem) error
DeleteProblem(ctx context.Context, id int32) error
}