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

package server

import (
	"context"

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

type WalletServiceServer struct {
	svcCtx *svc.ServiceContext
	pb.UnimplementedWalletServiceServer
}

func NewWalletServiceServer(svcCtx *svc.ServiceContext) *WalletServiceServer {
	return &WalletServiceServer{
		svcCtx: svcCtx,
	}
}

// -----------------------walletTransactions-----------------------
func (s *WalletServiceServer) AddWalletTransactions(ctx context.Context, in *pb.AddWalletTransactionsReq) (*pb.AddWalletTransactionsResp, error) {
	l := logic.NewAddWalletTransactionsLogic(ctx, s.svcCtx)
	return l.AddWalletTransactions(in)
}

func (s *WalletServiceServer) UpdateWalletTransactions(ctx context.Context, in *pb.UpdateWalletTransactionsReq) (*pb.UpdateWalletTransactionsResp, error) {
	l := logic.NewUpdateWalletTransactionsLogic(ctx, s.svcCtx)
	return l.UpdateWalletTransactions(in)
}

func (s *WalletServiceServer) DelWalletTransactions(ctx context.Context, in *pb.DelWalletTransactionsReq) (*pb.DelWalletTransactionsResp, error) {
	l := logic.NewDelWalletTransactionsLogic(ctx, s.svcCtx)
	return l.DelWalletTransactions(in)
}

func (s *WalletServiceServer) GetWalletTransactionsById(ctx context.Context, in *pb.GetWalletTransactionsByIdReq) (*pb.GetWalletTransactionsByIdResp, error) {
	l := logic.NewGetWalletTransactionsByIdLogic(ctx, s.svcCtx)
	return l.GetWalletTransactionsById(in)
}

func (s *WalletServiceServer) SearchWalletTransactions(ctx context.Context, in *pb.SearchWalletTransactionsReq) (*pb.SearchWalletTransactionsResp, error) {
	l := logic.NewSearchWalletTransactionsLogic(ctx, s.svcCtx)
	return l.SearchWalletTransactions(in)
}

// -----------------------wallets-----------------------
func (s *WalletServiceServer) AddWallets(ctx context.Context, in *pb.AddWalletsReq) (*pb.AddWalletsResp, error) {
	l := logic.NewAddWalletsLogic(ctx, s.svcCtx)
	return l.AddWallets(in)
}

func (s *WalletServiceServer) UpdateWallets(ctx context.Context, in *pb.UpdateWalletsReq) (*pb.UpdateWalletsResp, error) {
	l := logic.NewUpdateWalletsLogic(ctx, s.svcCtx)
	return l.UpdateWallets(in)
}

func (s *WalletServiceServer) DelWallets(ctx context.Context, in *pb.DelWalletsReq) (*pb.DelWalletsResp, error) {
	l := logic.NewDelWalletsLogic(ctx, s.svcCtx)
	return l.DelWallets(in)
}

func (s *WalletServiceServer) GetWalletsById(ctx context.Context, in *pb.GetWalletsByIdReq) (*pb.GetWalletsByIdResp, error) {
	l := logic.NewGetWalletsByIdLogic(ctx, s.svcCtx)
	return l.GetWalletsById(in)
}

func (s *WalletServiceServer) SearchWallets(ctx context.Context, in *pb.SearchWalletsReq) (*pb.SearchWalletsResp, error) {
	l := logic.NewSearchWalletsLogic(ctx, s.svcCtx)
	return l.SearchWallets(in)
}
