package com.izouma.nineth.repo;

import com.izouma.nineth.domain.HeatInfo;
import com.izouma.nineth.enums.HeatType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface HeatInfoRepo extends JpaRepository<HeatInfo, Long>, JpaSpecificationExecutor<HeatInfo> {

    List<HeatInfo> findByUserIdAndShowroomIdAndType(Long userId, Long showroomId, HeatType type);

    List<HeatInfo> findByUserIdAndOrderIdAndType(Long userId, Long orderId, HeatType type);

}