2023-11-30 03:05:42 +00:00
|
|
|
|
syntax = "proto3"; //版本声明,使用v3版本
|
|
|
|
|
|
|
|
|
|
package notify;
|
|
|
|
|
option go_package = "gitlab.fusenpack.com/backend/notify;service";
|
|
|
|
|
|
|
|
|
|
// 导入google/api/annotations.proto 注释依赖
|
|
|
|
|
import "google/api/annotations.proto";
|
|
|
|
|
import "service/basic.proto";
|
|
|
|
|
import "google/protobuf/struct.proto";
|
|
|
|
|
import "google/protobuf/any.proto";
|
2023-12-06 04:08:20 +00:00
|
|
|
|
import "google/api/httpbody.proto";
|
2023-11-30 03:05:42 +00:00
|
|
|
|
|
|
|
|
|
//定义服务
|
|
|
|
|
service notify {
|
2023-12-06 04:08:20 +00:00
|
|
|
|
// 邮件注册确认
|
2023-12-07 07:34:40 +00:00
|
|
|
|
rpc EmailSend(basic.Request) returns (EmailSendRes) {}
|
2023-12-01 10:01:03 +00:00
|
|
|
|
|
|
|
|
|
// 邮件注册确认
|
2023-12-07 07:34:40 +00:00
|
|
|
|
rpc EmailRegisterConfirm(stream EmailStreamReq) returns (stream EmailStreamResp) {}
|
2023-12-06 04:08:20 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message EmailSendReq {
|
2023-12-07 07:34:40 +00:00
|
|
|
|
string name = 1;
|
2023-12-06 04:08:20 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message EmailStreamReq {
|
|
|
|
|
string file_name = 1;
|
2023-12-07 07:34:40 +00:00
|
|
|
|
string file_content = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message EmailStreamResp {
|
|
|
|
|
string code = 1;
|
|
|
|
|
string ok = 2;
|
2023-12-06 04:08:20 +00:00
|
|
|
|
}
|
|
|
|
|
|
2023-12-06 09:13:51 +00:00
|
|
|
|
|
|
|
|
|
message EmailSendRes {
|
|
|
|
|
string file_name = 1;
|
|
|
|
|
}
|