|
|
|
@ -4,12 +4,13 @@ import com.inspect.base.core.web.domain.AjaxResult; |
|
|
|
import org.springframework.cloud.openfeign.FeignClient; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
import org.springframework.web.bind.annotation.RequestParam; |
|
|
|
|
|
|
|
@FeignClient("inspect-main") |
|
|
|
public interface FeignMsgClient { |
|
|
|
@GetMapping({"/partrolresult/sendMessage"}) |
|
|
|
AjaxResult senMessageToMl(@RequestParam("type") String type, @RequestParam("messageBody") String msg); |
|
|
|
@PostMapping({"/partrolresult/sendMessage"}) |
|
|
|
AjaxResult senMessageToMl(@RequestParam String type, @RequestBody String messageBody); |
|
|
|
|
|
|
|
@PostMapping({"/client/upData"}) |
|
|
|
AjaxResult senMessageToZk(@RequestParam("type") String type, @RequestParam("msg") String msg); |
|
|
|
|