Merge branch 'master' of gitlab.fusenpack.com:backend/proto
This commit is contained in:
@@ -13,32 +13,24 @@ import "google/api/httpbody.proto";
|
||||
//定义服务
|
||||
service notify {
|
||||
// 邮件注册确认
|
||||
rpc EmailSend(basic.Request) returns (EmailSendRes) {
|
||||
option (google.api.http) = {
|
||||
post: "/api/notify/email/send"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
rpc EmailSend(basic.Request) returns (EmailSendRes) {}
|
||||
|
||||
// 邮件注册确认
|
||||
rpc EmailRegisterConfirm(basic.Request) returns (basic.Response) {
|
||||
option (google.api.http) = {
|
||||
post: "/api/notify/email/register/confirm"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
rpc EmailRegisterConfirm(stream EmailStreamReq) returns (stream EmailStreamResp) {}
|
||||
}
|
||||
|
||||
message EmailSendReq {
|
||||
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
message EmailStreamReq {
|
||||
string file_name = 1;
|
||||
google.api.HttpBody file_content = 2;
|
||||
string file_content = 2;
|
||||
}
|
||||
|
||||
message EmailStreamResp {
|
||||
string code = 1;
|
||||
string ok = 2;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user