// Code generated by goctl. DO NOT EDIT.
// goctl 1.9.2
// Source: player.proto

package playerservice

import (
	"context"

	"juwan-backend/app/player/rpc/pb"

	"github.com/zeromicro/go-zero/zrpc"
	"google.golang.org/grpc"
)

type (
	AddPlayerServicesReq      = pb.AddPlayerServicesReq
	AddPlayerServicesResp     = pb.AddPlayerServicesResp
	AddPlayersReq             = pb.AddPlayersReq
	AddPlayersResp            = pb.AddPlayersResp
	DelPlayerServicesReq      = pb.DelPlayerServicesReq
	DelPlayerServicesResp     = pb.DelPlayerServicesResp
	DelPlayersReq             = pb.DelPlayersReq
	DelPlayersResp            = pb.DelPlayersResp
	GetPlayerServicesByIdReq  = pb.GetPlayerServicesByIdReq
	GetPlayerServicesByIdResp = pb.GetPlayerServicesByIdResp
	GetPlayersByIdReq         = pb.GetPlayersByIdReq
	GetPlayersByIdResp        = pb.GetPlayersByIdResp
	PlayerServices            = pb.PlayerServices
	Players                   = pb.Players
	SearchPlayerServicesReq   = pb.SearchPlayerServicesReq
	SearchPlayerServicesResp  = pb.SearchPlayerServicesResp
	SearchPlayersReq          = pb.SearchPlayersReq
	SearchPlayersResp         = pb.SearchPlayersResp
	UpdatePlayerServicesReq   = pb.UpdatePlayerServicesReq
	UpdatePlayerServicesResp  = pb.UpdatePlayerServicesResp
	UpdatePlayersReq          = pb.UpdatePlayersReq
	UpdatePlayersResp         = pb.UpdatePlayersResp

	PlayerService interface {
		// -----------------------playerServices-----------------------
		AddPlayerServices(ctx context.Context, in *AddPlayerServicesReq, opts ...grpc.CallOption) (*AddPlayerServicesResp, error)
		UpdatePlayerServices(ctx context.Context, in *UpdatePlayerServicesReq, opts ...grpc.CallOption) (*UpdatePlayerServicesResp, error)
		DelPlayerServices(ctx context.Context, in *DelPlayerServicesReq, opts ...grpc.CallOption) (*DelPlayerServicesResp, error)
		GetPlayerServicesById(ctx context.Context, in *GetPlayerServicesByIdReq, opts ...grpc.CallOption) (*GetPlayerServicesByIdResp, error)
		SearchPlayerServices(ctx context.Context, in *SearchPlayerServicesReq, opts ...grpc.CallOption) (*SearchPlayerServicesResp, error)
		// -----------------------players-----------------------
		AddPlayers(ctx context.Context, in *AddPlayersReq, opts ...grpc.CallOption) (*AddPlayersResp, error)
		UpdatePlayers(ctx context.Context, in *UpdatePlayersReq, opts ...grpc.CallOption) (*UpdatePlayersResp, error)
		DelPlayers(ctx context.Context, in *DelPlayersReq, opts ...grpc.CallOption) (*DelPlayersResp, error)
		GetPlayersById(ctx context.Context, in *GetPlayersByIdReq, opts ...grpc.CallOption) (*GetPlayersByIdResp, error)
		GetPlayerByUserId(ctx context.Context, in *SearchPlayersReq, opts ...grpc.CallOption) (*GetPlayersByIdResp, error)
		SearchPlayers(ctx context.Context, in *SearchPlayersReq, opts ...grpc.CallOption) (*SearchPlayersResp, error)
	}

	defaultPlayerService struct {
		cli zrpc.Client
	}
)

func NewPlayerService(cli zrpc.Client) PlayerService {
	return &defaultPlayerService{
		cli: cli,
	}
}

// -----------------------playerServices-----------------------
func (m *defaultPlayerService) AddPlayerServices(ctx context.Context, in *AddPlayerServicesReq, opts ...grpc.CallOption) (*AddPlayerServicesResp, error) {
	client := pb.NewPlayerServiceClient(m.cli.Conn())
	return client.AddPlayerServices(ctx, in, opts...)
}

func (m *defaultPlayerService) UpdatePlayerServices(ctx context.Context, in *UpdatePlayerServicesReq, opts ...grpc.CallOption) (*UpdatePlayerServicesResp, error) {
	client := pb.NewPlayerServiceClient(m.cli.Conn())
	return client.UpdatePlayerServices(ctx, in, opts...)
}

func (m *defaultPlayerService) DelPlayerServices(ctx context.Context, in *DelPlayerServicesReq, opts ...grpc.CallOption) (*DelPlayerServicesResp, error) {
	client := pb.NewPlayerServiceClient(m.cli.Conn())
	return client.DelPlayerServices(ctx, in, opts...)
}

func (m *defaultPlayerService) GetPlayerServicesById(ctx context.Context, in *GetPlayerServicesByIdReq, opts ...grpc.CallOption) (*GetPlayerServicesByIdResp, error) {
	client := pb.NewPlayerServiceClient(m.cli.Conn())
	return client.GetPlayerServicesById(ctx, in, opts...)
}

func (m *defaultPlayerService) SearchPlayerServices(ctx context.Context, in *SearchPlayerServicesReq, opts ...grpc.CallOption) (*SearchPlayerServicesResp, error) {
	client := pb.NewPlayerServiceClient(m.cli.Conn())
	return client.SearchPlayerServices(ctx, in, opts...)
}

// -----------------------players-----------------------
func (m *defaultPlayerService) AddPlayers(ctx context.Context, in *AddPlayersReq, opts ...grpc.CallOption) (*AddPlayersResp, error) {
	client := pb.NewPlayerServiceClient(m.cli.Conn())
	return client.AddPlayers(ctx, in, opts...)
}

func (m *defaultPlayerService) UpdatePlayers(ctx context.Context, in *UpdatePlayersReq, opts ...grpc.CallOption) (*UpdatePlayersResp, error) {
	client := pb.NewPlayerServiceClient(m.cli.Conn())
	return client.UpdatePlayers(ctx, in, opts...)
}

func (m *defaultPlayerService) DelPlayers(ctx context.Context, in *DelPlayersReq, opts ...grpc.CallOption) (*DelPlayersResp, error) {
	client := pb.NewPlayerServiceClient(m.cli.Conn())
	return client.DelPlayers(ctx, in, opts...)
}

func (m *defaultPlayerService) GetPlayersById(ctx context.Context, in *GetPlayersByIdReq, opts ...grpc.CallOption) (*GetPlayersByIdResp, error) {
	client := pb.NewPlayerServiceClient(m.cli.Conn())
	return client.GetPlayersById(ctx, in, opts...)
}

func (m *defaultPlayerService) GetPlayerByUserId(ctx context.Context, in *SearchPlayersReq, opts ...grpc.CallOption) (*GetPlayersByIdResp, error) {
	client := pb.NewPlayerServiceClient(m.cli.Conn())
	return client.GetPlayerByUserId(ctx, in, opts...)
}

func (m *defaultPlayerService) SearchPlayers(ctx context.Context, in *SearchPlayersReq, opts ...grpc.CallOption) (*SearchPlayersResp, error) {
	client := pb.NewPlayerServiceClient(m.cli.Conn())
	return client.SearchPlayers(ctx, in, opts...)
}
