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); // 发送事件消息
|
|
}
|