This commit is contained in:
孙小云 2026-02-11 09:16:06 +08:00
parent 6ae48aee54
commit d6856ec1c2
3 changed files with 16 additions and 1 deletions

View File

@ -70,6 +70,15 @@ public interface RemoteAircraftFlyService
@PostMapping("/drone/power-on/{sn}") @PostMapping("/drone/power-on/{sn}")
R<String> powerOn(@PathVariable("sn") String sn); R<String> powerOn(@PathVariable("sn") String sn);
/**
* 无人机关机接口
*
* @param sn 机场SN号
* @return 关机响应
*/
@PostMapping("/drone/power-off/{sn}")
R<String> powerOff(@PathVariable("sn") String sn);
/** /**
* 查询设备状态 * 查询设备状态
* *

View File

@ -59,6 +59,12 @@ public class RemoteAircraftFlyFallbackFactory implements FallbackFactory<RemoteA
return R.fail("无人机开机失败:" + throwable.getMessage()); return R.fail("无人机开机失败:" + throwable.getMessage());
} }
@Override
public R<String> powerOff(String sn)
{
return R.fail("无人机关机失败:" + throwable.getMessage());
}
@Override @Override
public R<MachineStateVO> getMachineState(String sn) public R<MachineStateVO> getMachineState(String sn)
{ {

@ -1 +1 @@
Subproject commit 2de46a69c31841efcff8f930457dd21e2878d9b0 Subproject commit 42e6643b52f62acfdd7c002bbe3b7e809179c861