46 lines
910 B
Protocol Buffer
46 lines
910 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
option go_package = "github.com/yedf/dtm/dtmpb";
|
|
|
|
package dtmcli;
|
|
|
|
// The dtm service definition.
|
|
service Dtm {
|
|
rpc Call(DtmRequest) returns (DtmReply) {}
|
|
}
|
|
|
|
message DtmTransInfo {
|
|
string Gid = 1;
|
|
string TransType = 2;
|
|
string BranchID = 3;
|
|
string Dtm = 4;
|
|
}
|
|
|
|
// The request message containing the user's name.
|
|
message DtmRequest {
|
|
string Gid = 1;
|
|
string TransType = 2;
|
|
string QueryPrepared = 3;
|
|
string Method = 4;
|
|
map<string, string> Extra = 5;
|
|
bytes AppData = 6;
|
|
}
|
|
|
|
// The response message containing the greetings
|
|
message DtmReply {
|
|
string DtmResult = 1;
|
|
string DtmMessage = 2;
|
|
}
|
|
|
|
// The request message containing the user's name.
|
|
message BusiRequest {
|
|
dtmcli.DtmTransInfo info = 1;
|
|
map<string, string> Extra = 2;
|
|
bytes AppData = 3;
|
|
}
|
|
|
|
// The response message containing the greetings
|
|
message BusiReply {
|
|
string DtmResult = 1;
|
|
string DtmMessage = 2;
|
|
} |