فهرست منبع

添加预问诊接口

lipc 6 سال پیش
والد
کامیت
95dab004ff

+ 18 - 0
tran-service/src/main/java/com/diagbot/client/PrecServiceClient.java

@@ -0,0 +1,18 @@
+package com.diagbot.client;
+
+import com.diagbot.client.hystrix.PrecServiceHystrix;
+import org.springframework.cloud.openfeign.FeignClient;
+
+
+/**
+ * @Description: 调用预问诊服务
+ * @author: lipc
+ * @time: 2019/8/21 14:34
+ */
+@FeignClient(value = "prec-service", fallback = PrecServiceHystrix.class)
+public interface PrecServiceClient {
+
+}
+
+
+

+ 23 - 0
tran-service/src/main/java/com/diagbot/client/hystrix/PrecServiceHystrix.java

@@ -0,0 +1,23 @@
+package com.diagbot.client.hystrix;
+
+import com.diagbot.client.PrecServiceClient;
+import com.diagbot.dto.HisInquirysForDjDTO;
+import com.diagbot.dto.RespDTO;
+import com.diagbot.vo.HisInquirysForDjVO;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.stereotype.Component;
+
+import java.util.List;
+
+
+/**
+ * @Description: 调用预问诊服务
+ * @author: lipc
+ * @time: 2019/8/21 14:34
+ */
+@Component
+@Slf4j
+public class PrecServiceHystrix implements PrecServiceClient {
+
+
+}

+ 12 - 0
tran-service/src/main/java/com/diagbot/facade/PrecServiceFacade.java

@@ -0,0 +1,12 @@
+package com.diagbot.facade;
+
+import com.diagbot.client.PrecServiceClient;
+import org.springframework.beans.factory.annotation.Autowired;
+
+public class PrecServiceFacade {
+
+    @Autowired
+    PrecServiceClient precServiceClient;
+
+
+}

+ 14 - 0
tran-service/src/main/java/com/diagbot/web/PrecServiceController.java

@@ -0,0 +1,14 @@
+package com.diagbot.web;
+
+import io.swagger.annotations.Api;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+@RestController
+@RequestMapping("/prec")
+@Api(value = "预问诊对接", tags = { "预问诊对接" })
+@SuppressWarnings("unchecked")
+public class PrecServiceController {
+
+
+}