| | |
| | | @ApiImplicitParam(name = "DepEntity", value = "字典实体类", dataType = "com.lf.server.entity.data.DepEntity", paramType = "body", example = "") |
| | | }) |
| | | @PostMapping(value = "/insertDep", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertDep( DepEntity depEntity) { |
| | | public ResponseMsg<Integer> insertDep(@RequestBody DepEntity depEntity) { |
| | | try { |
| | | int count = depService.insertDep(depEntity); |
| | | |
| | |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updateDep", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> updateDep(DepEntity depEntity) { |
| | | public ResponseMsg<Integer> updateDep(@RequestBody DepEntity depEntity) { |
| | | try { |
| | | int count = depService.updateDep(depEntity); |
| | | |