package com.zhangmeng.admin.manager.service;

import com.zhangmeng.model.base.baseService.BaseService;
import com.zhangmeng.model.dto.Menu;
import com.zhangmeng.model.entity.Permission;

import java.util.List;

/**
 * @author zhangmeng
 * @version 1.0
 * @date 2021年1月7日22:32:54
 */
public interface PermissionService extends BaseService<Permission> {

    List<Permission> findByUserId(Long userId);

    List<Menu> toUserMenus(List<Permission> permissions, Long parentId);
}
