测试
This commit is contained in:
@@ -8,15 +8,42 @@ 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"
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user