ms-tester/internal/problems/usecase.go

18 lines
556 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 ProblemUseCase interface {
CanCreateProblem(ctx context.Context) error
CanReadProblemById(ctx context.Context) error
CanUpdateProblem(ctx context.Context) error
CanDeleteProblem(ctx context.Context) error
CreateProblem(ctx context.Context, problem *models.Problem) (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
}