| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiResponse; |
| | | import lombok.SneakyThrows; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | |
| | | /** |
| | | * 报案 |
| | | * |
| | | * @param AddReportDto 实体对象 |
| | | * @param addReportDto 实体对象 |
| | | * @return 新增结果 |
| | | */ |
| | | @PostMapping |
| | | @ApiOperation(value = "报案") |
| | | public R<Boolean> insert(@RequestBody AddReportDto addReportDto) { |
| | | |
| | | return R.ok(reportService.addReport(addReportDto)); |
| | | } |
| | | |