proto/service/notify.proto
huangsimin@fusen.cn e2eb5ad78c 测试
2023-12-06 12:08:20 +08:00

50 lines
1.1 KiB
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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";
import "google/api/httpbody.proto";
//定义服务
service notify {
// 邮件注册确认
rpc EmailSend(basic.Request) returns (basic.Response) {
option (google.api.http) = {
post: "/api/notify/email/send"
body: "*"
};
}
// 邮件注册确认
rpc EmailRegisterConfirm(basic.Request) returns (basic.Response) {
option (google.api.http) = {
post: "/api/notify/email/register/confirm"
body: "*"
};
}
// rpc StreamTest(stream EmailStreamReq) returns (basic.Response) {
// option (google.api.http) = {
// post: "/api/notify/email/stream"
// body: "file_content"
// };
// }
}
message EmailSendReq {
}
message EmailStreamReq {
string file_name = 1;
google.api.HttpBody file_content = 2;
}