lyh
5 天以前 fda571324684bc8d0945b3e2841305b1207fc3e9
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
package com.lxzn.api.ucenter;
 
import com.lxzn.framework.domain.ucenter.Button;
import com.lxzn.framework.domain.ucenter.request.ButtonRequest;
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 org.springframework.web.servlet.ModelAndView;
 
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
 
@Api(value = "按钮管理",description = "按钮管理")
public interface ButtonControllerApi {
    @ApiOperation("新增按钮")
    ResponseResult addButton(Button button);
 
    @ApiOperation("获取按钮列表")
    @ApiImplicitParams({
        @ApiImplicitParam(name="buttonType",value = "按钮类型",required=true,paramType="query",dataType="int")
    })
    QueryListResponseResult<Button> findByButtonType(Integer buttonType);
 
    @ApiOperation("分页查询按钮列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name="page",value = "页码",required=true,paramType="path",dataType="int"),
            @ApiImplicitParam(name="size",value = "每页记录数",required=true,paramType="path",dataType="int")
    })
    QueryPageResponseResult<Button> findByPageList(int page, int size, ButtonRequest buttonRequest);
 
    @ApiOperation("编辑按钮")
    ResponseResult editButton(String id,Button button);
 
    @ApiOperation("删除按钮")
    ResponseResult deleteButton(String id);
 
    @ApiOperation("获取角色系统按钮列表 包含选中和未选中")
    QueryListResponseResult<Button> findPermsByRoleId(String roleId);
 
    @ApiOperation("获取菜单按钮列表 包含选中和未选中")
    QueryListResponseResult<Button> findByMenuId(String menuId);
 
    @ApiOperation("获取对象按钮列表 包含选中和未选中")
    QueryListResponseResult<Button> findByObjectId(String objectId);
 
    @ApiOperation("导出按钮列表")
    ModelAndView exportXls(HttpServletRequest request, HttpServletResponse response);
}