From 85a86667248bb3a646218e93b64266137093c09c Mon Sep 17 00:00:00 2001 From: "huangsimin@fusen.cn" Date: Fri, 26 Jan 2024 10:32:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0notify=E7=9A=84=E7=BB=93?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/notify.proto | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/service/notify.proto b/service/notify.proto index d777e77..d71a4de 100644 --- a/service/notify.proto +++ b/service/notify.proto @@ -15,7 +15,7 @@ service notify { rpc Ping(basic.Request) returns (basic.Response) {} // 邮件发送基础版本 - rpc EmailSend(EmailSendReq) returns (EmailSendRes) {} + rpc EmailSend(EmailSendReq) returns (EmailSendResp) {} // 通过邮件通知 注册确认 rpc EmailRegisterConfirm( EmailRegisterReq) returns ( EmailRegisterResp) {} @@ -64,6 +64,7 @@ message EmailNotifyBasic { optional string notify_id = 1; // 用于处理唯一的任务,重发都会被利用到 256字节, 如果不写自动生成一个uuid string sender = 2; // 发送者 string target_email = 3; // 发送的目标email + string subject_title = 4; // 子标题 } @@ -95,14 +96,14 @@ enum EmailStatus { -message EmailSendRes { +message EmailSendResp { EmailStatus status = 1; string msg = 2; } message EmailRegisterReq { - EmailNotifyBasic basic_email = 1; - string confirmation_link = 2; + EmailNotifyBasic basic_email = 1; // 邮件基础要素 + string confirmation_link = 2; // 邮件确认链接 } message EmailRegisterResp { @@ -113,7 +114,7 @@ message EmailRegisterResp { message EmailResetHtmlReq { EmailNotifyBasic basic_email = 1; - string confirmation_link = 4; + string confirmation_link = 2; } message EmailResetHtmlResp {