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

package server

import (
	"context"

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

type UserVerificationsServer struct {
	svcCtx *svc.ServiceContext
	pb.UnimplementedUserVerificationsServer
}

func NewUserVerificationsServer(svcCtx *svc.ServiceContext) *UserVerificationsServer {
	return &UserVerificationsServer{
		svcCtx: svcCtx,
	}
}

// -----------------------userVerifications-----------------------
func (s *UserVerificationsServer) AddUserVerifications(ctx context.Context, in *pb.AddUserVerificationsReq) (*pb.AddUserVerificationsResp, error) {
	l := logic.NewAddUserVerificationsLogic(ctx, s.svcCtx)
	return l.AddUserVerifications(in)
}

func (s *UserVerificationsServer) UpdateUserVerifications(ctx context.Context, in *pb.UpdateUserVerificationsReq) (*pb.UpdateUserVerificationsResp, error) {
	l := logic.NewUpdateUserVerificationsLogic(ctx, s.svcCtx)
	return l.UpdateUserVerifications(in)
}

func (s *UserVerificationsServer) DelUserVerifications(ctx context.Context, in *pb.DelUserVerificationsReq) (*pb.DelUserVerificationsResp, error) {
	l := logic.NewDelUserVerificationsLogic(ctx, s.svcCtx)
	return l.DelUserVerifications(in)
}

func (s *UserVerificationsServer) GetUserVerificationsById(ctx context.Context, in *pb.GetUserVerificationsByIdReq) (*pb.GetUserVerificationsByIdResp, error) {
	l := logic.NewGetUserVerificationsByIdLogic(ctx, s.svcCtx)
	return l.GetUserVerificationsById(in)
}

func (s *UserVerificationsServer) SearchUserVerifications(ctx context.Context, in *pb.SearchUserVerificationsReq) (*pb.SearchUserVerificationsResp, error) {
	l := logic.NewSearchUserVerificationsLogic(ctx, s.svcCtx)
	return l.SearchUserVerifications(in)
}

func (s *UserVerificationsServer) AddOrUpdateUserVerifications(ctx context.Context, in *pb.AddOrUpdateUserVerificationsReq) (*pb.AddOrUpdateUserVerificationsResp, error) {
	l := logic.NewAddOrUpdateUserVerificationsLogic(ctx, s.svcCtx)
	return l.AddOrUpdateUserVerifications(in)
}

func (s *UserVerificationsServer) ListUserVerificationsByUserId(ctx context.Context, in *pb.ListUserVerificationsByUserIdReq) (*pb.ListUserVerificationsByUserIdResp, error) {
	l := logic.NewListUserVerificationsByUserIdLogic(ctx, s.svcCtx)
	return l.ListUserVerificationsByUserId(in)
}
