generated from VLADIMIR/template
add questions
This commit is contained in:
@@ -50,12 +50,16 @@ const (
|
||||
EveningDetectiveServer_AddScenarioPlace_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/AddScenarioPlace"
|
||||
EveningDetectiveServer_UpdateScenarioPlace_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/UpdateScenarioPlace"
|
||||
EveningDetectiveServer_DeleteScenarioPlace_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/DeleteScenarioPlace"
|
||||
EveningDetectiveServer_AddScenarioQuestion_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/AddScenarioQuestion"
|
||||
EveningDetectiveServer_UpdateScenarioQuestion_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/UpdateScenarioQuestion"
|
||||
EveningDetectiveServer_DeleteScenarioQuestion_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/DeleteScenarioQuestion"
|
||||
EveningDetectiveServer_UpdateScenarioIntro_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/UpdateScenarioIntro"
|
||||
EveningDetectiveServer_DownloadScenarioArchive_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/DownloadScenarioArchive"
|
||||
EveningDetectiveServer_UploadScenarioArchive_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/UploadScenarioArchive"
|
||||
EveningDetectiveServer_AddGame_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/AddGame"
|
||||
EveningDetectiveServer_GetGames_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetGames"
|
||||
EveningDetectiveServer_GetGame_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetGame"
|
||||
EveningDetectiveServer_GetGameAnswers_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetGameAnswers"
|
||||
EveningDetectiveServer_UpdateGame_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/UpdateGame"
|
||||
EveningDetectiveServer_StartGame_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/StartGame"
|
||||
EveningDetectiveServer_PauseGame_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/PauseGame"
|
||||
@@ -70,6 +74,9 @@ const (
|
||||
EveningDetectiveServer_GetTeamStory_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetTeamStory"
|
||||
EveningDetectiveServer_AddTeamAction_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/AddTeamAction"
|
||||
EveningDetectiveServer_DeleteLastTeamAction_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/DeleteLastTeamAction"
|
||||
EveningDetectiveServer_GetTeamAnswers_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetTeamAnswers"
|
||||
EveningDetectiveServer_SubmitTeamAnswers_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/SubmitTeamAnswers"
|
||||
EveningDetectiveServer_SetTeamAnswerScore_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/SetTeamAnswerScore"
|
||||
)
|
||||
|
||||
// EveningDetectiveServerClient is the client API for EveningDetectiveServer service.
|
||||
@@ -106,12 +113,16 @@ type EveningDetectiveServerClient interface {
|
||||
AddScenarioPlace(ctx context.Context, in *AddScenarioPlaceReq, opts ...grpc.CallOption) (*AddScenarioPlaceRsp, error)
|
||||
UpdateScenarioPlace(ctx context.Context, in *UpdateScenarioPlaceReq, opts ...grpc.CallOption) (*UpdateScenarioPlaceRsp, error)
|
||||
DeleteScenarioPlace(ctx context.Context, in *DeleteScenarioPlaceReq, opts ...grpc.CallOption) (*DeleteScenarioPlaceRsp, error)
|
||||
AddScenarioQuestion(ctx context.Context, in *AddScenarioQuestionReq, opts ...grpc.CallOption) (*AddScenarioQuestionRsp, error)
|
||||
UpdateScenarioQuestion(ctx context.Context, in *UpdateScenarioQuestionReq, opts ...grpc.CallOption) (*UpdateScenarioQuestionRsp, error)
|
||||
DeleteScenarioQuestion(ctx context.Context, in *DeleteScenarioQuestionReq, opts ...grpc.CallOption) (*DeleteScenarioQuestionRsp, error)
|
||||
UpdateScenarioIntro(ctx context.Context, in *UpdateScenarioIntroReq, opts ...grpc.CallOption) (*UpdateScenarioIntroRsp, error)
|
||||
DownloadScenarioArchive(ctx context.Context, in *DownloadScenarioArchiveReq, opts ...grpc.CallOption) (*httpbody.HttpBody, error)
|
||||
UploadScenarioArchive(ctx context.Context, in *httpbody.HttpBody, opts ...grpc.CallOption) (*UploadScenarioArchiveRsp, error)
|
||||
AddGame(ctx context.Context, in *AddGameReq, opts ...grpc.CallOption) (*AddGameRsp, error)
|
||||
GetGames(ctx context.Context, in *GetGamesReq, opts ...grpc.CallOption) (*GetGamesRsp, error)
|
||||
GetGame(ctx context.Context, in *GetGameReq, opts ...grpc.CallOption) (*GetGameRsp, error)
|
||||
GetGameAnswers(ctx context.Context, in *GetGameAnswersReq, opts ...grpc.CallOption) (*GetGameAnswersRsp, error)
|
||||
UpdateGame(ctx context.Context, in *UpdateGameReq, opts ...grpc.CallOption) (*UpdateGameRsp, error)
|
||||
StartGame(ctx context.Context, in *StartGameReq, opts ...grpc.CallOption) (*StartGameRsp, error)
|
||||
PauseGame(ctx context.Context, in *PauseGameReq, opts ...grpc.CallOption) (*PauseGameRsp, error)
|
||||
@@ -126,6 +137,9 @@ type EveningDetectiveServerClient interface {
|
||||
GetTeamStory(ctx context.Context, in *GetTeamStoryReq, opts ...grpc.CallOption) (*GetTeamStoryRsp, error)
|
||||
AddTeamAction(ctx context.Context, in *AddTeamActionReq, opts ...grpc.CallOption) (*AddTeamActionRsp, error)
|
||||
DeleteLastTeamAction(ctx context.Context, in *DeleteLastTeamActionReq, opts ...grpc.CallOption) (*DeleteLastTeamActionRsp, error)
|
||||
GetTeamAnswers(ctx context.Context, in *GetTeamAnswersReq, opts ...grpc.CallOption) (*GetTeamAnswersRsp, error)
|
||||
SubmitTeamAnswers(ctx context.Context, in *SubmitTeamAnswersReq, opts ...grpc.CallOption) (*SubmitTeamAnswersRsp, error)
|
||||
SetTeamAnswerScore(ctx context.Context, in *SetTeamAnswerScoreReq, opts ...grpc.CallOption) (*SetTeamAnswerScoreRsp, error)
|
||||
}
|
||||
|
||||
type eveningDetectiveServerClient struct {
|
||||
@@ -436,6 +450,36 @@ func (c *eveningDetectiveServerClient) DeleteScenarioPlace(ctx context.Context,
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveServerClient) AddScenarioQuestion(ctx context.Context, in *AddScenarioQuestionReq, opts ...grpc.CallOption) (*AddScenarioQuestionRsp, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(AddScenarioQuestionRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetectiveServer_AddScenarioQuestion_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveServerClient) UpdateScenarioQuestion(ctx context.Context, in *UpdateScenarioQuestionReq, opts ...grpc.CallOption) (*UpdateScenarioQuestionRsp, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(UpdateScenarioQuestionRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetectiveServer_UpdateScenarioQuestion_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveServerClient) DeleteScenarioQuestion(ctx context.Context, in *DeleteScenarioQuestionReq, opts ...grpc.CallOption) (*DeleteScenarioQuestionRsp, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(DeleteScenarioQuestionRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetectiveServer_DeleteScenarioQuestion_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveServerClient) UpdateScenarioIntro(ctx context.Context, in *UpdateScenarioIntroReq, opts ...grpc.CallOption) (*UpdateScenarioIntroRsp, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(UpdateScenarioIntroRsp)
|
||||
@@ -496,6 +540,16 @@ func (c *eveningDetectiveServerClient) GetGame(ctx context.Context, in *GetGameR
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveServerClient) GetGameAnswers(ctx context.Context, in *GetGameAnswersReq, opts ...grpc.CallOption) (*GetGameAnswersRsp, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GetGameAnswersRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetectiveServer_GetGameAnswers_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveServerClient) UpdateGame(ctx context.Context, in *UpdateGameReq, opts ...grpc.CallOption) (*UpdateGameRsp, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(UpdateGameRsp)
|
||||
@@ -636,6 +690,36 @@ func (c *eveningDetectiveServerClient) DeleteLastTeamAction(ctx context.Context,
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveServerClient) GetTeamAnswers(ctx context.Context, in *GetTeamAnswersReq, opts ...grpc.CallOption) (*GetTeamAnswersRsp, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GetTeamAnswersRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetectiveServer_GetTeamAnswers_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveServerClient) SubmitTeamAnswers(ctx context.Context, in *SubmitTeamAnswersReq, opts ...grpc.CallOption) (*SubmitTeamAnswersRsp, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(SubmitTeamAnswersRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetectiveServer_SubmitTeamAnswers_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveServerClient) SetTeamAnswerScore(ctx context.Context, in *SetTeamAnswerScoreReq, opts ...grpc.CallOption) (*SetTeamAnswerScoreRsp, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(SetTeamAnswerScoreRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetectiveServer_SetTeamAnswerScore_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// EveningDetectiveServerServer is the server API for EveningDetectiveServer service.
|
||||
// All implementations must embed UnimplementedEveningDetectiveServerServer
|
||||
// for forward compatibility.
|
||||
@@ -670,12 +754,16 @@ type EveningDetectiveServerServer interface {
|
||||
AddScenarioPlace(context.Context, *AddScenarioPlaceReq) (*AddScenarioPlaceRsp, error)
|
||||
UpdateScenarioPlace(context.Context, *UpdateScenarioPlaceReq) (*UpdateScenarioPlaceRsp, error)
|
||||
DeleteScenarioPlace(context.Context, *DeleteScenarioPlaceReq) (*DeleteScenarioPlaceRsp, error)
|
||||
AddScenarioQuestion(context.Context, *AddScenarioQuestionReq) (*AddScenarioQuestionRsp, error)
|
||||
UpdateScenarioQuestion(context.Context, *UpdateScenarioQuestionReq) (*UpdateScenarioQuestionRsp, error)
|
||||
DeleteScenarioQuestion(context.Context, *DeleteScenarioQuestionReq) (*DeleteScenarioQuestionRsp, error)
|
||||
UpdateScenarioIntro(context.Context, *UpdateScenarioIntroReq) (*UpdateScenarioIntroRsp, error)
|
||||
DownloadScenarioArchive(context.Context, *DownloadScenarioArchiveReq) (*httpbody.HttpBody, error)
|
||||
UploadScenarioArchive(context.Context, *httpbody.HttpBody) (*UploadScenarioArchiveRsp, error)
|
||||
AddGame(context.Context, *AddGameReq) (*AddGameRsp, error)
|
||||
GetGames(context.Context, *GetGamesReq) (*GetGamesRsp, error)
|
||||
GetGame(context.Context, *GetGameReq) (*GetGameRsp, error)
|
||||
GetGameAnswers(context.Context, *GetGameAnswersReq) (*GetGameAnswersRsp, error)
|
||||
UpdateGame(context.Context, *UpdateGameReq) (*UpdateGameRsp, error)
|
||||
StartGame(context.Context, *StartGameReq) (*StartGameRsp, error)
|
||||
PauseGame(context.Context, *PauseGameReq) (*PauseGameRsp, error)
|
||||
@@ -690,6 +778,9 @@ type EveningDetectiveServerServer interface {
|
||||
GetTeamStory(context.Context, *GetTeamStoryReq) (*GetTeamStoryRsp, error)
|
||||
AddTeamAction(context.Context, *AddTeamActionReq) (*AddTeamActionRsp, error)
|
||||
DeleteLastTeamAction(context.Context, *DeleteLastTeamActionReq) (*DeleteLastTeamActionRsp, error)
|
||||
GetTeamAnswers(context.Context, *GetTeamAnswersReq) (*GetTeamAnswersRsp, error)
|
||||
SubmitTeamAnswers(context.Context, *SubmitTeamAnswersReq) (*SubmitTeamAnswersRsp, error)
|
||||
SetTeamAnswerScore(context.Context, *SetTeamAnswerScoreReq) (*SetTeamAnswerScoreRsp, error)
|
||||
mustEmbedUnimplementedEveningDetectiveServerServer()
|
||||
}
|
||||
|
||||
@@ -790,6 +881,15 @@ func (UnimplementedEveningDetectiveServerServer) UpdateScenarioPlace(context.Con
|
||||
func (UnimplementedEveningDetectiveServerServer) DeleteScenarioPlace(context.Context, *DeleteScenarioPlaceReq) (*DeleteScenarioPlaceRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method DeleteScenarioPlace not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) AddScenarioQuestion(context.Context, *AddScenarioQuestionReq) (*AddScenarioQuestionRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method AddScenarioQuestion not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) UpdateScenarioQuestion(context.Context, *UpdateScenarioQuestionReq) (*UpdateScenarioQuestionRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UpdateScenarioQuestion not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) DeleteScenarioQuestion(context.Context, *DeleteScenarioQuestionReq) (*DeleteScenarioQuestionRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method DeleteScenarioQuestion not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) UpdateScenarioIntro(context.Context, *UpdateScenarioIntroReq) (*UpdateScenarioIntroRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UpdateScenarioIntro not implemented")
|
||||
}
|
||||
@@ -808,6 +908,9 @@ func (UnimplementedEveningDetectiveServerServer) GetGames(context.Context, *GetG
|
||||
func (UnimplementedEveningDetectiveServerServer) GetGame(context.Context, *GetGameReq) (*GetGameRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetGame not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) GetGameAnswers(context.Context, *GetGameAnswersReq) (*GetGameAnswersRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetGameAnswers not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) UpdateGame(context.Context, *UpdateGameReq) (*UpdateGameRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UpdateGame not implemented")
|
||||
}
|
||||
@@ -850,6 +953,15 @@ func (UnimplementedEveningDetectiveServerServer) AddTeamAction(context.Context,
|
||||
func (UnimplementedEveningDetectiveServerServer) DeleteLastTeamAction(context.Context, *DeleteLastTeamActionReq) (*DeleteLastTeamActionRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method DeleteLastTeamAction not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) GetTeamAnswers(context.Context, *GetTeamAnswersReq) (*GetTeamAnswersRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetTeamAnswers not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) SubmitTeamAnswers(context.Context, *SubmitTeamAnswersReq) (*SubmitTeamAnswersRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method SubmitTeamAnswers not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) SetTeamAnswerScore(context.Context, *SetTeamAnswerScoreReq) (*SetTeamAnswerScoreRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method SetTeamAnswerScore not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) mustEmbedUnimplementedEveningDetectiveServerServer() {
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) testEmbeddedByValue() {}
|
||||
@@ -1412,6 +1524,60 @@ func _EveningDetectiveServer_DeleteScenarioPlace_Handler(srv interface{}, ctx co
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetectiveServer_AddScenarioQuestion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(AddScenarioQuestionReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EveningDetectiveServerServer).AddScenarioQuestion(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EveningDetectiveServer_AddScenarioQuestion_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EveningDetectiveServerServer).AddScenarioQuestion(ctx, req.(*AddScenarioQuestionReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetectiveServer_UpdateScenarioQuestion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateScenarioQuestionReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EveningDetectiveServerServer).UpdateScenarioQuestion(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EveningDetectiveServer_UpdateScenarioQuestion_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EveningDetectiveServerServer).UpdateScenarioQuestion(ctx, req.(*UpdateScenarioQuestionReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetectiveServer_DeleteScenarioQuestion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteScenarioQuestionReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EveningDetectiveServerServer).DeleteScenarioQuestion(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EveningDetectiveServer_DeleteScenarioQuestion_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EveningDetectiveServerServer).DeleteScenarioQuestion(ctx, req.(*DeleteScenarioQuestionReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetectiveServer_UpdateScenarioIntro_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateScenarioIntroReq)
|
||||
if err := dec(in); err != nil {
|
||||
@@ -1520,6 +1686,24 @@ func _EveningDetectiveServer_GetGame_Handler(srv interface{}, ctx context.Contex
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetectiveServer_GetGameAnswers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetGameAnswersReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EveningDetectiveServerServer).GetGameAnswers(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EveningDetectiveServer_GetGameAnswers_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EveningDetectiveServerServer).GetGameAnswers(ctx, req.(*GetGameAnswersReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetectiveServer_UpdateGame_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateGameReq)
|
||||
if err := dec(in); err != nil {
|
||||
@@ -1772,6 +1956,60 @@ func _EveningDetectiveServer_DeleteLastTeamAction_Handler(srv interface{}, ctx c
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetectiveServer_GetTeamAnswers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetTeamAnswersReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EveningDetectiveServerServer).GetTeamAnswers(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EveningDetectiveServer_GetTeamAnswers_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EveningDetectiveServerServer).GetTeamAnswers(ctx, req.(*GetTeamAnswersReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetectiveServer_SubmitTeamAnswers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(SubmitTeamAnswersReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EveningDetectiveServerServer).SubmitTeamAnswers(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EveningDetectiveServer_SubmitTeamAnswers_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EveningDetectiveServerServer).SubmitTeamAnswers(ctx, req.(*SubmitTeamAnswersReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetectiveServer_SetTeamAnswerScore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(SetTeamAnswerScoreReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EveningDetectiveServerServer).SetTeamAnswerScore(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EveningDetectiveServer_SetTeamAnswerScore_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EveningDetectiveServerServer).SetTeamAnswerScore(ctx, req.(*SetTeamAnswerScoreReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// EveningDetectiveServer_ServiceDesc is the grpc.ServiceDesc for EveningDetectiveServer service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
@@ -1899,6 +2137,18 @@ var EveningDetectiveServer_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "DeleteScenarioPlace",
|
||||
Handler: _EveningDetectiveServer_DeleteScenarioPlace_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "AddScenarioQuestion",
|
||||
Handler: _EveningDetectiveServer_AddScenarioQuestion_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdateScenarioQuestion",
|
||||
Handler: _EveningDetectiveServer_UpdateScenarioQuestion_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "DeleteScenarioQuestion",
|
||||
Handler: _EveningDetectiveServer_DeleteScenarioQuestion_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdateScenarioIntro",
|
||||
Handler: _EveningDetectiveServer_UpdateScenarioIntro_Handler,
|
||||
@@ -1923,6 +2173,10 @@ var EveningDetectiveServer_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "GetGame",
|
||||
Handler: _EveningDetectiveServer_GetGame_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetGameAnswers",
|
||||
Handler: _EveningDetectiveServer_GetGameAnswers_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdateGame",
|
||||
Handler: _EveningDetectiveServer_UpdateGame_Handler,
|
||||
@@ -1979,6 +2233,18 @@ var EveningDetectiveServer_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "DeleteLastTeamAction",
|
||||
Handler: _EveningDetectiveServer_DeleteLastTeamAction_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetTeamAnswers",
|
||||
Handler: _EveningDetectiveServer_GetTeamAnswers_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "SubmitTeamAnswers",
|
||||
Handler: _EveningDetectiveServer_SubmitTeamAnswers_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "SetTeamAnswerScore",
|
||||
Handler: _EveningDetectiveServer_SetTeamAnswerScore_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "main.proto",
|
||||
|
||||
Reference in New Issue
Block a user