660 lines
28 KiB
Go
660 lines
28 KiB
Go
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
// versions:
|
|
// - protoc-gen-go-grpc v1.6.1
|
|
// - protoc v3.19.4
|
|
// source: shop.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
context "context"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
)
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
// Requires gRPC-Go v1.64.0 or later.
|
|
const _ = grpc.SupportPackageIsVersion9
|
|
|
|
const (
|
|
ShopService_AddShopInvitations_FullMethodName = "/pb.shopService/AddShopInvitations"
|
|
ShopService_UpdateShopInvitations_FullMethodName = "/pb.shopService/UpdateShopInvitations"
|
|
ShopService_DelShopInvitations_FullMethodName = "/pb.shopService/DelShopInvitations"
|
|
ShopService_GetShopInvitationsById_FullMethodName = "/pb.shopService/GetShopInvitationsById"
|
|
ShopService_SearchShopInvitations_FullMethodName = "/pb.shopService/SearchShopInvitations"
|
|
ShopService_AddShopPlayers_FullMethodName = "/pb.shopService/AddShopPlayers"
|
|
ShopService_UpdateShopPlayers_FullMethodName = "/pb.shopService/UpdateShopPlayers"
|
|
ShopService_DelShopPlayers_FullMethodName = "/pb.shopService/DelShopPlayers"
|
|
ShopService_GetShopPlayersById_FullMethodName = "/pb.shopService/GetShopPlayersById"
|
|
ShopService_SearchShopPlayers_FullMethodName = "/pb.shopService/SearchShopPlayers"
|
|
ShopService_AddShops_FullMethodName = "/pb.shopService/AddShops"
|
|
ShopService_UpdateShops_FullMethodName = "/pb.shopService/UpdateShops"
|
|
ShopService_DelShops_FullMethodName = "/pb.shopService/DelShops"
|
|
ShopService_GetShopsById_FullMethodName = "/pb.shopService/GetShopsById"
|
|
ShopService_SearchShops_FullMethodName = "/pb.shopService/SearchShops"
|
|
)
|
|
|
|
// ShopServiceClient is the client API for ShopService service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
|
type ShopServiceClient interface {
|
|
// -----------------------shopInvitations-----------------------
|
|
AddShopInvitations(ctx context.Context, in *AddShopInvitationsReq, opts ...grpc.CallOption) (*AddShopInvitationsResp, error)
|
|
UpdateShopInvitations(ctx context.Context, in *UpdateShopInvitationsReq, opts ...grpc.CallOption) (*UpdateShopInvitationsResp, error)
|
|
DelShopInvitations(ctx context.Context, in *DelShopInvitationsReq, opts ...grpc.CallOption) (*DelShopInvitationsResp, error)
|
|
GetShopInvitationsById(ctx context.Context, in *GetShopInvitationsByIdReq, opts ...grpc.CallOption) (*GetShopInvitationsByIdResp, error)
|
|
SearchShopInvitations(ctx context.Context, in *SearchShopInvitationsReq, opts ...grpc.CallOption) (*SearchShopInvitationsResp, error)
|
|
// -----------------------shopPlayers-----------------------
|
|
AddShopPlayers(ctx context.Context, in *AddShopPlayersReq, opts ...grpc.CallOption) (*AddShopPlayersResp, error)
|
|
UpdateShopPlayers(ctx context.Context, in *UpdateShopPlayersReq, opts ...grpc.CallOption) (*UpdateShopPlayersResp, error)
|
|
DelShopPlayers(ctx context.Context, in *DelShopPlayersReq, opts ...grpc.CallOption) (*DelShopPlayersResp, error)
|
|
GetShopPlayersById(ctx context.Context, in *GetShopPlayersByIdReq, opts ...grpc.CallOption) (*GetShopPlayersByIdResp, error)
|
|
SearchShopPlayers(ctx context.Context, in *SearchShopPlayersReq, opts ...grpc.CallOption) (*SearchShopPlayersResp, error)
|
|
// -----------------------shops-----------------------
|
|
AddShops(ctx context.Context, in *AddShopsReq, opts ...grpc.CallOption) (*AddShopsResp, error)
|
|
UpdateShops(ctx context.Context, in *UpdateShopsReq, opts ...grpc.CallOption) (*UpdateShopsResp, error)
|
|
DelShops(ctx context.Context, in *DelShopsReq, opts ...grpc.CallOption) (*DelShopsResp, error)
|
|
GetShopsById(ctx context.Context, in *GetShopsByIdReq, opts ...grpc.CallOption) (*GetShopsByIdResp, error)
|
|
SearchShops(ctx context.Context, in *SearchShopsReq, opts ...grpc.CallOption) (*SearchShopsResp, error)
|
|
}
|
|
|
|
type shopServiceClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewShopServiceClient(cc grpc.ClientConnInterface) ShopServiceClient {
|
|
return &shopServiceClient{cc}
|
|
}
|
|
|
|
func (c *shopServiceClient) AddShopInvitations(ctx context.Context, in *AddShopInvitationsReq, opts ...grpc.CallOption) (*AddShopInvitationsResp, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(AddShopInvitationsResp)
|
|
err := c.cc.Invoke(ctx, ShopService_AddShopInvitations_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *shopServiceClient) UpdateShopInvitations(ctx context.Context, in *UpdateShopInvitationsReq, opts ...grpc.CallOption) (*UpdateShopInvitationsResp, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(UpdateShopInvitationsResp)
|
|
err := c.cc.Invoke(ctx, ShopService_UpdateShopInvitations_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *shopServiceClient) DelShopInvitations(ctx context.Context, in *DelShopInvitationsReq, opts ...grpc.CallOption) (*DelShopInvitationsResp, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(DelShopInvitationsResp)
|
|
err := c.cc.Invoke(ctx, ShopService_DelShopInvitations_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *shopServiceClient) GetShopInvitationsById(ctx context.Context, in *GetShopInvitationsByIdReq, opts ...grpc.CallOption) (*GetShopInvitationsByIdResp, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(GetShopInvitationsByIdResp)
|
|
err := c.cc.Invoke(ctx, ShopService_GetShopInvitationsById_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *shopServiceClient) SearchShopInvitations(ctx context.Context, in *SearchShopInvitationsReq, opts ...grpc.CallOption) (*SearchShopInvitationsResp, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(SearchShopInvitationsResp)
|
|
err := c.cc.Invoke(ctx, ShopService_SearchShopInvitations_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *shopServiceClient) AddShopPlayers(ctx context.Context, in *AddShopPlayersReq, opts ...grpc.CallOption) (*AddShopPlayersResp, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(AddShopPlayersResp)
|
|
err := c.cc.Invoke(ctx, ShopService_AddShopPlayers_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *shopServiceClient) UpdateShopPlayers(ctx context.Context, in *UpdateShopPlayersReq, opts ...grpc.CallOption) (*UpdateShopPlayersResp, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(UpdateShopPlayersResp)
|
|
err := c.cc.Invoke(ctx, ShopService_UpdateShopPlayers_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *shopServiceClient) DelShopPlayers(ctx context.Context, in *DelShopPlayersReq, opts ...grpc.CallOption) (*DelShopPlayersResp, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(DelShopPlayersResp)
|
|
err := c.cc.Invoke(ctx, ShopService_DelShopPlayers_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *shopServiceClient) GetShopPlayersById(ctx context.Context, in *GetShopPlayersByIdReq, opts ...grpc.CallOption) (*GetShopPlayersByIdResp, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(GetShopPlayersByIdResp)
|
|
err := c.cc.Invoke(ctx, ShopService_GetShopPlayersById_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *shopServiceClient) SearchShopPlayers(ctx context.Context, in *SearchShopPlayersReq, opts ...grpc.CallOption) (*SearchShopPlayersResp, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(SearchShopPlayersResp)
|
|
err := c.cc.Invoke(ctx, ShopService_SearchShopPlayers_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *shopServiceClient) AddShops(ctx context.Context, in *AddShopsReq, opts ...grpc.CallOption) (*AddShopsResp, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(AddShopsResp)
|
|
err := c.cc.Invoke(ctx, ShopService_AddShops_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *shopServiceClient) UpdateShops(ctx context.Context, in *UpdateShopsReq, opts ...grpc.CallOption) (*UpdateShopsResp, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(UpdateShopsResp)
|
|
err := c.cc.Invoke(ctx, ShopService_UpdateShops_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *shopServiceClient) DelShops(ctx context.Context, in *DelShopsReq, opts ...grpc.CallOption) (*DelShopsResp, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(DelShopsResp)
|
|
err := c.cc.Invoke(ctx, ShopService_DelShops_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *shopServiceClient) GetShopsById(ctx context.Context, in *GetShopsByIdReq, opts ...grpc.CallOption) (*GetShopsByIdResp, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(GetShopsByIdResp)
|
|
err := c.cc.Invoke(ctx, ShopService_GetShopsById_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *shopServiceClient) SearchShops(ctx context.Context, in *SearchShopsReq, opts ...grpc.CallOption) (*SearchShopsResp, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(SearchShopsResp)
|
|
err := c.cc.Invoke(ctx, ShopService_SearchShops_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// ShopServiceServer is the server API for ShopService service.
|
|
// All implementations must embed UnimplementedShopServiceServer
|
|
// for forward compatibility.
|
|
type ShopServiceServer interface {
|
|
// -----------------------shopInvitations-----------------------
|
|
AddShopInvitations(context.Context, *AddShopInvitationsReq) (*AddShopInvitationsResp, error)
|
|
UpdateShopInvitations(context.Context, *UpdateShopInvitationsReq) (*UpdateShopInvitationsResp, error)
|
|
DelShopInvitations(context.Context, *DelShopInvitationsReq) (*DelShopInvitationsResp, error)
|
|
GetShopInvitationsById(context.Context, *GetShopInvitationsByIdReq) (*GetShopInvitationsByIdResp, error)
|
|
SearchShopInvitations(context.Context, *SearchShopInvitationsReq) (*SearchShopInvitationsResp, error)
|
|
// -----------------------shopPlayers-----------------------
|
|
AddShopPlayers(context.Context, *AddShopPlayersReq) (*AddShopPlayersResp, error)
|
|
UpdateShopPlayers(context.Context, *UpdateShopPlayersReq) (*UpdateShopPlayersResp, error)
|
|
DelShopPlayers(context.Context, *DelShopPlayersReq) (*DelShopPlayersResp, error)
|
|
GetShopPlayersById(context.Context, *GetShopPlayersByIdReq) (*GetShopPlayersByIdResp, error)
|
|
SearchShopPlayers(context.Context, *SearchShopPlayersReq) (*SearchShopPlayersResp, error)
|
|
// -----------------------shops-----------------------
|
|
AddShops(context.Context, *AddShopsReq) (*AddShopsResp, error)
|
|
UpdateShops(context.Context, *UpdateShopsReq) (*UpdateShopsResp, error)
|
|
DelShops(context.Context, *DelShopsReq) (*DelShopsResp, error)
|
|
GetShopsById(context.Context, *GetShopsByIdReq) (*GetShopsByIdResp, error)
|
|
SearchShops(context.Context, *SearchShopsReq) (*SearchShopsResp, error)
|
|
mustEmbedUnimplementedShopServiceServer()
|
|
}
|
|
|
|
// UnimplementedShopServiceServer must be embedded to have
|
|
// forward compatible implementations.
|
|
//
|
|
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
|
// pointer dereference when methods are called.
|
|
type UnimplementedShopServiceServer struct{}
|
|
|
|
func (UnimplementedShopServiceServer) AddShopInvitations(context.Context, *AddShopInvitationsReq) (*AddShopInvitationsResp, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method AddShopInvitations not implemented")
|
|
}
|
|
func (UnimplementedShopServiceServer) UpdateShopInvitations(context.Context, *UpdateShopInvitationsReq) (*UpdateShopInvitationsResp, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method UpdateShopInvitations not implemented")
|
|
}
|
|
func (UnimplementedShopServiceServer) DelShopInvitations(context.Context, *DelShopInvitationsReq) (*DelShopInvitationsResp, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method DelShopInvitations not implemented")
|
|
}
|
|
func (UnimplementedShopServiceServer) GetShopInvitationsById(context.Context, *GetShopInvitationsByIdReq) (*GetShopInvitationsByIdResp, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method GetShopInvitationsById not implemented")
|
|
}
|
|
func (UnimplementedShopServiceServer) SearchShopInvitations(context.Context, *SearchShopInvitationsReq) (*SearchShopInvitationsResp, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method SearchShopInvitations not implemented")
|
|
}
|
|
func (UnimplementedShopServiceServer) AddShopPlayers(context.Context, *AddShopPlayersReq) (*AddShopPlayersResp, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method AddShopPlayers not implemented")
|
|
}
|
|
func (UnimplementedShopServiceServer) UpdateShopPlayers(context.Context, *UpdateShopPlayersReq) (*UpdateShopPlayersResp, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method UpdateShopPlayers not implemented")
|
|
}
|
|
func (UnimplementedShopServiceServer) DelShopPlayers(context.Context, *DelShopPlayersReq) (*DelShopPlayersResp, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method DelShopPlayers not implemented")
|
|
}
|
|
func (UnimplementedShopServiceServer) GetShopPlayersById(context.Context, *GetShopPlayersByIdReq) (*GetShopPlayersByIdResp, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method GetShopPlayersById not implemented")
|
|
}
|
|
func (UnimplementedShopServiceServer) SearchShopPlayers(context.Context, *SearchShopPlayersReq) (*SearchShopPlayersResp, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method SearchShopPlayers not implemented")
|
|
}
|
|
func (UnimplementedShopServiceServer) AddShops(context.Context, *AddShopsReq) (*AddShopsResp, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method AddShops not implemented")
|
|
}
|
|
func (UnimplementedShopServiceServer) UpdateShops(context.Context, *UpdateShopsReq) (*UpdateShopsResp, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method UpdateShops not implemented")
|
|
}
|
|
func (UnimplementedShopServiceServer) DelShops(context.Context, *DelShopsReq) (*DelShopsResp, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method DelShops not implemented")
|
|
}
|
|
func (UnimplementedShopServiceServer) GetShopsById(context.Context, *GetShopsByIdReq) (*GetShopsByIdResp, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method GetShopsById not implemented")
|
|
}
|
|
func (UnimplementedShopServiceServer) SearchShops(context.Context, *SearchShopsReq) (*SearchShopsResp, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method SearchShops not implemented")
|
|
}
|
|
func (UnimplementedShopServiceServer) mustEmbedUnimplementedShopServiceServer() {}
|
|
func (UnimplementedShopServiceServer) testEmbeddedByValue() {}
|
|
|
|
// UnsafeShopServiceServer may be embedded to opt out of forward compatibility for this service.
|
|
// Use of this interface is not recommended, as added methods to ShopServiceServer will
|
|
// result in compilation errors.
|
|
type UnsafeShopServiceServer interface {
|
|
mustEmbedUnimplementedShopServiceServer()
|
|
}
|
|
|
|
func RegisterShopServiceServer(s grpc.ServiceRegistrar, srv ShopServiceServer) {
|
|
// If the following call panics, it indicates UnimplementedShopServiceServer was
|
|
// embedded by pointer and is nil. This will cause panics if an
|
|
// unimplemented method is ever invoked, so we test this at initialization
|
|
// time to prevent it from happening at runtime later due to I/O.
|
|
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
|
t.testEmbeddedByValue()
|
|
}
|
|
s.RegisterService(&ShopService_ServiceDesc, srv)
|
|
}
|
|
|
|
func _ShopService_AddShopInvitations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(AddShopInvitationsReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ShopServiceServer).AddShopInvitations(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ShopService_AddShopInvitations_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ShopServiceServer).AddShopInvitations(ctx, req.(*AddShopInvitationsReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ShopService_UpdateShopInvitations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UpdateShopInvitationsReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ShopServiceServer).UpdateShopInvitations(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ShopService_UpdateShopInvitations_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ShopServiceServer).UpdateShopInvitations(ctx, req.(*UpdateShopInvitationsReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ShopService_DelShopInvitations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(DelShopInvitationsReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ShopServiceServer).DelShopInvitations(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ShopService_DelShopInvitations_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ShopServiceServer).DelShopInvitations(ctx, req.(*DelShopInvitationsReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ShopService_GetShopInvitationsById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetShopInvitationsByIdReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ShopServiceServer).GetShopInvitationsById(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ShopService_GetShopInvitationsById_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ShopServiceServer).GetShopInvitationsById(ctx, req.(*GetShopInvitationsByIdReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ShopService_SearchShopInvitations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(SearchShopInvitationsReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ShopServiceServer).SearchShopInvitations(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ShopService_SearchShopInvitations_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ShopServiceServer).SearchShopInvitations(ctx, req.(*SearchShopInvitationsReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ShopService_AddShopPlayers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(AddShopPlayersReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ShopServiceServer).AddShopPlayers(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ShopService_AddShopPlayers_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ShopServiceServer).AddShopPlayers(ctx, req.(*AddShopPlayersReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ShopService_UpdateShopPlayers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UpdateShopPlayersReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ShopServiceServer).UpdateShopPlayers(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ShopService_UpdateShopPlayers_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ShopServiceServer).UpdateShopPlayers(ctx, req.(*UpdateShopPlayersReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ShopService_DelShopPlayers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(DelShopPlayersReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ShopServiceServer).DelShopPlayers(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ShopService_DelShopPlayers_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ShopServiceServer).DelShopPlayers(ctx, req.(*DelShopPlayersReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ShopService_GetShopPlayersById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetShopPlayersByIdReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ShopServiceServer).GetShopPlayersById(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ShopService_GetShopPlayersById_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ShopServiceServer).GetShopPlayersById(ctx, req.(*GetShopPlayersByIdReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ShopService_SearchShopPlayers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(SearchShopPlayersReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ShopServiceServer).SearchShopPlayers(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ShopService_SearchShopPlayers_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ShopServiceServer).SearchShopPlayers(ctx, req.(*SearchShopPlayersReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ShopService_AddShops_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(AddShopsReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ShopServiceServer).AddShops(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ShopService_AddShops_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ShopServiceServer).AddShops(ctx, req.(*AddShopsReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ShopService_UpdateShops_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UpdateShopsReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ShopServiceServer).UpdateShops(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ShopService_UpdateShops_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ShopServiceServer).UpdateShops(ctx, req.(*UpdateShopsReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ShopService_DelShops_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(DelShopsReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ShopServiceServer).DelShops(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ShopService_DelShops_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ShopServiceServer).DelShops(ctx, req.(*DelShopsReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ShopService_GetShopsById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetShopsByIdReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ShopServiceServer).GetShopsById(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ShopService_GetShopsById_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ShopServiceServer).GetShopsById(ctx, req.(*GetShopsByIdReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ShopService_SearchShops_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(SearchShopsReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ShopServiceServer).SearchShops(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ShopService_SearchShops_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ShopServiceServer).SearchShops(ctx, req.(*SearchShopsReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
// ShopService_ServiceDesc is the grpc.ServiceDesc for ShopService service.
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// and not to be introspected or modified (even as a copy)
|
|
var ShopService_ServiceDesc = grpc.ServiceDesc{
|
|
ServiceName: "pb.shopService",
|
|
HandlerType: (*ShopServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "AddShopInvitations",
|
|
Handler: _ShopService_AddShopInvitations_Handler,
|
|
},
|
|
{
|
|
MethodName: "UpdateShopInvitations",
|
|
Handler: _ShopService_UpdateShopInvitations_Handler,
|
|
},
|
|
{
|
|
MethodName: "DelShopInvitations",
|
|
Handler: _ShopService_DelShopInvitations_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetShopInvitationsById",
|
|
Handler: _ShopService_GetShopInvitationsById_Handler,
|
|
},
|
|
{
|
|
MethodName: "SearchShopInvitations",
|
|
Handler: _ShopService_SearchShopInvitations_Handler,
|
|
},
|
|
{
|
|
MethodName: "AddShopPlayers",
|
|
Handler: _ShopService_AddShopPlayers_Handler,
|
|
},
|
|
{
|
|
MethodName: "UpdateShopPlayers",
|
|
Handler: _ShopService_UpdateShopPlayers_Handler,
|
|
},
|
|
{
|
|
MethodName: "DelShopPlayers",
|
|
Handler: _ShopService_DelShopPlayers_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetShopPlayersById",
|
|
Handler: _ShopService_GetShopPlayersById_Handler,
|
|
},
|
|
{
|
|
MethodName: "SearchShopPlayers",
|
|
Handler: _ShopService_SearchShopPlayers_Handler,
|
|
},
|
|
{
|
|
MethodName: "AddShops",
|
|
Handler: _ShopService_AddShops_Handler,
|
|
},
|
|
{
|
|
MethodName: "UpdateShops",
|
|
Handler: _ShopService_UpdateShops_Handler,
|
|
},
|
|
{
|
|
MethodName: "DelShops",
|
|
Handler: _ShopService_DelShops_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetShopsById",
|
|
Handler: _ShopService_GetShopsById_Handler,
|
|
},
|
|
{
|
|
MethodName: "SearchShops",
|
|
Handler: _ShopService_SearchShops_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "shop.proto",
|
|
}
|