kimi
2020-05-27 c007f0ca1785db093d48f4846cda82fe8e955765
src/main/java/com/highdatas/mdm/controller/MenuMappingController.java
@@ -45,13 +45,24 @@
    ISysMenuService menuService;
    @Autowired
    NoticeClient noticeClient;
    /**
     *
     * @description: 通过id获取menumapping
     * @param id menumapping id
     * @return: menumapping数据
     *
     */
    @RequestMapping(value = "/get/{id}",  method = RequestMethod.GET)
    public Result<MenuMapping> get(@PathVariable String id, HttpServletRequest request) {
        return menuMappingService.getMapping(request.getSession(),id);
    }
    /**
     *
     * @description: 保存主题的详细信息
     * @return: 是否保存成功
     *
     */
    @RequestMapping(value = "/add", method = RequestMethod.POST)
    public Result<Object> insert(@RequestBody MenuMapping menuMapping, HttpServletRequest request) {
        String menuId = menuMapping.getMenuId();
@@ -68,6 +79,12 @@
    }
    /**
     *
     * @description: 保存主题的详细信息
     * @return: 是否保存成功
     *
     */
    @RequestMapping(value = "/update", method = RequestMethod.POST)
    public Result<Object> update(@RequestBody MenuMapping menuMapping, HttpServletRequest request) {
        menuMapping.setUpdateTime(new Date());
@@ -107,7 +124,12 @@
            return Result.error(CodeMsg.UPDATE_ERROR);
        }
    }
    /**
     *
     * @description: 通过主题删除主题详细信息
     * @return: 是否删除menumapping
     *
     */
    @RequestMapping(value = "/delete/{menuid}", method = RequestMethod.GET)
    public Result<Object> delete(@PathVariable String menuid) throws Exception {
        boolean deleted = menuMappingService.deleteById(menuid);