2024-10-09 18:55:16 +00:00
|
|
|
package contests
|
|
|
|
|
2024-10-13 14:01:36 +00:00
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
contestv1 "git.sch9.ru/new_gate/ms-tester/pkg/go/gen/proto/contest/v1"
|
|
|
|
"google.golang.org/protobuf/types/known/emptypb"
|
|
|
|
)
|
|
|
|
|
2024-10-09 18:55:16 +00:00
|
|
|
type ContestHandlers interface {
|
2024-10-13 14:01:36 +00:00
|
|
|
CreateContest(ctx context.Context, req *contestv1.CreateContestRequest) (*contestv1.CreateContestResponse, error)
|
|
|
|
ReadContest(ctx context.Context, req *contestv1.ReadContestRequest) (*contestv1.ReadContestResponse, error)
|
|
|
|
DeleteContest(ctx context.Context, req *contestv1.DeleteContestRequest) (*emptypb.Empty, error)
|
2024-11-11 11:41:51 +00:00
|
|
|
AddTask(ctx context.Context, req *contestv1.AddTaskRequest) (*contestv1.AddTaskResponse, error)
|
|
|
|
DeleteTask(ctx context.Context, req *contestv1.DeleteTaskRequest) (*emptypb.Empty, error)
|
2024-10-09 18:55:16 +00:00
|
|
|
}
|