shao há 1 semana atrás
pai
commit
e08421184c
2 ficheiros alterados com 31 adições e 1 exclusões
  1. 1 1
      README.md
  2. 30 0
      dr_dcmtk_idl.proto

+ 1 - 1
README.md

@@ -8,5 +8,5 @@ protoc --go_out=. --go-grpc_out=. dr_protocol_idl.proto
 
 #### 生成c++代码
 ```shell
-protoc --cpp_out=./dr_resource_pb/ dr_resource_idl.proto
+protoc --cpp_out=. --grpc_out=. --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` dr_dcmtk_idl.proto
 ```

+ 30 - 0
dr_dcmtk_idl.proto

@@ -0,0 +1,30 @@
+syntax = "proto3";
+
+option go_package = "dr_dcmtk_pb/";
+
+package dr.dcmtk;
+
+message EmptyRequest {}
+
+service Basic {
+  rpc SoftwareInfo (EmptyRequest) returns (SoftwareInfoReply) {}
+}
+
+message SoftwareInfoReply {
+  string module     = 1;
+  string desc       = 2;
+  string build      = 3;
+  string version    = 4;
+}
+
+service Dcm {
+  rpc GenerateUniqueIdentifier(GUIRequest) returns (GUIReply) {}
+}
+
+message GUIRequest {
+  string site_uid_root = 1;
+}
+
+message GUIReply {
+  string study_instance_uid = 1;
+}