23 lines
380 B
Protocol Buffer
23 lines
380 B
Protocol Buffer
|
syntax = "proto3";
|
||
|
|
||
|
service IGAPI {
|
||
|
rpc login () returns (Reply) {}
|
||
|
|
||
|
rpc account_info () returns (Reply) {}
|
||
|
|
||
|
rpc upload (Request) returns (Reply) {}
|
||
|
|
||
|
rpc delete (Request) returns (Reply) {}
|
||
|
|
||
|
rpc setting (Request) returns (Reply) {}
|
||
|
}
|
||
|
|
||
|
message Request {
|
||
|
int code = 1;
|
||
|
repeated string args = 2;
|
||
|
}
|
||
|
|
||
|
message Reply {
|
||
|
int err = 1;
|
||
|
map<string, string> result = 2;
|
||
|
}
|