rpc
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
402 B

syntax = "proto3";
package mastermsg;
// 算术运算请求结构
message EventRequest {
string site_id = 1;
string domainname = 2;
string type = 3;
string memo = 4;
string data = 5;
}
// 算术运算响应结构
message EventResponse {
string event_id = 1; //ID
}
// rpc方法
service MsgService {
rpc sendEvent (EventRequest) returns (EventResponse); // 发送事件消息
}