added dao
This commit is contained in:
parent
0736723c74
commit
85349566e5
|
@ -1,6 +1,7 @@
|
||||||
package com.loafle.overflow.module.apikey.dao;
|
package com.loafle.overflow.module.apikey.dao;
|
||||||
|
|
||||||
import com.loafle.overflow.module.apikey.model.ApiKey;
|
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.data.jpa.repository.JpaRepository;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
@ -12,4 +13,6 @@ import org.springframework.stereotype.Repository;
|
||||||
public interface ApiKeyDAO extends JpaRepository<ApiKey, Long> {
|
public interface ApiKeyDAO extends JpaRepository<ApiKey, Long> {
|
||||||
|
|
||||||
ApiKey findByApiKey(String apiKey);
|
ApiKey findByApiKey(String apiKey);
|
||||||
|
|
||||||
|
ApiKey findByDomain(Domain domain);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user