|
@@ -0,0 +1,35 @@
|
|
|
+package com.diagbot.web;
|
|
|
+
|
|
|
+import com.diagbot.annotation.SysLogger;
|
|
|
+import com.diagbot.dto.RespDTO;
|
|
|
+import com.diagbot.facade.EnumsDataFacade;
|
|
|
+import com.diagbot.util.EnumEntriesBuilder;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @Description: 病历管理枚举数据获取类
|
|
|
+ * @author: zhaops
|
|
|
+ * @time: 2020/1/19
|
|
|
+ */
|
|
|
+@RestController
|
|
|
+@Api(value = "病历管理枚举数据获取API", tags = { "病历管理枚举数据获取API" })
|
|
|
+@SuppressWarnings("unchecked")
|
|
|
+public class EnumsController {
|
|
|
+ @Autowired
|
|
|
+ private EnumsDataFacade enumsDataFacade;
|
|
|
+
|
|
|
+ @ApiOperation(value = "病历管理枚举数据获取[by:zhaops]",
|
|
|
+ notes = "病历管理枚举数据获取")
|
|
|
+ @PostMapping("/getMrEnumsData")
|
|
|
+ @SysLogger("getMrEnumsData")
|
|
|
+ public RespDTO<Map<String, List<EnumEntriesBuilder.Entry>>> getEnumsData() {
|
|
|
+ return RespDTO.onSuc(enumsDataFacade.getEnumsData());
|
|
|
+ }
|
|
|
+}
|