package com.sikey.wa04.business.infrastructure.repository;

import com.sikey.wa04.business.infrastructure.dto.model.DeviceAppManageModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DeviceAppManageRepository extends JpaRepository<DeviceAppManageModel, Long> {
    List<DeviceAppManageModel> findByDeviceId(Long deviceId);

    DeviceAppManageModel findByDeviceIdAndAppId(Long deviceId, Integer appId);
}
