BigDataServiceClient.java 951 B

123456789101112131415161718192021222324
  1. package com.diagbot.client;
  2. import com.diagbot.client.bean.GdbResponse;
  3. import com.diagbot.client.bean.Response;
  4. import com.diagbot.client.bean.ResponseData;
  5. import com.diagbot.client.bean.SearchData;
  6. import com.diagbot.client.hystrix.BigDataServiceHystrix;
  7. import org.springframework.cloud.openfeign.FeignClient;
  8. import org.springframework.web.bind.annotation.PostMapping;
  9. import org.springframework.web.bind.annotation.RequestBody;
  10. /**
  11. * @Description:调用大数据对接层服务
  12. * @Author:zhaops
  13. * @time: 2018/11/20 13:15
  14. */
  15. @FeignClient(name = "BigData", url = "${bigdata.server.address}", fallback = BigDataServiceHystrix.class)
  16. public interface BigDataServiceClient {
  17. @PostMapping(value = "/push-web/algorithm/neural")
  18. Response<ResponseData> bayesPageData(@RequestBody SearchData searchData);
  19. @PostMapping(value = "/push-web/graph/highRisk")
  20. Response<GdbResponse> highRiskPageData(@RequestBody SearchData searchData);
  21. }