package com.tykj.workflowcore.user.dao;


import com.tykj.workflowcore.user.pojo.Authority;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface AuthorityDao extends JpaRepository<Authority, Integer >, JpaSpecificationExecutor<Authority> {

    List<Authority> findByName(String name);

    List<Authority> findByAppId(Integer appId);

    List<Authority> findByType(Integer type);

    List<Authority> findByNameLike(String name);




}
