|
@@ -1,6 +1,7 @@
|
|
package com.diagbot.web;
|
|
package com.diagbot.web;
|
|
|
|
|
|
|
|
|
|
|
|
+import com.diagbot.dto.ConceptBaseDTO;
|
|
import com.diagbot.dto.DisScaleDTO;
|
|
import com.diagbot.dto.DisScaleDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.entity.ScaleContent;
|
|
import com.diagbot.entity.ScaleContent;
|
|
@@ -8,6 +9,7 @@ import com.diagbot.facade.DisScaleFacade;
|
|
import com.diagbot.facade.ScaleContentFacade;
|
|
import com.diagbot.facade.ScaleContentFacade;
|
|
import com.diagbot.vo.DisScaleVO;
|
|
import com.diagbot.vo.DisScaleVO;
|
|
import com.diagbot.vo.PushVO;
|
|
import com.diagbot.vo.PushVO;
|
|
|
|
+import com.diagbot.vo.ScaleIndexVO;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -16,6 +18,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
+import javax.validation.Valid;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -52,4 +55,12 @@ public class ScaleController {
|
|
List<ScaleContent> data = scaleContentFacade.getContent(pushVO);
|
|
List<ScaleContent> data = scaleContentFacade.getContent(pushVO);
|
|
return RespDTO.onSuc(data);
|
|
return RespDTO.onSuc(data);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "知识库标准化-量表搜索[by:zhoutg]",
|
|
|
|
+ notes = "")
|
|
|
|
+ @PostMapping("/index")
|
|
|
|
+ public RespDTO<List<DisScaleDTO>> index(@Valid @RequestBody ScaleIndexVO scaleVO) {
|
|
|
|
+ List<ConceptBaseDTO> data = scaleContentFacade.indexFac(scaleVO);
|
|
|
|
+ return RespDTO.onSuc(data);
|
|
|
|
+ }
|
|
}
|
|
}
|