Interface ThirdPartyAppMemberRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<ThirdPartyAppMember, String>, org.springframework.data.jpa.repository.JpaRepository<ThirdPartyAppMember, String>, org.springframework.data.repository.ListCrudRepository<ThirdPartyAppMember, String>, org.springframework.data.repository.ListPagingAndSortingRepository<ThirdPartyAppMember, String>, org.springframework.data.repository.PagingAndSortingRepository<ThirdPartyAppMember, String>, org.springframework.data.repository.query.QueryByExampleExecutor<ThirdPartyAppMember>, org.springframework.data.repository.Repository<ThirdPartyAppMember, String>
@Repository
@NullMarked
public interface ThirdPartyAppMemberRepository
extends org.springframework.data.jpa.repository.JpaRepository<ThirdPartyAppMember, String>
第三方应用成员数据访问层
提供对第三方应用成员信息的数据库操作
- Author:
- xezzon
-
Method Summary
Modifier and TypeMethodDescriptionfindByGroupIdAndUserId(String groupId, String userId) 根据用户组ID和用户ID查询成员信息findByGroupIdOrderByCreateTimeDesc(String groupId) 根据用户组ID查询成员列表,按创建时间降序排序findByUserId(String userId) 根据用户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.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
-
findByGroupIdAndUserId
根据用户组ID和用户ID查询成员信息- Parameters:
groupId- 用户组ID(第三方应用ID)userId- 用户ID- Returns:
- 成员信息
-
findByGroupIdOrderByCreateTimeDesc
根据用户组ID查询成员列表,按创建时间降序排序- Parameters:
groupId- 用户组ID(第三方应用ID)- Returns:
- 成员列表
-
findByUserId
根据用户ID查询该用户的所有成员关系- Parameters:
userId- 用户ID- Returns:
- 该用户的所有成员关系
-