XiaoRuby
2023-08-30 b0b8ca4b383c5c3a2373200ca1872c20ee9ff999
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
31
32
33
34
35
36
package com.yuanchu.limslaboratory.service;
 
import com.yuanchu.limslaboratory.pojo.dto.GetAllRoleAndMenuByConditionPageDto;
import com.yuanchu.limslaboratory.pojo.dto.RoleAndMenuDto;
import com.yuanchu.limslaboratory.pojo.dto.RoleInfoDto;
import com.yuanchu.limslaboratory.pojo.dto.UpdateRoleMenuDto;
 
import java.util.List;
import java.util.Map;
 
/**
 * @Author 张宾
 * @Date 2023/8/23
 */
public interface RoleManagerService {
    Object getMenusTree();
 
    boolean addRoleInfo(RoleInfoDto dto);
 
    boolean assertRepeat(String roleName);
 
    Map<String, Object> getAllRoleAndMenuInfo(GetAllRoleAndMenuByConditionPageDto dto);
 
    boolean deleteRole(Long id);
 
    boolean updateRoleMenu(UpdateRoleMenuDto dto);
 
    RoleAndMenuDto getRoleAndMenuByRole(Long roleId);
 
    List<Map<String, Object>> getUserListRole();
 
    Map<String, Object> getUrlType(String url);
 
   boolean  hasUrl(String type,String menuId,String roleId);
 
}