diff --git a/grpc/cmd b/grpc/cmd index 22a562f..f247b50 100644 --- a/grpc/cmd +++ b/grpc/cmd @@ -1 +1,2 @@ -protoc -I grpc/ grpc/grpc.proto --go_out=plugins=grpc:grpc +protoc -I grpc/ grpc/grpc.proto --go_out=plugins=grpc:build/golang +protoc -I grpc/ grpc/grpc.proto --java_out=build/java diff --git a/grpc/grpc.proto b/grpc/grpc.proto index 9e23461..48e8fbb 100644 --- a/grpc/grpc.proto +++ b/grpc/grpc.proto @@ -1,5 +1,7 @@ syntax = "proto3"; +option java_package = "com.loafle.overflow.db.api"; + message DBInput { string targetDao = 1; string method = 2; @@ -7,7 +9,7 @@ message DBInput { } message DBOutput { - map result = 1; + string result = 1; } service DB {