|
@@ -3,8 +3,11 @@ package com.diagbot.web;
|
|
|
|
|
|
import com.diagbot.dto.DisScaleDTO;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
+import com.diagbot.entity.ScaleContent;
|
|
|
import com.diagbot.facade.DisScaleFacade;
|
|
|
+import com.diagbot.facade.ScaleContentFacade;
|
|
|
import com.diagbot.vo.DisScaleVO;
|
|
|
+import com.diagbot.vo.PushVO;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -24,18 +27,30 @@ import java.util.List;
|
|
|
* @since 2019-03-11
|
|
|
*/
|
|
|
@RestController
|
|
|
-@RequestMapping("/disScale")
|
|
|
+@RequestMapping("/scale")
|
|
|
@Api(value = "诊断量表API", tags = { "诊断量表API" })
|
|
|
public class DisScaleController {
|
|
|
|
|
|
@Autowired
|
|
|
DisScaleFacade disScaleFacade;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ ScaleContentFacade scaleContentFacade;
|
|
|
+
|
|
|
@ApiOperation(value = "返回诊断量表列表[by:zhoutg]",
|
|
|
notes = "")
|
|
|
- @PostMapping("/getDisScale")
|
|
|
- public RespDTO<List<DisScaleDTO>> getDisType(@RequestBody DisScaleVO scaleVO) {
|
|
|
+ @PostMapping("/getList")
|
|
|
+ public RespDTO<List<DisScaleDTO>> getList(@RequestBody DisScaleVO scaleVO) {
|
|
|
List<DisScaleDTO> data = disScaleFacade.getDisScaleFac(scaleVO.getDisId());
|
|
|
return RespDTO.onSuc(data);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation(value = "获取量表内容[by:zhoutg]",
|
|
|
+ notes = "")
|
|
|
+ @PostMapping("/getContent")
|
|
|
+ public RespDTO<List<ScaleContent>> getContent(@RequestBody PushVO pushVO) {
|
|
|
+ List<ScaleContent> data = scaleContentFacade.getContent(pushVO);
|
|
|
+ return RespDTO.onSuc(data);
|
|
|
+ }
|
|
|
}
|