IMFeign.java 551 B

1234567891011121314151617
  1. package com.steerinfo.dil.feign;
  2. import org.springframework.cloud.openfeign.FeignClient;
  3. import org.springframework.web.bind.annotation.PostMapping;
  4. import org.springframework.web.bind.annotation.RequestBody;
  5. import org.springframework.web.bind.annotation.ResponseBody;
  6. import java.util.HashMap;
  7. import java.util.List;
  8. import java.util.Map;
  9. @FeignClient(value = "DIL-IM-DEV", url = "${openfeign.ImFeign.url}")
  10. public interface IMFeign {
  11. @PostMapping("/websocket/sendToUser")
  12. @ResponseBody
  13. String sendToUser(@RequestBody HashMap map);
  14. }