2024-10-09 18:55:16 +00:00
|
|
|
package problems
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
problemv1 "git.sch9.ru/new_gate/ms-tester/pkg/go/gen/proto/problem/v1"
|
|
|
|
"google.golang.org/protobuf/types/known/emptypb"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Handlers interface {
|
2024-10-13 14:01:36 +00:00
|
|
|
CreateProblem(ctx context.Context, req *problemv1.CreateProblemRequest) (*problemv1.CreateProblemResponse, error)
|
2024-10-09 18:55:16 +00:00
|
|
|
ReadProblem(ctx context.Context, req *problemv1.ReadProblemRequest) (*problemv1.ReadProblemResponse, error)
|
|
|
|
DeleteProblem(ctx context.Context, req *problemv1.DeleteProblemRequest) (*emptypb.Empty, error)
|
|
|
|
}
|