5 changed files with 93 additions and 65 deletions
@ -0,0 +1,28 @@
|
||||
package com.biutag.supervision.controller.work; |
||||
|
||||
import com.biutag.supervision.pojo.param.NegativeQueryParam; |
||||
import com.biutag.supervision.service.negativeReport.NegativeReportService; |
||||
import io.swagger.v3.oas.annotations.Operation; |
||||
import jakarta.servlet.http.HttpServletResponse; |
||||
import lombok.RequiredArgsConstructor; |
||||
import org.springframework.web.bind.annotation.PostMapping; |
||||
import org.springframework.web.bind.annotation.RequestBody; |
||||
import org.springframework.web.bind.annotation.RequestMapping; |
||||
import org.springframework.web.bind.annotation.RestController; |
||||
|
||||
import java.io.UnsupportedEncodingException; |
||||
|
||||
@RequiredArgsConstructor |
||||
@RequestMapping("negative") |
||||
@RestController |
||||
public class NegativeReportController { |
||||
|
||||
private final NegativeReportService negativeReportService; |
||||
|
||||
@Operation(summary = "生成研判分析报告") |
||||
@PostMapping("/generateReport") |
||||
public void generateReport(@RequestBody NegativeQueryParam request, HttpServletResponse response) throws UnsupportedEncodingException { |
||||
negativeReportService.generateReport(request, response); |
||||
} |
||||
|
||||
} |
||||
@ -1,4 +1,9 @@
|
||||
package com.biutag.supervision.service.negativeReport; |
||||
|
||||
import com.biutag.supervision.pojo.param.NegativeQueryParam; |
||||
import jakarta.servlet.http.HttpServletResponse; |
||||
|
||||
public interface NegativeReportService { |
||||
|
||||
void generateReport(NegativeQueryParam request, HttpServletResponse response); |
||||
} |
||||
|
||||
Loading…
Reference in new issue