lyh
3 天以前 2ab86210fb27787cb1be8976286b9b827f90997f
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
package com.lxzn.api.ucenter;
 
import com.lxzn.framework.domain.ucenter.Button;
import com.lxzn.framework.domain.ucenter.Menu;
import com.lxzn.framework.domain.ucenter.ext.MenuExt;
import com.lxzn.framework.domain.ucenter.request.MenuRequest;
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 MenuControllerApi {
    @ApiOperation("新增菜单")
    ResponseResult addMenu(Menu menu);
 
    @ApiOperation("编辑菜单")
    ResponseResult editMenu(String id,Menu menu);
 
    @ApiOperation("删除菜单")
    ResponseResult deleteMenu(String id);
 
    @ApiOperation("多级菜单分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name="page",value = "页码",required=true,paramType="path",dataType="int"),
            @ApiImplicitParam(name="size",value = "每页记录数",required=true,paramType="path",dataType="int")
    })
    QueryPageResponseResult<Menu> findPageList(int page, int size, MenuRequest menuRequest);
 
 
    @ApiOperation("指定菜单操作按钮")
    ResponseResult assignButton(String menuId, List<Button> buttonList);
 
    @ApiOperation("获取所有菜单(父子关系,测试接口)")
    QueryListResponseResult<MenuExt> findAll();
 
    @ApiOperation("获取所有菜单(非父子关系,测试接口)")
    QueryListResponseResult<Menu> findListAll();
 
 
    @ApiOperation("获取菜单树")
    QueryListResponseResult<CommonJsonTree> loadTree();
}