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

package server

import (
	"context"

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

type GameServiceServer struct {
	svcCtx *svc.ServiceContext
	pb.UnimplementedGameServiceServer
}

func NewGameServiceServer(svcCtx *svc.ServiceContext) *GameServiceServer {
	return &GameServiceServer{
		svcCtx: svcCtx,
	}
}

// -----------------------games-----------------------
func (s *GameServiceServer) AddGames(ctx context.Context, in *pb.AddGamesReq) (*pb.AddGamesResp, error) {
	l := logic.NewAddGamesLogic(ctx, s.svcCtx)
	return l.AddGames(in)
}

func (s *GameServiceServer) UpdateGames(ctx context.Context, in *pb.UpdateGamesReq) (*pb.UpdateGamesResp, error) {
	l := logic.NewUpdateGamesLogic(ctx, s.svcCtx)
	return l.UpdateGames(in)
}

func (s *GameServiceServer) DelGames(ctx context.Context, in *pb.DelGamesReq) (*pb.DelGamesResp, error) {
	l := logic.NewDelGamesLogic(ctx, s.svcCtx)
	return l.DelGames(in)
}

func (s *GameServiceServer) GetGamesById(ctx context.Context, in *pb.GetGamesByIdReq) (*pb.GetGamesByIdResp, error) {
	l := logic.NewGetGamesByIdLogic(ctx, s.svcCtx)
	return l.GetGamesById(in)
}

func (s *GameServiceServer) SearchGames(ctx context.Context, in *pb.SearchGamesReq) (*pb.SearchGamesResp, error) {
	l := logic.NewSearchGamesLogic(ctx, s.svcCtx)
	return l.SearchGames(in)
}
