ESFeign.java 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. package com.steerinfo.dil.feign;
  2. import com.steerinfo.dil.util.PageListAdd;
  3. import org.springframework.cloud.openfeign.FeignClient;
  4. import org.springframework.web.bind.annotation.PostMapping;
  5. import org.springframework.web.bind.annotation.RequestBody;
  6. import org.springframework.web.bind.annotation.RequestParam;
  7. import java.util.List;
  8. import java.util.Map;
  9. /**
  10. * @Author zhangnan
  11. * @Date 2021/7/27 15:49
  12. * @Version 1.0
  13. */
  14. @FeignClient(value = "DIL-ES-DEV",url = "172.16.33.161:8089/api/v1/es")
  15. public interface ESFeign {
  16. @PostMapping("getConResult")
  17. PageListAdd getConResult(@RequestBody(required = false) Map<String, Object> mapValue,
  18. @RequestParam String index,
  19. @RequestParam Integer apiId,
  20. @RequestParam Integer pageNum,
  21. @RequestParam Integer pageSize,
  22. @RequestParam String con);
  23. @PostMapping( value = "insertIndex",consumes = "application/json", produces = "application/json")
  24. void insertIndex(@RequestBody List<Map<String, Object>> detailListTotal);
  25. }