This commit is contained in:
parent
6ae48aee54
commit
d6856ec1c2
|
|
@ -70,6 +70,15 @@ public interface RemoteAircraftFlyService
|
|||
@PostMapping("/drone/power-on/{sn}")
|
||||
R<String> powerOn(@PathVariable("sn") String sn);
|
||||
|
||||
/**
|
||||
* 无人机关机接口
|
||||
*
|
||||
* @param sn 机场SN号
|
||||
* @return 关机响应
|
||||
*/
|
||||
@PostMapping("/drone/power-off/{sn}")
|
||||
R<String> powerOff(@PathVariable("sn") String sn);
|
||||
|
||||
/**
|
||||
* 查询设备状态
|
||||
*
|
||||
|
|
|
|||
|
|
@ -59,6 +59,12 @@ public class RemoteAircraftFlyFallbackFactory implements FallbackFactory<RemoteA
|
|||
return R.fail("无人机开机失败:" + throwable.getMessage());
|
||||
}
|
||||
|
||||
@Override
|
||||
public R<String> powerOff(String sn)
|
||||
{
|
||||
return R.fail("无人机关机失败:" + throwable.getMessage());
|
||||
}
|
||||
|
||||
@Override
|
||||
public R<MachineStateVO> getMachineState(String sn)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 2de46a69c31841efcff8f930457dd21e2878d9b0
|
||||
Subproject commit 42e6643b52f62acfdd7c002bbe3b7e809179c861
|
||||
Loading…
Reference in New Issue