lyh
2025-01-13 137d008bd9b7d932160436a3a560b24512f6d1db
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 org.jeecg.modules.dnc.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.dnc.entity.Button;
 
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);
}