|
@@ -1,5 +1,6 @@
|
|
|
package com.diagbot.web;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.diagbot.annotation.SysLogger;
|
|
|
import com.diagbot.client.bean.ResponseData;
|
|
|
import com.diagbot.dto.PushDTO;
|
|
@@ -9,6 +10,7 @@ import com.diagbot.enums.InputModeEnum;
|
|
|
import com.diagbot.facade.PushFacade;
|
|
|
import com.diagbot.vo.PushKYJVO;
|
|
|
import com.diagbot.vo.PushVO;
|
|
|
+import com.google.common.collect.Lists;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -18,6 +20,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* @Description:推理接口
|
|
@@ -122,4 +126,18 @@ public class PushController {
|
|
|
public RespDTO<PushKYJDTO> pushKYJ(@RequestBody @Valid PushKYJVO pushKYJVO) {
|
|
|
return RespDTO.onSuc(pushFacade.pushKYJ(pushKYJVO));
|
|
|
}
|
|
|
+
|
|
|
+ @PostMapping("/getScaleContent")
|
|
|
+ @SysLogger("getScaleContent")
|
|
|
+ public RespDTO<String> getScaleContent(@RequestBody @Valid PushVO pushVO) {
|
|
|
+ return RespDTO.onSuc(pushFacade.getScaleContent(pushVO));
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/getManagementEvaluationContent")
|
|
|
+ @SysLogger("getManagementEvaluationContent")
|
|
|
+ public RespDTO<Map<String, JSONObject>> getManagementEvaluationContent(@RequestBody @Valid PushVO pushVO) {
|
|
|
+ List<String> titles = Lists.newLinkedList();
|
|
|
+ titles.add("疗效评估");
|
|
|
+ return RespDTO.onSuc(pushFacade.getManagementEvaluationContent(pushVO, titles));
|
|
|
+ }
|
|
|
}
|