|
|
@@ -30,8 +30,7 @@ public class KwsMenuController {
|
|
|
**/
|
|
|
@GetMapping("/detail")
|
|
|
public HttpResult selectByKey(Long id) throws Exception {
|
|
|
- KwsMenu sysDict = kwsMenuService.selectByKey(id);
|
|
|
- return HttpResult.ok(sysDict);
|
|
|
+ return HttpResult.ok(kwsMenuService.selectByKey(id));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -82,7 +81,7 @@ public class KwsMenuController {
|
|
|
* @author zk
|
|
|
* @date 2023/5/30
|
|
|
**/
|
|
|
- @DeleteMapping("/dels")
|
|
|
+ @PostMapping("/dels")
|
|
|
public HttpResult del(@RequestParam String ids) throws Exception {
|
|
|
kwsMenuService.deleteByKey(ids);
|
|
|
return HttpResult.ok();
|