diff --git a/src/main/java/com/loafle/overflow/module/apikey/dao/ApiKeyDAO.java b/src/main/java/com/loafle/overflow/module/apikey/dao/ApiKeyDAO.java index ba511fb..7b34ac3 100644 --- a/src/main/java/com/loafle/overflow/module/apikey/dao/ApiKeyDAO.java +++ b/src/main/java/com/loafle/overflow/module/apikey/dao/ApiKeyDAO.java @@ -1,6 +1,7 @@ package com.loafle.overflow.module.apikey.dao; import com.loafle.overflow.module.apikey.model.ApiKey; +import com.loafle.overflow.module.domain.model.Domain; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; @@ -12,4 +13,6 @@ import org.springframework.stereotype.Repository; public interface ApiKeyDAO extends JpaRepository { ApiKey findByApiKey(String apiKey); + + ApiKey findByDomain(Domain domain); }