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.
35 lines
668 B
35 lines
668 B
syntax = "proto3";
|
|
|
|
package api;
|
|
|
|
import "google/api/annotations.proto";
|
|
option go_package = "bkb-notify/api";
|
|
|
|
|
|
// The Email service definition.
|
|
service Email {
|
|
// 发送一个邮件
|
|
rpc SendEmail (SendRequest) returns (SendEmailReply) {
|
|
option (google.api.http) = {
|
|
post: "email/send"
|
|
body: "*"
|
|
};
|
|
}
|
|
}
|
|
|
|
message SendRequest {
|
|
//收件人 必填参数
|
|
repeated string to=1;
|
|
//邮件主题,必填参数
|
|
string subject=2;
|
|
//消息体,支持富文本
|
|
string body=3;
|
|
//附件地址
|
|
repeated string files=4;
|
|
}
|
|
|
|
// The response message containing the greetings
|
|
message SendEmailReply {
|
|
int32 code = 1;
|
|
string message = 2;
|
|
}
|
|
|