修改为纯grpc

This commit is contained in:
huangsimin@fusen.cn
2023-12-06 17:13:51 +08:00
parent 310a02d7f5
commit c5df2b6478
7 changed files with 98 additions and 186 deletions

View File

@@ -13,7 +13,7 @@ import "google/api/httpbody.proto";
//定义服务
service notify {
// 邮件注册确认
rpc EmailSend(basic.Request) returns (basic.Response) {
rpc EmailSend(basic.Request) returns (EmailSendRes) {
option (google.api.http) = {
post: "/api/notify/email/send"
body: "*"
@@ -29,13 +29,7 @@ service notify {
}
// rpc StreamTest(stream EmailStreamReq) returns (basic.Response) {
// option (google.api.http) = {
// post: "/api/notify/email/stream"
// body: "file_content"
// };
// }
}
message EmailSendReq {
@@ -47,3 +41,7 @@ message EmailStreamReq {
google.api.HttpBody file_content = 2;
}
message EmailSendRes {
string file_name = 1;
}