MqttFeignService.java 762 B

12345678910111213141516171819
  1. package com.zhongshu.card.client.service;
  2. import com.zhongshu.card.client.model.mqtt.SendMessageModel;
  3. import com.github.microservice.net.ResultContent;
  4. import io.swagger.v3.oas.annotations.Operation;
  5. import org.springframework.cloud.openfeign.FeignClient;
  6. import org.springframework.web.bind.annotation.RequestBody;
  7. import org.springframework.web.bind.annotation.RequestMapping;
  8. import org.springframework.web.bind.annotation.RequestMethod;
  9. @FeignClient(name = "fullcardserver/mqttFeign/manager")
  10. public interface MqttFeignService {
  11. @Operation(summary = "发送mqtt信息", description = "发送mqtt信息")
  12. @RequestMapping(value = "sendMessage", method = {RequestMethod.POST})
  13. ResultContent sendMessage(@RequestBody SendMessageModel param);
  14. }