mirror of
https://gitee.com/jiuyilian/embedded-framework.git
synced 2025-01-06 10:16:51 -05:00
21 lines
307 B
Protocol Buffer
21 lines
307 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package protorpc;
|
|
|
|
message Error {
|
|
int32 code = 1;
|
|
string message = 2;
|
|
}
|
|
|
|
message Request {
|
|
uint64 id = 1;
|
|
string method = 2;
|
|
repeated bytes params = 3;
|
|
}
|
|
|
|
message Response {
|
|
uint64 id = 1;
|
|
bytes result = 2;
|
|
Error error = 3;
|
|
}
|