Interface SubscriptionRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Subscription, String>, org.springframework.data.jpa.repository.JpaRepository<Subscription, String>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<Subscription>, org.springframework.data.repository.ListCrudRepository<Subscription, String>, org.springframework.data.repository.ListPagingAndSortingRepository<Subscription, String>, org.springframework.data.repository.PagingAndSortingRepository<Subscription, String>, org.springframework.data.repository.query.QueryByExampleExecutor<Subscription>, org.springframework.data.repository.Repository<Subscription, String>
@Repository
@NullMarked
public interface SubscriptionRepository
extends org.springframework.data.jpa.repository.JpaRepository<Subscription, String>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<Subscription>
订阅数据访问接口,提供对订阅数据的CRUD操作和查询功能
- Author:
- xezzon
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
org.springframework.data.jpa.repository.JpaSpecificationExecutor.SpecificationFluentQuery<T> -
Method Summary
Modifier and TypeMethodDescriptionfindByAppId(String appId) 根据应用ID查询所有订阅记录findByAppIdAndOpenapiCodeIn(String appId, Collection<String> openapiCodes) 根据应用ID和接口编码集合查询订阅记录Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
count, count, delete, delete, exists, exists, findAll, findAll, findAll, findAll, findAll, findBy, findBy, findOne, findOne, updateMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByAppIdAndOpenapiCodeIn
根据应用ID和接口编码集合查询订阅记录- Parameters:
appId- 应用IDopenapiCodes- 接口编码集合- Returns:
- 订阅记录列表
-
findByAppId
根据应用ID查询所有订阅记录- Parameters:
appId- 应用ID- Returns:
- 订阅记录列表
-