|
@@ -9,10 +9,9 @@ import io.swagger.v3.oas.annotations.Operation;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import java.io.IOException;
|
|
|
|
|
|
/**
|
|
|
* 获取专利之星专利某部分(如权要、说明书等一项)控制层
|
|
@@ -30,8 +29,8 @@ public class GetPatentStarPartController {
|
|
|
private final GetPatentStarPartService getPatentStarPartService;
|
|
|
|
|
|
@Operation(summary = "根据专利号或申请号获取专利指定部分项")
|
|
|
- @GetMapping("/getPatentPart")
|
|
|
- public String getPatentPart(GetPatentStarPartDTO getPatentStarPartDTO) {
|
|
|
+ @PostMapping("/getPatentPart")
|
|
|
+ public String getPatentPart(@RequestBody GetPatentStarPartDTO getPatentStarPartDTO) throws IOException {
|
|
|
log.info("开始处理【根据专利号或申请号获取专利指定部分项】的请求,请求参数为:{}", getPatentStarPartDTO);
|
|
|
|
|
|
PatentDTO patentPart = getPatentStarPartService.getPatentPart(getPatentStarPartDTO);
|