SmartPlatClient.java
1022 Bytes
package cn.com.glsx.smart.modules.client;
import cn.com.glsx.smart.modules.model.request.OrderRequest;
import cn.com.glsx.smart.modules.model.request.RemoteRequest;
import com.glsx.plat.core.web.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
/**
* @author zhouhaibao
* @date 2021/5/13 11:01
*/
@FeignClient(name="smartDevices-platform-service")
public interface SmartPlatClient {
@ResponseBody
@RequestMapping(value = "/smartDevices-platform-service/device/devices/commands", method = {RequestMethod.POST})
R orderIssue(@RequestBody OrderRequest orderRequest);
@ResponseBody
@RequestMapping(value = "/device/infrareds/scenes/command", method = {RequestMethod.POST})
R instructionInfIssue(@RequestBody RemoteRequest remoteRequest);
}