| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "DepEntity", value = "åå
¸å®ä½ç±»", dataType = "com.lf.server.entity.data.DepEntity", paramType = "body", example = "") |
| | | }) |
| | | @RequestMapping(value = "/insertDep", method = RequestMethod.POST, produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertDep(DepEntity depEntity) { |
| | | @PostMapping(value = "/insertDep", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertDep( DepEntity depEntity) { |
| | | try { |
| | | int count = depService.insertDep(depEntity); |
| | | |
| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "DepEntity", value = "åå
¸å®ä½ç±»", dataType = "com.lf.server.entity.data.DepEntity", paramType = "body", example = "") |
| | | }) |
| | | @RequestMapping(value = "/insertDes", method = RequestMethod.POST, produces = "application/json; charset=UTF-8") |
| | | @PostMapping(value = "/insertDes", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertDes(@RequestBody List<DepEntity> depEntity) { |
| | | try { |
| | | int count = depService.insertDeps(depEntity); |
| | |
| | | @ApiImplicitParam(name = "depEntity", value = "主é®IDéå", dataType = "DepEntity", paramType = "body", example = "") |
| | | }) |
| | | @ResponseBody |
| | | @RequestMapping(value = "/updateDep", method = RequestMethod.POST, produces = "application/json; charset=UTF-8") |
| | | @PostMapping(value = "/updateDep", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> updateDep(DepEntity depEntity) { |
| | | try { |
| | | int count = depService.updateDep(depEntity); |
| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "DirEntity", value = "ç®å½å®ä½ç±»", dataType = "com.lf.server.entity.data.DirEntity", paramType = "body", example = "") |
| | | }) |
| | | @RequestMapping(value = "/insertDir", method = RequestMethod.POST, produces = "application/json; charset=UTF-8") |
| | | @PostMapping(value = "/insertDir", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertDir(DirEntity dirEntity) { |
| | | try { |
| | | int count = dirService.insertDir(dirEntity); |
| | |
| | | return fail(ex.getMessage(), -1); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "æå
¥å¤æ¡æ°æ®") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "DirEntity", value = "ç®å½å®ä½ç±»", dataType = "com.lf.server.entity.data.DirEntity", paramType = "body", example = "") |
| | | }) |
| | | @RequestMapping(value = "/insertDirs", method = RequestMethod.POST, produces = "application/json; charset=UTF-8") |
| | | @PostMapping(value = "/insertDirs", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertDirs(@RequestBody List<DirEntity> dirEntity) { |
| | | try { |
| | | int count = dirService.insertDirs(dirEntity); |
| | |
| | | @ApiImplicitParam(name = "id", value = "主é®ID", dataType = "Integer", paramType = "query", example = "1") |
| | | }) |
| | | @GetMapping(value = "/deleteDir") |
| | | public ResponseMsg<Integer> deleteDir(int id) { |
| | | public ResponseMsg<Integer> deleteDir(int id) { |
| | | try { |
| | | int count = dirService.deleteDir(id); |
| | | |
| | |
| | | @ApiImplicitParam(name = "ids", value = "主é®IDéå", dataType = "List<Integer>", paramType = "query", example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deleteDirs") |
| | | public ResponseMsg<Integer> deleteDirs( List<Integer> ids) { |
| | | try { |
| | | public ResponseMsg<Integer> deleteDirs(List<Integer> ids) { |
| | | try { |
| | | if (ids == null || ids.isEmpty()) { |
| | | return fail("idæ°ç»ä¸è½ä¸ºç©º", -1); |
| | | } |
| | |
| | | return fail(ex.getMessage(), -1); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡æ°æ®") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "dirEntity", value = "主é®IDéå", dataType = "DictEntity", paramType = "body", example = "") |
| | | }) |
| | | @ResponseBody |
| | | @RequestMapping(value = "/updateDir", method = RequestMethod.POST, produces = "application/json; charset=UTF-8") |
| | | @PostMapping(value = "/updateDir", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> updateDir(DirEntity dirEntity) { |
| | | try { |
| | | int count = dirService.updateDir(dirEntity); |
| | | int count = dirService.updateDir(dirEntity); |
| | | |
| | | return success(count); |
| | | } catch (Exception ex) { |
| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "主é®ID", dataType = "Integer", paramType = "query", example = "1") |
| | | }) |
| | | @ResponseBody |
| | | @RequestMapping(value = "/selectDir", method = RequestMethod.POST, produces = "application/json; charset=UTF-8") |
| | | @GetMapping(value = "/selectDir") |
| | | public DirEntity selectDir(int id) { |
| | | return dirService.selectDir(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¥è¯¢æææ°æ®") |
| | | @GetMapping(value = "/selectDirAll") |
| | | public List<DirEntity> selectDirAll() { |
| | | |
| | | return dirService.selectDirAll(); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "MenusEntity", value = "åå
¸å®ä½ç±»", dataType = "com.lf.server.entity.data.MenusEntity", paramType = "body", example = "") |
| | | }) |
| | | @RequestMapping(value = "/insertMenu", method = RequestMethod.POST, produces = "application/json; charset=UTF-8") |
| | | @PostMapping(value = "/insertMenu", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertMenu(MenusEntity menusEntity) { |
| | | try { |
| | | int count = menuService.insertMenu(menusEntity); |
| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "MenusEntity", value = "åå
¸å®ä½ç±»", dataType = "com.lf.server.entity.data.MenusEntity", paramType = "body", example = "") |
| | | }) |
| | | @RequestMapping(value = "/insertMenus", method = RequestMethod.POST, produces = "application/json; charset=UTF-8") |
| | | @PostMapping(value = "/insertMenus", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertMenus(@RequestBody List<MenusEntity> menusEntity) { |
| | | try { |
| | | int count = menuService.insertMenus(menusEntity); |
| | |
| | | @ApiImplicitParam(name = "MenusEntity", value = "èåIDéå", dataType = "MenusEntity", paramType = "body", example = "") |
| | | }) |
| | | @ResponseBody |
| | | @RequestMapping(value = "/updateMenu", method = RequestMethod.POST, produces = "application/json; charset=UTF-8") |
| | | @PostMapping(value = "/updateMenu", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> updateMenu(MenusEntity menusEntity) { |
| | | try { |
| | | int count = menuService.updateMenu(menusEntity); |
| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", required = false, example = "sys_style"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页索å¼ï¼ä»0å¼å§ï¼", dataType = "Integer", paramType = "query", example = "0") |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页索å¼ï¼ä»0å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPage") |
| | | public ResponseMsg<List<StyleEntity>> selectByPage(String name, Integer pageSize, Integer pageIndex) { |
| | |
| | | return fail("å页æ°å°äº1æå页索å¼å°äº0", null); |
| | | } |
| | | |
| | | List<StyleEntity> rs = styleService.selectByPage(name, pageSize, pageSize * pageIndex); |
| | | List<StyleEntity> rs = styleService.selectByPage(name, pageSize, pageSize * (pageIndex - 1)); |
| | | |
| | | return success(rs); |
| | | } catch (Exception ex) { |
| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "StyleEntity", value = "åå
¸å®ä½ç±»", dataType = "List<StyleEntity>", paramType = "body", example = "") |
| | | }) |
| | | @RequestMapping(value = "/insertStyle", method = RequestMethod.POST, produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertStyle(StyleEntity styleEntity) { |
| | | @PostMapping(value = "/insertStyle",produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertStyle(@RequestBody StyleEntity styleEntity) { |
| | | try { |
| | | int count = styleService.insertStyle(styleEntity); |
| | | |
| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "StyleEntity", value = "åå
¸å®ä½ç±»", dataType = "com.lf.server.entity.data.StyleEntity", paramType = "body", example = "") |
| | | }) |
| | | @RequestMapping(value = "/insertStyles", method = RequestMethod.POST, produces = "application/json; charset=UTF-8") |
| | | @PostMapping(value = "/insertStyles" ,produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertStyles(@RequestBody List<StyleEntity> styleEntity) { |
| | | try { |
| | | int count = styleService.insertStyles(styleEntity); |
| | |
| | | @ApiImplicitParam(name = "styleEntity", value = "åå
¸IDéå", dataType = "StyleEntity", paramType = "body", example = "") |
| | | }) |
| | | @ResponseBody |
| | | @RequestMapping(value = "/updateStyle", method = RequestMethod.POST, produces = "application/json; charset=UTF-8") |
| | | @PostMapping(value = "/updateStyle", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> updateStyle(StyleEntity styleEntity) { |
| | | try { |
| | | int count = styleService.updateStyle(styleEntity); |