1
hao
2025-05-20 8e24c6fea30d9b179375ee2893710cdec2443b13
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
37
38
39
40
41
42
package com.dev.service;
 
 
import com.app.base.data.ApiResponseResult;
import com.system.role.entity.SysRole;
import org.springframework.data.domain.PageRequest;
 
import java.util.Date;
 
public interface ApiCodeService {
 
    public ApiResponseResult add(SysRole sysRole) throws Exception;
    
    public ApiResponseResult edit(SysRole sysRole) throws Exception;
 
    public ApiResponseResult delete(Long id) throws Exception;
    
    public ApiResponseResult getList(String keyword, String bsCode, String bsName, Date createdTimeStart, Date createdTimeEnd, PageRequest pageRequest) throws Exception;
    
    public ApiResponseResult getCheckedRoles(long userId) throws Exception;
    
    public ApiResponseResult saveUserRoles(long userId,String roles) throws Exception;
    
    public ApiResponseResult addRouter(String rolecode,String roles) throws Exception;
    
    public ApiResponseResult getRouter(String rolecode) throws Exception;
 
    //获取当前角色的操作权限
    public ApiResponseResult getPermission() throws Exception;
 
    //根据ID获取角色
    public ApiResponseResult getRole(Long id) throws Exception;
 
    //获取所有角色
    public ApiResponseResult getRoles() throws Exception;
 
    //根据角色ID获取权限信息
    public ApiResponseResult getRolePerm(Long id) throws Exception;
 
    //设置权限
    public ApiResponseResult doRolePerm(Long roleId, String permIds) throws Exception;
}