mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-12 03:10:24 +08:00
29 lines
529 B
Protocol Buffer
29 lines
529 B
Protocol Buffer
|
|
syntax = "proto3";
|
||
|
|
option go_package = "./pb";
|
||
|
|
|
||
|
|
package pb;
|
||
|
|
|
||
|
|
import "rpc_messages.proto";
|
||
|
|
|
||
|
|
service SysSettingService {
|
||
|
|
// 更改配置
|
||
|
|
rpc updateSysSetting (UpdateSysSettingRequest) returns (RPCUpdateSuccess);
|
||
|
|
|
||
|
|
// 读取配置
|
||
|
|
rpc readSysSetting (ReadSysSettingRequest) returns (ReadSysSettingResponse);
|
||
|
|
}
|
||
|
|
|
||
|
|
// 更改配置
|
||
|
|
message UpdateSysSettingRequest {
|
||
|
|
string code = 1;
|
||
|
|
bytes valueJSON = 2;
|
||
|
|
}
|
||
|
|
|
||
|
|
// 读取配置
|
||
|
|
message ReadSysSettingRequest {
|
||
|
|
string code = 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
message ReadSysSettingResponse {
|
||
|
|
bytes valueJSON = 1;
|
||
|
|
}
|