2017-05-23 06:00:44 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2017-05-25 10:08:39 +00:00
|
|
|
option java_package = "com.loafle.overflow.db.api";
|
|
|
|
|
2017-05-23 06:00:44 +00:00
|
|
|
message DBInput {
|
|
|
|
string targetDao = 1;
|
|
|
|
string method = 2;
|
|
|
|
map<string, string> param = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message DBOutput {
|
2017-05-25 10:08:39 +00:00
|
|
|
string result = 1;
|
2017-05-23 06:00:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
service DB {
|
|
|
|
rpc exec(DBInput) returns (DBOutput) {}
|
|
|
|
}
|
|
|
|
|