proto/service/notify.proto

48 lines
1007 B
Protocol Buffer
Raw Normal View History

2023-11-30 11:05:42 +08: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 12:08:20 +08:00
import "google/api/httpbody.proto";
2023-11-30 11:05:42 +08:00
//定义服务
service notify {
2023-12-06 12:08:20 +08:00
// 邮件注册确认
2023-12-06 17:13:51 +08:00
rpc EmailSend(basic.Request) returns (EmailSendRes) {
2023-12-06 12:08:20 +08:00
option (google.api.http) = {
post: "/api/notify/email/send"
body: "*"
};
}
2023-12-01 18:01:03 +08:00
// 邮件注册确认
rpc EmailRegisterConfirm(basic.Request) returns (basic.Response) {
2023-11-30 11:05:42 +08:00
option (google.api.http) = {
2023-12-06 12:08:20 +08:00
post: "/api/notify/email/register/confirm"
2023-11-30 11:05:42 +08:00
body: "*"
};
}
2023-12-06 12:08:20 +08:00
2023-12-06 17:13:51 +08:00
2023-12-06 12:08:20 +08:00
}
message EmailSendReq {
}
message EmailStreamReq {
string file_name = 1;
google.api.HttpBody file_content = 2;
}
2023-12-06 17:13:51 +08:00
message EmailSendRes {
string file_name = 1;
}