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 Type
    Method
    Description
    根据用户组ID和用户ID查询成员信息
    根据用户组ID查询成员列表,按创建时间降序排序
    根据用户ID查询该用户的所有成员关系

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findByGroupIdAndUserId

      Optional<ThirdPartyAppMember> findByGroupIdAndUserId(String groupId, String userId)
      根据用户组ID和用户ID查询成员信息
      Parameters:
      groupId - 用户组ID(第三方应用ID)
      userId - 用户ID
      Returns:
      成员信息
    • findByGroupIdOrderByCreateTimeDesc

      List<ThirdPartyAppMember> findByGroupIdOrderByCreateTimeDesc(String groupId)
      根据用户组ID查询成员列表,按创建时间降序排序
      Parameters:
      groupId - 用户组ID(第三方应用ID)
      Returns:
      成员列表
    • findByUserId

      List<ThirdPartyAppMember> findByUserId(String userId)
      根据用户ID查询该用户的所有成员关系
      Parameters:
      userId - 用户ID
      Returns:
      该用户的所有成员关系