generated from VLADIMIR/template
add game
This commit is contained in:
+15
-15
@@ -55,7 +55,7 @@ const (
|
||||
EveningDetectiveServer_UpdateTeam_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/UpdateTeam"
|
||||
EveningDetectiveServer_DeleteTeam_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/DeleteTeam"
|
||||
EveningDetectiveServer_GiveTeamApplications_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GiveTeamApplications"
|
||||
EveningDetectiveServer_GetTeamActions_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetTeamActions"
|
||||
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"
|
||||
)
|
||||
@@ -99,7 +99,7 @@ type EveningDetectiveServerClient interface {
|
||||
UpdateTeam(ctx context.Context, in *UpdateTeamReq, opts ...grpc.CallOption) (*UpdateTeamRsp, error)
|
||||
DeleteTeam(ctx context.Context, in *DeleteTeamReq, opts ...grpc.CallOption) (*DeleteTeamRsp, error)
|
||||
GiveTeamApplications(ctx context.Context, in *GiveTeamApplicationsReq, opts ...grpc.CallOption) (*GiveTeamApplicationsRsp, error)
|
||||
GetTeamActions(ctx context.Context, in *GetTeamActionsReq, opts ...grpc.CallOption) (*GetTeamActionsRsp, error)
|
||||
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)
|
||||
}
|
||||
@@ -462,10 +462,10 @@ func (c *eveningDetectiveServerClient) GiveTeamApplications(ctx context.Context,
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveServerClient) GetTeamActions(ctx context.Context, in *GetTeamActionsReq, opts ...grpc.CallOption) (*GetTeamActionsRsp, error) {
|
||||
func (c *eveningDetectiveServerClient) GetTeamStory(ctx context.Context, in *GetTeamStoryReq, opts ...grpc.CallOption) (*GetTeamStoryRsp, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GetTeamActionsRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetectiveServer_GetTeamActions_FullMethodName, in, out, cOpts...)
|
||||
out := new(GetTeamStoryRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetectiveServer_GetTeamStory_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -531,7 +531,7 @@ type EveningDetectiveServerServer interface {
|
||||
UpdateTeam(context.Context, *UpdateTeamReq) (*UpdateTeamRsp, error)
|
||||
DeleteTeam(context.Context, *DeleteTeamReq) (*DeleteTeamRsp, error)
|
||||
GiveTeamApplications(context.Context, *GiveTeamApplicationsReq) (*GiveTeamApplicationsRsp, error)
|
||||
GetTeamActions(context.Context, *GetTeamActionsReq) (*GetTeamActionsRsp, error)
|
||||
GetTeamStory(context.Context, *GetTeamStoryReq) (*GetTeamStoryRsp, error)
|
||||
AddTeamAction(context.Context, *AddTeamActionReq) (*AddTeamActionRsp, error)
|
||||
DeleteLastTeamAction(context.Context, *DeleteLastTeamActionReq) (*DeleteLastTeamActionRsp, error)
|
||||
mustEmbedUnimplementedEveningDetectiveServerServer()
|
||||
@@ -649,8 +649,8 @@ func (UnimplementedEveningDetectiveServerServer) DeleteTeam(context.Context, *De
|
||||
func (UnimplementedEveningDetectiveServerServer) GiveTeamApplications(context.Context, *GiveTeamApplicationsReq) (*GiveTeamApplicationsRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GiveTeamApplications not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) GetTeamActions(context.Context, *GetTeamActionsReq) (*GetTeamActionsRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetTeamActions not implemented")
|
||||
func (UnimplementedEveningDetectiveServerServer) GetTeamStory(context.Context, *GetTeamStoryReq) (*GetTeamStoryRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetTeamStory not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) AddTeamAction(context.Context, *AddTeamActionReq) (*AddTeamActionRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method AddTeamAction not implemented")
|
||||
@@ -1310,20 +1310,20 @@ func _EveningDetectiveServer_GiveTeamApplications_Handler(srv interface{}, ctx c
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetectiveServer_GetTeamActions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetTeamActionsReq)
|
||||
func _EveningDetectiveServer_GetTeamStory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetTeamStoryReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EveningDetectiveServerServer).GetTeamActions(ctx, in)
|
||||
return srv.(EveningDetectiveServerServer).GetTeamStory(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EveningDetectiveServer_GetTeamActions_FullMethodName,
|
||||
FullMethod: EveningDetectiveServer_GetTeamStory_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EveningDetectiveServerServer).GetTeamActions(ctx, req.(*GetTeamActionsReq))
|
||||
return srv.(EveningDetectiveServerServer).GetTeamStory(ctx, req.(*GetTeamStoryReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@@ -1512,8 +1512,8 @@ var EveningDetectiveServer_ServiceDesc = grpc.ServiceDesc{
|
||||
Handler: _EveningDetectiveServer_GiveTeamApplications_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetTeamActions",
|
||||
Handler: _EveningDetectiveServer_GetTeamActions_Handler,
|
||||
MethodName: "GetTeamStory",
|
||||
Handler: _EveningDetectiveServer_GetTeamStory_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "AddTeamAction",
|
||||
|
||||
Reference in New Issue
Block a user