| | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 报案表(Report)表控制层 |
| | |
| | | /** |
| | | * 报案 |
| | | * |
| | | * @param AddReportDto 实体对象 |
| | | * @param addReportDto 实体对象 |
| | | * @return 新增结果 |
| | | */ |
| | | @PostMapping |
| | | @ApiOperation(value = "报案") |
| | | public R<Boolean> insert(@RequestBody AddReportDto addReportDto) { |
| | | |
| | | return R.ok(reportService.addReport(addReportDto)); |
| | | } |
| | | |
| | |
| | | return R.ok(reportService.audit(report)); |
| | | } |
| | | |
| | | @ApiOperation(httpMethod = "PUT", value = "报案人编辑") |
| | | @ApiOperation(httpMethod = "PUT", value = "案件台-报案人员-编辑") |
| | | @PutMapping("/updateReport") |
| | | @ApiResponse(message = "执行成功", code = 200) |
| | | public R updateReport(@RequestBody Report report) { |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @ApiOperation(httpMethod = "DELETE", value = "报案人人员退群") |
| | | @ApiOperation(httpMethod = "DELETE", value = "案件台-报案人员-退群") |
| | | @DeleteMapping("/leaveGroup") |
| | | @ApiResponse(message = "执行成功", code = 200) |
| | | public R leaveGroup(@RequestParam(value = "id") Integer id, @RequestParam(value = "groupId") Integer groupId) { |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @ApiOperation(httpMethod = "DELETE", value = "删除报案人") |
| | | @ApiOperation(httpMethod = "DELETE", value = "案件台-报案人员-删除") |
| | | @DeleteMapping("/deleteReporter") |
| | | @ApiResponse(message = "执行成功", code = 200) |
| | | public R deleteReporter(@RequestParam(value = "id") Integer id) { |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @ApiOperation(httpMethod = "POST", value = "导出材料") |
| | | @ApiOperation(httpMethod = "POST", value = "案件台-报案人员-报案材料导出") |
| | | @PostMapping("/exportReporter") |
| | | @ApiResponse(message = "执行成功", code = 200) |
| | | public void exportReport(@RequestParam(value = "id") Integer id, HttpServletResponse response) { |