feat:rpc gs增加gm接口
This commit is contained in:
1 parent
86a65e6f9b
commit
7cdcb3ec09
17 files changed
+501
-17
No files matched your search
@@ -0,0 +1,22 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package gs.api;
|
||||
option go_package = "hk4e/gs/api;api";
|
||||
|
||||
//import "natsrpc.proto";
|
||||
//import "testdata.proto";
|
||||
|
||||
// GM 服务
|
||||
service GM {
|
||||
rpc Cmd (CmdRequest) returns (CmdReply) {}
|
||||
}
|
||||
|
||||
message CmdRequest {
|
||||
string func_name = 1;
|
||||
repeated string param = 2;
|
||||
}
|
||||
|
||||
message CmdReply {
|
||||
int32 code = 1; // 0 表示成功
|
||||
string message = 2;
|
||||
}
|
||||
Reference in new issue
Block a user