|
@@ -1,20 +1,17 @@
|
|
|
package com.lantone.qc.kernel.web.controller;
|
|
|
|
|
|
import com.lantone.qc.kernel.analysis.QCAnalysis;
|
|
|
+import com.lantone.qc.pub.model.OutputInfo;
|
|
|
import com.lantone.qc.pub.model.vo.QueryVo;
|
|
|
import com.lantone.qc.pub.res.Response;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
-import org.slf4j.Logger;
|
|
|
-import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
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.util.Map;
|
|
|
-
|
|
|
/**
|
|
|
* @ClassName : QCController
|
|
|
* @Description : 质控总入口
|
|
@@ -28,12 +25,13 @@ public class QCController {
|
|
|
|
|
|
@Autowired
|
|
|
private QCAnalysis qCAnalysis;
|
|
|
+
|
|
|
@ApiOperation(value = "质控外部接口,需要token信息", notes = "")
|
|
|
@PostMapping("rec")
|
|
|
- public Response<Map<String, Object>> extract(@RequestBody QueryVo queryVo) {
|
|
|
+ public Response<OutputInfo> extract(@RequestBody QueryVo queryVo) {
|
|
|
Response response = new Response();
|
|
|
- qCAnalysis.anlysis(queryVo);
|
|
|
+ response.setData(qCAnalysis.anlysis(queryVo));
|
|
|
return response;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|