| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("cause") |
| | | @Api(tags = "案件区") |
| | | @Api(tags = "案件区-案件录入") |
| | | public class CauseController extends ApiController { |
| | | /** |
| | | * 服务对象 |
| | |
| | | @PostMapping("/addCause") |
| | | @ApiResponse(message = "执行成功", code = 200) |
| | | public R addCause(@RequestBody CauseDto causeDto) { |
| | | return R.ok(causeService.addCause(causeDto)); |
| | | causeService.addCause(causeDto); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @ApiOperation(httpMethod = "POST", value = "修改案件") |
| | | @PostMapping("/updateCause") |
| | | @ApiOperation(httpMethod = "PUT", value = "修改案件") |
| | | @PutMapping("/updateCause") |
| | | @ApiResponse(message = "执行成功", code = 200) |
| | | public R updateCause(@RequestBody CauseDto causeDto,Integer id) { |
| | | return R.ok(causeService.updateCause(causeDto,id)); |
| | |
| | | public R getManagerList() { |
| | | return R.ok(causeService.getManagerList()); |
| | | } |
| | | |
| | | @ApiOperation(httpMethod = "GET", value = "获取报案人员") |
| | | @GetMapping("/getReporterList") |
| | | @ApiResponse(message = "执行成功", code = 200) |
| | | public R getReporterList(Integer causeId) { |
| | | return R.ok(causeService.getReporterList(causeId)); |
| | | } |
| | | |
| | | @ApiOperation(httpMethod = "GET", value = "获取案件群公告") |
| | | @GetMapping("/getGroupAnnouncement") |
| | | @ApiResponse(message = "执行成功", code = 200) |
| | | public R getGroupAnnouncement(Integer groupId) { |
| | | return R.ok(causeService.getGroupAnnouncement(groupId)); |
| | | } |
| | | |
| | | @ApiOperation(httpMethod = "DELETE", value = "案件删除") |
| | | @DeleteMapping("/deleteCause") |
| | | @ApiResponse(message = "执行成功", code = 200) |
| | | public R deleteCause(@RequestParam(value = "id") Integer id) { |
| | | causeService.deleteCause(id); |
| | | return R.ok(); |
| | | } |
| | | // TODO: 2022/7/15 导入 |
| | | } |
| | | |