From 1300c78aa64a3ab7d88f17a8ab1c3a5276b498b7 Mon Sep 17 00:00:00 2001 From: "huangsimin@fusen.cn" Date: Fri, 26 Jan 2024 15:06:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/notify.proto | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/service/notify.proto b/service/notify.proto index d71a4de..807b4ca 100644 --- a/service/notify.proto +++ b/service/notify.proto @@ -12,10 +12,10 @@ import "google/protobuf/timestamp.proto"; service notify { // 心跳 必要 用来启动邮件 - rpc Ping(basic.Request) returns (basic.Response) {} + rpc Ping( basic.Request) returns (basic.Response) {} // 邮件发送基础版本 - rpc EmailSend(EmailSendReq) returns (EmailSendResp) {} + rpc EmailSend( EmailSendReq) returns (EmailSendResp) {} // 通过邮件通知 注册确认 rpc EmailRegisterConfirm( EmailRegisterReq) returns ( EmailRegisterResp) {} @@ -70,7 +70,7 @@ message EmailNotifyBasic { // 默认是 type email message EmailSendReq { - EmailNotifyBasic basic_email = 1; + EmailNotifyBasic basic_email = 1; // 邮件基础要素 string title = 2; // 邮件标题 string content = 3; // 邮件内容 Operator operator = 4; // 操作类型 @@ -81,10 +81,9 @@ message EmailSendReq { enum NotifyType { email = 0; // email feishu = 1; // 飞书 - wechat = 2; // 微信 + // wechat = 2; // 微信 } - // 操作类型 enum EmailStatus { ok = 0; // 成功 @@ -94,11 +93,9 @@ enum EmailStatus { finish = 4; // 结束 } - - message EmailSendResp { - EmailStatus status = 1; - string msg = 2; + EmailStatus status = 1; // 邮件的状态 + string msg = 2; // 通知信息 } message EmailRegisterReq { @@ -113,8 +110,8 @@ message EmailRegisterResp { message EmailResetHtmlReq { - EmailNotifyBasic basic_email = 1; - string confirmation_link = 2; + EmailNotifyBasic basic_email = 1; // 邮件基础要素 + string confirmation_link = 2; // 确认链接 } message EmailResetHtmlResp { @@ -122,6 +119,7 @@ message EmailResetHtmlResp { string notify_id = 2; // 通知id } +// 这个不会接在rpc服务里 message EmailResetConfirmReq { string reset_password_link = 1; string reset_token = 2; @@ -134,8 +132,8 @@ message EmailResetConfirmResp { message OrderPaymentDetailsReq { - EmailNotifyBasic basic_email = 1; - string payment_details_link = 2; + EmailNotifyBasic basic_email = 1; // 邮件基础要素 + string payment_details_link = 2; // 支付详情链接 } message OrderPaymentDetailsResp { @@ -144,10 +142,11 @@ message OrderPaymentDetailsResp { } message OrderStatusTransitionReq { - EmailNotifyBasic basic_email = 1; + EmailNotifyBasic basic_email = 1; // 邮件基础要素 string last_status = 2; // 上个状态 string current_status = 3; // 当前状态 string check_status_link = 4; // 检查状态 + bool is_show_click_text = 5; // 展示 开始生产 到 生产完成时 的特殊显示语句 } message OrderStatusTransitionResp { @@ -157,7 +156,7 @@ message OrderStatusTransitionResp { message OrderPayArrearsReq { - EmailNotifyBasic basic_email = 1; + EmailNotifyBasic basic_email = 1; // 邮件基础要素 string pay_arrears_link = 2; // 检查状态 }