From 7860b079b41f6888c29fdcfc99012533a9cc98ad Mon Sep 17 00:00:00 2001 From: "insanity@loafle.com" Date: Thu, 25 May 2017 19:08:39 +0900 Subject: [PATCH] overflow db proxy grpc proto --- grpc/cmd | 3 ++- grpc/grpc.proto | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) 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 {