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