Skip to content

Commit

Permalink
GetBoxDevices
Browse files Browse the repository at this point in the history
  • Loading branch information
rise0chen committed Nov 14, 2024
1 parent 1d70722 commit 0caed2f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
9 changes: 9 additions & 0 deletions system.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
// 获取机器人状态
Expand Down

0 comments on commit 0caed2f

Please sign in to comment.