| | |
| | | @RequestMapping(value = "/userLevel/add", method = RequestMethod.POST) |
| | | public |
| | | @ResponseBody |
| | | Map<String, Object> addUserLevel(MultipartHttpServletRequest request) { |
| | | Map<String, Object> addUserLevel(@RequestBody Map<String, Map<String, Object>> params) { |
| | | Map<String, Object> resJsonData = new HashMap<>(); |
| | | Map<String, Object> content = ConvertUtil.convertJsonToMap(request.getParameter(Constants.REQ_KEY_CONTENT)); |
| | | Map<String, Object> content = params.get(Constants.REQ_KEY_CONTENT); |
| | | this.userLevelService.addUserLevel(UserLevelForm.make(content)); |
| | | |
| | | return this.setSuccessMessage(resJsonData); |
| | |
| | | } |
| | | |
| | | // 사용자등급 수정 |
| | | // @RequestMapping(value = "/userLevel/modify", produces = MediaType.APPLICATION_JSON_VALUE) |
| | | // public |
| | | // @ResponseBody |
| | | // Map<String, Object> modify(MultipartHttpServletRequest request) { |
| | | // Map<String, Object> resJsonData = new HashMap<>(); |
| | | // |
| | | // this.userService.modifyUser(UserForm.make(ConvertUtil.convertJsonToMap(request.getParameter(Constants.REQ_KEY_CONTENT))), request.getFile("file")); |
| | | // |
| | | // return this.setSuccessMessage(resJsonData); |
| | | // } |
| | | @RequestMapping(value = "/userLevel/modify", produces = MediaType.APPLICATION_JSON_VALUE) |
| | | public |
| | | @ResponseBody |
| | | Map<String, Object> modify(@RequestBody Map<String, Map<String, Object>> params) { |
| | | Map<String, Object> resJsonData = new HashMap<>(); |
| | | Map<String, Object> content = params.get(Constants.REQ_KEY_CONTENT); |
| | | this.userLevelService.modifyUserLevel(UserLevelForm.make(content)); |
| | | |
| | | return this.setSuccessMessage(resJsonData); |
| | | } |
| | | |
| | | // 사용자등급 삭제 |
| | | // @RequestMapping(value = "/userLevel/remove", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE) |
| | | // public |
| | | // @ResponseBody |
| | | // Map<String, Object> withDraw() { |
| | | // Map<String, Object> resJsonData = new HashMap<>(); |
| | | // |
| | | // this.userService.withDrawUser(); |
| | | // |
| | | // return this.setSuccessMessage(resJsonData); |
| | | // } |
| | | @RequestMapping(value = "/userLevel/remove", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE) |
| | | public |
| | | @ResponseBody |
| | | Map<String, Object> remove(@RequestBody Map<String, Map<String, Object>> params) { |
| | | Map<String, Object> resJsonData = new HashMap<>(); |
| | | Map<String, Object> content = params.get(Constants.REQ_KEY_CONTENT); |
| | | |
| | | this.userLevelService.removeUserLevel(UserLevelForm.make(content)); |
| | | |
| | | return this.setSuccessMessage(resJsonData); |
| | | } |
| | | |
| | | // 사용자 등급 엑셀 다운로드 |
| | | // @RequestMapping(value = "/userLevel/downloadExcel", method = RequestMethod.POST) |