All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.shitsurei.dao.repository.system.SystemMenuRepository Maven / Gradle / Ivy

The newest version!
package io.github.shitsurei.dao.repository.system;

import io.github.shitsurei.dao.pojo.po.system.SystemMenu;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.http.HttpMethod;

import java.util.List;

/**
 * 系统权限持久化接口
 *
 * @author zhanggr-b
 * @version 1.0
 * @date 2021/12/30 17:23
 */
public interface SystemMenuRepository extends PagingAndSortingRepository, QuerydslPredicateExecutor {
    /**
     * 通过code查询权限
     *
     * @param systemMenuCodeList
     * @return
     */
    List queryAllByMenuCodeIn(List systemMenuCodeList);

    /**
     * 模糊查询权限编码
     *
     * @param codeLike
     * @return
     */
    List queryAllByMenuCodeLike(String codeLike);

    /**
     * 通过code查询权限
     *
     * @param menuCode
     * @return
     */
    SystemMenu findByMenuCode(String menuCode);

    /**
     * 通过路由地址和http方法类型查询菜单权限
     * @param urlPath
     * @param method
     * @return
     */
    SystemMenu findByUrlPathAndHttpMethod(String urlPath, HttpMethod method);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy