| | |
| | | @ApiImplicitParam(name = "DirEntity", value = "目录实体类", dataType = "com.lf.server.entity.data.DirEntity", paramType = "body", example = "") |
| | | }) |
| | | @PostMapping(value = "/insertDir", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertDir(DirEntity dirEntity) { |
| | | public ResponseMsg<Integer> insertDir(@RequestBody DirEntity dirEntity) { |
| | | try { |
| | | int count = dirService.insertDir(dirEntity); |
| | | |
| | |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updateDir", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> updateDir(DirEntity dirEntity) { |
| | | public ResponseMsg<Integer> updateDir(@RequestBody DirEntity dirEntity) { |
| | | try { |
| | | int count = dirService.updateDir(dirEntity); |
| | | |