mirror of
https://github.com/suhf/No1WMS.git
synced 2026-02-04 19:54:00 +09:00
aop로 권한 적용되게 추가
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user