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

package userverifications

import (
	"context"

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

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

type (
	AddOrUpdateUserVerificationsReq   = pb.AddOrUpdateUserVerificationsReq
	AddOrUpdateUserVerificationsResp  = pb.AddOrUpdateUserVerificationsResp
	AddUserVerificationsReq           = pb.AddUserVerificationsReq
	AddUserVerificationsResp          = pb.AddUserVerificationsResp
	DelUserVerificationsReq           = pb.DelUserVerificationsReq
	DelUserVerificationsResp          = pb.DelUserVerificationsResp
	GetUserVerificationsByIdReq       = pb.GetUserVerificationsByIdReq
	GetUserVerificationsByIdResp      = pb.GetUserVerificationsByIdResp
	ListUserVerificationsByUserIdReq  = pb.ListUserVerificationsByUserIdReq
	ListUserVerificationsByUserIdResp = pb.ListUserVerificationsByUserIdResp
	SearchUserVerificationsReq        = pb.SearchUserVerificationsReq
	SearchUserVerificationsResp       = pb.SearchUserVerificationsResp
	UpdateUserVerificationsReq        = pb.UpdateUserVerificationsReq
	UpdateUserVerificationsResp       = pb.UpdateUserVerificationsResp
	UserVerifications                 = pb.UserVerifications

	UserVerificationsZrpcClient interface {
		// -----------------------userVerifications-----------------------
		AddUserVerifications(ctx context.Context, in *AddUserVerificationsReq, opts ...grpc.CallOption) (*AddUserVerificationsResp, error)
		UpdateUserVerifications(ctx context.Context, in *UpdateUserVerificationsReq, opts ...grpc.CallOption) (*UpdateUserVerificationsResp, error)
		DelUserVerifications(ctx context.Context, in *DelUserVerificationsReq, opts ...grpc.CallOption) (*DelUserVerificationsResp, error)
		GetUserVerificationsById(ctx context.Context, in *GetUserVerificationsByIdReq, opts ...grpc.CallOption) (*GetUserVerificationsByIdResp, error)
		SearchUserVerifications(ctx context.Context, in *SearchUserVerificationsReq, opts ...grpc.CallOption) (*SearchUserVerificationsResp, error)
		AddOrUpdateUserVerifications(ctx context.Context, in *AddOrUpdateUserVerificationsReq, opts ...grpc.CallOption) (*AddOrUpdateUserVerificationsResp, error)
		ListUserVerificationsByUserId(ctx context.Context, in *ListUserVerificationsByUserIdReq, opts ...grpc.CallOption) (*ListUserVerificationsByUserIdResp, error)
	}

	defaultUserVerificationsZrpcClient struct {
		cli zrpc.Client
	}
)

func NewUserVerificationsZrpcClient(cli zrpc.Client) UserVerificationsZrpcClient {
	return &defaultUserVerificationsZrpcClient{
		cli: cli,
	}
}

// -----------------------userVerifications-----------------------
func (m *defaultUserVerificationsZrpcClient) AddUserVerifications(ctx context.Context, in *AddUserVerificationsReq, opts ...grpc.CallOption) (*AddUserVerificationsResp, error) {
	client := pb.NewUserVerificationsClient(m.cli.Conn())
	return client.AddUserVerifications(ctx, in, opts...)
}

func (m *defaultUserVerificationsZrpcClient) UpdateUserVerifications(ctx context.Context, in *UpdateUserVerificationsReq, opts ...grpc.CallOption) (*UpdateUserVerificationsResp, error) {
	client := pb.NewUserVerificationsClient(m.cli.Conn())
	return client.UpdateUserVerifications(ctx, in, opts...)
}

func (m *defaultUserVerificationsZrpcClient) DelUserVerifications(ctx context.Context, in *DelUserVerificationsReq, opts ...grpc.CallOption) (*DelUserVerificationsResp, error) {
	client := pb.NewUserVerificationsClient(m.cli.Conn())
	return client.DelUserVerifications(ctx, in, opts...)
}

func (m *defaultUserVerificationsZrpcClient) GetUserVerificationsById(ctx context.Context, in *GetUserVerificationsByIdReq, opts ...grpc.CallOption) (*GetUserVerificationsByIdResp, error) {
	client := pb.NewUserVerificationsClient(m.cli.Conn())
	return client.GetUserVerificationsById(ctx, in, opts...)
}

func (m *defaultUserVerificationsZrpcClient) SearchUserVerifications(ctx context.Context, in *SearchUserVerificationsReq, opts ...grpc.CallOption) (*SearchUserVerificationsResp, error) {
	client := pb.NewUserVerificationsClient(m.cli.Conn())
	return client.SearchUserVerifications(ctx, in, opts...)
}

func (m *defaultUserVerificationsZrpcClient) AddOrUpdateUserVerifications(ctx context.Context, in *AddOrUpdateUserVerificationsReq, opts ...grpc.CallOption) (*AddOrUpdateUserVerificationsResp, error) {
	client := pb.NewUserVerificationsClient(m.cli.Conn())
	return client.AddOrUpdateUserVerifications(ctx, in, opts...)
}

func (m *defaultUserVerificationsZrpcClient) ListUserVerificationsByUserId(ctx context.Context, in *ListUserVerificationsByUserIdReq, opts ...grpc.CallOption) (*ListUserVerificationsByUserIdResp, error) {
	client := pb.NewUserVerificationsClient(m.cli.Conn())
	return client.ListUserVerificationsByUserId(ctx, in, opts...)
}
