aop로 권한 적용되게 추가

This commit is contained in:
Suh
2024-01-15 15:39:00 +09:00
parent cd82828562
commit f21300a991
16 changed files with 423 additions and 14 deletions

View File

@@ -22,6 +22,7 @@ public class AccountController {
@Autowired
AccountService accountService;
@Autowired
AuthorityService authorityService;
@@ -75,6 +76,7 @@ public class AccountController {
return mav;
}
@PostMapping("/update_process")
@ResponseBody
public String updateProcess(@RequestBody Map<String, Object> data, Gson gson){
@@ -99,6 +101,15 @@ public class AccountController {
return gson.toJson("s");
}
@PostMapping("/delete_process")
@ResponseBody
public String deleteProcess(AccountDto dto, Gson gson){
accountService.delete(dto);
return gson.toJson("s");
}
@PostMapping("/show_modal")
public ModelAndView showModal(ModelAndView mav, @RequestParam(defaultValue = "") String search,
@RequestParam(defaultValue = "0") int start, @RequestParam String name){