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

package server

import (
	"context"

	"juwan-backend/app/player/rpc/internal/logic"
	"juwan-backend/app/player/rpc/internal/svc"
	"juwan-backend/app/player/rpc/pb"
)

type PlayerServiceServer struct {
	svcCtx *svc.ServiceContext
	pb.UnimplementedPlayerServiceServer
}

func NewPlayerServiceServer(svcCtx *svc.ServiceContext) *PlayerServiceServer {
	return &PlayerServiceServer{
		svcCtx: svcCtx,
	}
}

// -----------------------playerServices-----------------------
func (s *PlayerServiceServer) AddPlayerServices(ctx context.Context, in *pb.AddPlayerServicesReq) (*pb.AddPlayerServicesResp, error) {
	l := logic.NewAddPlayerServicesLogic(ctx, s.svcCtx)
	return l.AddPlayerServices(in)
}

func (s *PlayerServiceServer) UpdatePlayerServices(ctx context.Context, in *pb.UpdatePlayerServicesReq) (*pb.UpdatePlayerServicesResp, error) {
	l := logic.NewUpdatePlayerServicesLogic(ctx, s.svcCtx)
	return l.UpdatePlayerServices(in)
}

func (s *PlayerServiceServer) DelPlayerServices(ctx context.Context, in *pb.DelPlayerServicesReq) (*pb.DelPlayerServicesResp, error) {
	l := logic.NewDelPlayerServicesLogic(ctx, s.svcCtx)
	return l.DelPlayerServices(in)
}

func (s *PlayerServiceServer) GetPlayerServicesById(ctx context.Context, in *pb.GetPlayerServicesByIdReq) (*pb.GetPlayerServicesByIdResp, error) {
	l := logic.NewGetPlayerServicesByIdLogic(ctx, s.svcCtx)
	return l.GetPlayerServicesById(in)
}

func (s *PlayerServiceServer) SearchPlayerServices(ctx context.Context, in *pb.SearchPlayerServicesReq) (*pb.SearchPlayerServicesResp, error) {
	l := logic.NewSearchPlayerServicesLogic(ctx, s.svcCtx)
	return l.SearchPlayerServices(in)
}

// -----------------------players-----------------------
func (s *PlayerServiceServer) AddPlayers(ctx context.Context, in *pb.AddPlayersReq) (*pb.AddPlayersResp, error) {
	l := logic.NewAddPlayersLogic(ctx, s.svcCtx)
	return l.AddPlayers(in)
}

func (s *PlayerServiceServer) UpdatePlayers(ctx context.Context, in *pb.UpdatePlayersReq) (*pb.UpdatePlayersResp, error) {
	l := logic.NewUpdatePlayersLogic(ctx, s.svcCtx)
	return l.UpdatePlayers(in)
}

func (s *PlayerServiceServer) DelPlayers(ctx context.Context, in *pb.DelPlayersReq) (*pb.DelPlayersResp, error) {
	l := logic.NewDelPlayersLogic(ctx, s.svcCtx)
	return l.DelPlayers(in)
}

func (s *PlayerServiceServer) GetPlayersById(ctx context.Context, in *pb.GetPlayersByIdReq) (*pb.GetPlayersByIdResp, error) {
	l := logic.NewGetPlayersByIdLogic(ctx, s.svcCtx)
	return l.GetPlayersById(in)
}

func (s *PlayerServiceServer) GetPlayerByUserId(ctx context.Context, in *pb.SearchPlayersReq) (*pb.GetPlayersByIdResp, error) {
	l := logic.NewGetPlayerByUserIdLogic(ctx, s.svcCtx)
	return l.GetPlayerByUserId(in)
}

func (s *PlayerServiceServer) SearchPlayers(ctx context.Context, in *pb.SearchPlayersReq) (*pb.SearchPlayersResp, error) {
	l := logic.NewSearchPlayersLogic(ctx, s.svcCtx)
	return l.SearchPlayers(in)
}
