修改为纯grpc
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user