Newer
Older
huludao / src / main / java / com / newfiber / api / pc / controller / MenuController.java
package com.newfiber.api.pc.controller;

import com.newfiber.api.core.annotation.SysLog;
import com.newfiber.api.core.bean.RespBodyObj;
import com.newfiber.api.pc.service.SysMenuService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;

@RestController
@Api(tags = "SYS-01、菜单管理", position = 100)
public class MenuController {

	 @Autowired
     private SysMenuService sysMenuService;

	  @ApiOperation(value = "根据权限编号查询菜单")
	  @PostMapping(value="/MenuJurZree",produces = "application/json; charset=utf-8")
	  @ResponseBody
	  @SysLog(actionType = "6",value = "根据权限编号查询菜单")
	  public RespBodyObj<List<String>> MenuJurZree(@RequestParam(value = "jurisdictionNo") String jurisdictionNo){
		  try {
			  List<String> json =sysMenuService.GetMenusjurisdTree(jurisdictionNo);
			  return RespBodyObj.ok(json);
		  } catch (Exception e) {
			    e.printStackTrace();
			  return RespBodyObj.error("查看失败!");
		  }
	  }
}