package com.kamco.cd.training.postgres.repository.members;

import com.kamco.cd.training.members.dto.MembersDto;
import com.kamco.cd.training.postgres.entity.MemberEntity;
import java.util.Optional;
import java.util.UUID;
import org.springframework.data.domain.Page;

public interface MembersRepositoryCustom {
  boolean existsByUserId(String userId);

  boolean existsByEmployeeNo(String employeeNo);

  Optional<MemberEntity> findByEmployeeNo(String employeeNo);

  Optional<MemberEntity> findByUserId(String userId);

  Optional<MemberEntity> findByUUID(UUID uuid);

  Page<MemberEntity> findByMembers(MembersDto.SearchReq searchReq);
}
