diff --git a/plugin.proto b/plugin.proto index 34047b1..ab433d9 100644 --- a/plugin.proto +++ b/plugin.proto @@ -49,7 +49,9 @@ service PluginService { rpc EnablePlugin(PluginIndex) returns (CommandStdout); // 禁用插件 rpc DisablePlugin(PluginIndex) returns (CommandStdout); - // 获取更新信息 + // 重启守护程序 + rpc RestartPluginDaemon(PluginIndex) returns (google.protobuf.Empty); + // 获取守护程序输出 rpc GetPluginDaemonStdout(PluginIndex) returns (CommandStdout); // 执行命令行程序 rpc RunPluginCmd(RunPluginCmdRequest) returns (CommandStdout); diff --git a/system.proto b/system.proto index bba5dba..004248d 100644 --- a/system.proto +++ b/system.proto @@ -82,6 +82,13 @@ message SystemInfo { CpuInfo cpu = 41; } +message GetBoxDevicesRequest { + string prefix = 2; +} +message GetBoxDevicesResponse { + repeated string devices = 1; +} + message SetVirtualIpRequest { // 网卡接口名 string ifname = 1; @@ -232,6 +239,8 @@ service SystemService { rpc GetHardwareInfo(google.protobuf.Empty) returns (HardwareInfo); // 软件信息 rpc GetSoftwareInfo(google.protobuf.Empty) returns (SoftwareInfo); + // 获取控制箱dev设备列表 + rpc GetBoxDevices(GetBoxDevicesRequest) returns (GetBoxDevicesResponse); // 设置虚拟IP rpc SetVirtualIp(SetVirtualIpRequest) returns (google.protobuf.Empty); // 获取机器人状态