lyh
3 天以前 3ce27b7faf8850d101a1511a685250fe562dca18
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package com.lxzn.api.ucenter;
 
import com.lxzn.framework.domain.ucenter.*;
import com.lxzn.framework.domain.ucenter.request.RoleRequest;
import com.lxzn.framework.model.response.CommonJsonTree;
import com.lxzn.framework.model.response.QueryListResponseResult;
import com.lxzn.framework.model.response.QueryPageResponseResult;
import com.lxzn.framework.model.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
 
import java.util.List;
 
@Api(value = "角色管理",description = "角色管理")
public interface RoleControllerApi {
    @ApiOperation("新增角色")
    ResponseResult addRole(Role role);
 
    @ApiOperation("编辑角色")
    ResponseResult editRole(String id,Role role);
 
    @ApiOperation("角色分配菜单")
    ResponseResult assignMenus(String roleId, String[] menuIds);
 
    @ApiOperation("角色分配系统按钮")
    ResponseResult assignSysButton(String roleId, String[] buttonIds);
 
    @ApiOperation("角色分配菜单按钮")
    ResponseResult assignMenuButton(String roleId, String[] menuButtonIds);
 
    @ApiOperation("角色分配对象按钮")
    ResponseResult assignObjectButton(String roleId, String[] objectButtonIds);
 
    @ApiOperation("获取用户未指定的角色列表")
    QueryListResponseResult<Role> getUserNonPermRole(String userId);
 
    @ApiOperation("获取用户指定的角色列表")
    QueryListResponseResult<Role> getUserPermRole(String userId);
 
    @ApiOperation("分页查询角色列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name="page",value = "页码",required=true,paramType="path",dataType="int"),
            @ApiImplicitParam(name="size",value = "每页记录数",required=true,paramType="path",dataType="int")
    })
    QueryPageResponseResult<Role> findPageList(int page, int size, RoleRequest roleRequest);
 
    @ApiOperation("获取角色分配的菜单按钮树")
    QueryListResponseResult<CommonJsonTree> getMenuButtonTree(String roleId);
 
    @ApiOperation("获取角色分配的对象按钮树")
    QueryListResponseResult<CommonJsonTree> getObjectButtonTree(String roleId);
 
    @ApiOperation("获取角色分配的菜单树")
    QueryListResponseResult<CommonJsonTree> getMenuTree(String roleId);
 
    @ApiOperation("获取角色列表接口")
    QueryListResponseResult<Role> getRoleList();
 
    @ApiOperation("删除角色")
    ResponseResult deleteRole(String id);
}