package tech.powerjob.server.persistence.remote.repository; import org.springframework.data.jpa.repository.JpaRepository; import tech.powerjob.server.persistence.remote.model.UserRoleDO; import java.util.List; /** * UserRoleRepository * * @author tjq * @since 2023/3/20 */ public interface UserRoleRepository extends JpaRepository { List findAllByUserId(Long userId); List findAllByScopeAndTarget(Integer scope, Long target); List findAllByScopeAndTargetAndRoleAndUserId(Integer scope, Long target, Integer role, Long userId); List findAllByUserIdAndScope(Long userId, Integer scope); }