Commit 3d256e84 by guojuxing

查询某个页面下的操作项列表数据

parent 665dd5b7
......@@ -7,6 +7,7 @@ import java.util.Map;
import com.gic.auth.constant.SignConstants;
import com.gic.auth.qo.AuthItemSaveQO;
import com.gic.auth.web.vo.MenuOperationItemVO;
import org.apache.dubbo.rpc.RpcContext;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
......@@ -37,12 +38,12 @@ public class MenuController {
private MenuApiService menuApiService;
@RequestMapping("login-user-menu")
public RestResponse loginUserMenu(Integer currentMenu){
public RestResponse loginUserMenu(Integer currentMenu) {
Integer userId = UserDetailUtils.getUserDetail().getUserId();
Integer enterpriseId = UserDetailUtils.getUserDetail().getEnterpriseId();
System.out.println(JSON.toJSONString(RpcContext.getContext().getAttachments()));
ServiceResponse<List<MenuDTO>> userMenu = this.menuApiService.getUserMenu(userId, enterpriseId, currentMenu);
if(userMenu.isSuccess()){
if (userMenu.isSuccess()) {
return RestResponse.success(userMenu.getResult());
}
return EnterpriseRestResponse.failure(userMenu);
......@@ -70,6 +71,7 @@ public class MenuController {
public RestResponse deleteMenu(Integer menuId) {
return ResultControllerUtils.commonResult(menuApiService.deleteMenu(menuId));
}
/**
* 新增gic子页面
* @Title: saveGICChildPage

......@@ -82,6 +84,7 @@ public class MenuController {
public RestResponse saveGICChildPage(MenuDTO menuDTO) {
return ResultControllerUtils.commonResult(menuApiService.saveGICChildPage(menuDTO));
}
@RequestMapping("/update-gic-child-page")
public RestResponse updateGICChildPage(MenuDTO menuDTO) {
return ResultControllerUtils.commonResult(menuApiService.updateGICChildPage(menuDTO));
......@@ -127,6 +130,7 @@ public class MenuController {
}
return EnterpriseRestResponse.failure(result);
}
/**
* 查询页面下面的操作项列表数据
* @Title: listMenuRole

......@@ -137,7 +141,8 @@ public class MenuController {

 */
@RequestMapping("/list-menu-item")
public RestResponse listMenuItem(Integer parentId) {
return ResultControllerUtils.commonResult(menuApiService.listMenuItemByParentId(parentId));
return ResultControllerUtils.commonResult(menuApiService.listMenuItemByParentId(parentId),
MenuOperationItemVO.class);
}
@RequestMapping("/set-menu-sort")
......
package com.gic.auth.web.vo;
import java.io.Serializable;
/**
* 操作项列表
* @ClassName: MenuOperationItemVO

* @Description: 

* @author guojuxing

* @date 2019/9/20 10:45 AM

*/
public class MenuOperationItemVO implements Serializable{
private static final long serialVersionUID = 5519227299518257155L;
/**
*
*/
private Integer menuId;
private String menuName;
public Integer getMenuId() {
return menuId;
}
public void setMenuId(Integer menuId) {
this.menuId = menuId;
}
public String getMenuName() {
return menuName;
}
public void setMenuName(String menuName) {
this.menuName = menuName;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment