更新notify的结构
This commit is contained in:
parent
a5165828ba
commit
85a8666724
|
@ -15,7 +15,7 @@ service notify {
|
||||||
rpc Ping(basic.Request) returns (basic.Response) {}
|
rpc Ping(basic.Request) returns (basic.Response) {}
|
||||||
|
|
||||||
// 邮件发送基础版本
|
// 邮件发送基础版本
|
||||||
rpc EmailSend(EmailSendReq) returns (EmailSendRes) {}
|
rpc EmailSend(EmailSendReq) returns (EmailSendResp) {}
|
||||||
|
|
||||||
// 通过邮件通知 注册确认
|
// 通过邮件通知 注册确认
|
||||||
rpc EmailRegisterConfirm( EmailRegisterReq) returns ( EmailRegisterResp) {}
|
rpc EmailRegisterConfirm( EmailRegisterReq) returns ( EmailRegisterResp) {}
|
||||||
|
@ -64,6 +64,7 @@ message EmailNotifyBasic {
|
||||||
optional string notify_id = 1; // 用于处理唯一的任务,重发都会被利用到 256字节, 如果不写自动生成一个uuid
|
optional string notify_id = 1; // 用于处理唯一的任务,重发都会被利用到 256字节, 如果不写自动生成一个uuid
|
||||||
string sender = 2; // 发送者
|
string sender = 2; // 发送者
|
||||||
string target_email = 3; // 发送的目标email
|
string target_email = 3; // 发送的目标email
|
||||||
|
string subject_title = 4; // 子标题
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -95,14 +96,14 @@ enum EmailStatus {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
message EmailSendRes {
|
message EmailSendResp {
|
||||||
EmailStatus status = 1;
|
EmailStatus status = 1;
|
||||||
string msg = 2;
|
string msg = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message EmailRegisterReq {
|
message EmailRegisterReq {
|
||||||
EmailNotifyBasic basic_email = 1;
|
EmailNotifyBasic basic_email = 1; // 邮件基础要素
|
||||||
string confirmation_link = 2;
|
string confirmation_link = 2; // 邮件确认链接
|
||||||
}
|
}
|
||||||
|
|
||||||
message EmailRegisterResp {
|
message EmailRegisterResp {
|
||||||
|
@ -113,7 +114,7 @@ message EmailRegisterResp {
|
||||||
|
|
||||||
message EmailResetHtmlReq {
|
message EmailResetHtmlReq {
|
||||||
EmailNotifyBasic basic_email = 1;
|
EmailNotifyBasic basic_email = 1;
|
||||||
string confirmation_link = 4;
|
string confirmation_link = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message EmailResetHtmlResp {
|
message EmailResetHtmlResp {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user