forked from luyan/epmet-cloud-lingshan
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.0 KiB
49 lines
1.0 KiB
6 years ago
|
/**
|
||
|
* Copyright (c) 2018 人人开源 All rights reserved.
|
||
|
*
|
||
|
* https://www.renren.io
|
||
|
*
|
||
|
* 版权所有,侵权必究!
|
||
|
*/
|
||
|
|
||
|
package com.epmet.dao;
|
||
|
|
||
|
import com.epmet.commons.mybatis.dao.BaseDao;
|
||
|
import com.epmet.entity.SysResourceEntity;
|
||
|
import org.apache.ibatis.annotations.Mapper;
|
||
|
import org.apache.ibatis.annotations.Param;
|
||
|
|
||
|
import java.util.List;
|
||
|
|
||
|
/**
|
||
|
* 资源管理
|
||
|
*
|
||
|
* @author Mark sunlightcs@gmail.com
|
||
|
* @since 1.0.0
|
||
|
*/
|
||
|
@Mapper
|
||
|
public interface SysResourceDao extends BaseDao<SysResourceEntity> {
|
||
|
/**
|
||
|
* 根据资源编码,删除对应的资源
|
||
|
* @param code 资源编码
|
||
|
*/
|
||
|
void deleteByCode(String code);
|
||
|
|
||
|
/**
|
||
|
* 获取资源列表
|
||
|
* @param menuId 菜单ID
|
||
|
*/
|
||
|
List<SysResourceEntity> getMenuResourceList(String menuId);
|
||
|
|
||
|
/**
|
||
|
* 获取所有资源列表
|
||
|
*/
|
||
|
List<SysResourceEntity> getResourceList();
|
||
|
|
||
|
/**
|
||
|
* 获取用户资源列表
|
||
|
* @param userId 用户ID
|
||
|
*/
|
||
|
List<SysResourceEntity> getUserResourceList(@Param("userId") Long userId);
|
||
|
}
|