zhaops 5 yıl önce
ebeveyn
işleme
40ae89d8f8

+ 0 - 28
triage-service/src/main/java/com/diagbot/client/PrecServiceClient.java

@@ -1,28 +0,0 @@
-package com.diagbot.client;
-
-import com.diagbot.client.hystrix.PrecServiceHystrix;
-import com.diagbot.dto.QuestionDTO;
-import com.diagbot.dto.RespDTO;
-import com.diagbot.vo.QuestionNameVO;
-import org.springframework.cloud.openfeign.FeignClient;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-
-import javax.validation.Valid;
-
-/**
- * @Description:
- * @Author:zhaops
- * @time: 2020/4/9 16:22
- */
-@FeignClient(value = "prec-service", fallback = PrecServiceHystrix.class)
-public interface PrecServiceClient {
-    /**
-     * 根据名称获取预问诊标签内容
-     *
-     * @param questionNameVO
-     * @return
-     */
-    @PostMapping("/questionInfo/getByName")
-    RespDTO<QuestionDTO> getByName(@Valid @RequestBody QuestionNameVO questionNameVO);
-}

+ 0 - 33
triage-service/src/main/java/com/diagbot/client/hystrix/PrecServiceHystrix.java

@@ -1,33 +0,0 @@
-package com.diagbot.client.hystrix;
-
-import com.diagbot.client.PrecServiceClient;
-import com.diagbot.dto.QuestionDTO;
-import com.diagbot.dto.RespDTO;
-import com.diagbot.vo.QuestionNameVO;
-import lombok.extern.slf4j.Slf4j;
-import org.springframework.stereotype.Component;
-import org.springframework.web.bind.annotation.RequestBody;
-
-import javax.validation.Valid;
-
-/**
- * @Description:
- * @Author:zhaops
- * @time: 2020/4/9 16:21
- */
-@Component
-@Slf4j
-public class PrecServiceHystrix implements PrecServiceClient {
-
-    /**
-     * 根据名称获取预问诊标签内容
-     *
-     * @param questionNameVO
-     * @return
-     */
-    @Override
-    public RespDTO<QuestionDTO> getByName(@Valid @RequestBody QuestionNameVO questionNameVO) {
-        log.error("【hystrix】调用{}异常", "getByName");
-        return null;
-    }
-}