|
@@ -5,6 +5,7 @@ import com.diagbot.client.bean.ResponseData;
|
|
import com.diagbot.dto.PushDTO;
|
|
import com.diagbot.dto.PushDTO;
|
|
import com.diagbot.dto.PushKYJDTO;
|
|
import com.diagbot.dto.PushKYJDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
|
|
+import com.diagbot.enums.InputModeEnum;
|
|
import com.diagbot.facade.PushFacade;
|
|
import com.diagbot.facade.PushFacade;
|
|
import com.diagbot.vo.PushKYJVO;
|
|
import com.diagbot.vo.PushKYJVO;
|
|
import com.diagbot.vo.PushVO;
|
|
import com.diagbot.vo.PushVO;
|
|
@@ -45,10 +46,26 @@ public class PushController {
|
|
@PostMapping("/pushInner")
|
|
@PostMapping("/pushInner")
|
|
@SysLogger("pushInner")
|
|
@SysLogger("pushInner")
|
|
public RespDTO<PushDTO> pushInner(@RequestBody @Valid PushVO pushVO) {
|
|
public RespDTO<PushDTO> pushInner(@RequestBody @Valid PushVO pushVO) {
|
|
- return RespDTO.onSuc(pushFacade.pushInner(pushVO));
|
|
|
|
|
|
+ return RespDTO.onSuc(pushFacade.pushInner(pushVO, InputModeEnum.Structured.getKey()));
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "推理接口(纯文本)[by:zhaops]",
|
|
|
|
|
|
+ @ApiOperation(value = "推理接口(文本模式)[by:zhaops]",
|
|
|
|
+ notes = "age: 年龄(必填)<br>" +
|
|
|
|
+ "sex:性别,1:男,2:女(必填)<br>" +
|
|
|
|
+ "symptom:症状<br>" +
|
|
|
|
+ "other:其它史<br>" +
|
|
|
|
+ "vital:查体<br>" +
|
|
|
|
+ "lis:化验<br>" +
|
|
|
|
+ "pacs:辅检<br>" +
|
|
|
|
+ "dis:诊断<br>" +
|
|
|
|
+ "featureType:类型,1:症状,4:查体,5:化验,6:辅检,7:诊断(必填)<br>")
|
|
|
|
+ @PostMapping("/pushText")
|
|
|
|
+ @SysLogger("pushText")
|
|
|
|
+ public RespDTO<PushDTO> pushText(@RequestBody @Valid PushVO pushVO) {
|
|
|
|
+ return RespDTO.onSuc(pushFacade.pushInner(pushVO, InputModeEnum.Text.getKey()));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "推理接口(大数据结果)[by:zhaops]",
|
|
notes = "age: 年龄(必填)<br>" +
|
|
notes = "age: 年龄(必填)<br>" +
|
|
"sex:性别,1:男,2:女(必填)<br>" +
|
|
"sex:性别,1:男,2:女(必填)<br>" +
|
|
"symptom:症状<br>" +
|
|
"symptom:症状<br>" +
|