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

import com.kamco.cd.kamcoback.members.dto.MembersDto;
import com.kamco.cd.kamcoback.members.dto.MembersDto.Basic;
import com.kamco.cd.kamcoback.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<Basic> findByMembers(MembersDto.SearchReq searchReq);
}
