syntax = "proto3"; package api; option go_package = "bkb-notify/api"; // The Email service definition. service Email { // 发送一个邮件 rpc SendEmail (SendRequest) returns (SendEmailReply) { } } message SendRequest { //收件人 必填参数 repeated string to=1; //邮件主题,必填参数 string subject=2; //消息体,支持富文本 string body=3; } // The response message containing the greetings message SendEmailReply { int32 code = 1; string message = 2; }