lyh
9 小时以前 78aeb8a8c97a884a640d46755e4be706bde48b7d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package com.lxzn.ucenter.dao;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lxzn.framework.domain.ucenter.Button;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
public interface ButtonMapper extends BaseMapper<Button> {
 
    /**
     * 获取系统按钮的权限
     * @return
     */
    List<Button> getButtonPerms(@Param("userId") String userId);
 
    /**
     * 获取用户对应角色的菜单操作权限
     * @param userId
     * @return
     */
    List<Button> getMenuButtonPerms(@Param("userId") String userId, @Param("menuUrl") String menuUrl);
 
    /**
     * 获取用户对应角色的对象操作权限
     * @param userId
     * @return
     */
    List<Button> getObjectButtonPerms(@Param("userId") String userId, @Param("objectPerm") String objectPerm);
}