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 (EmailSendRes) {} // 邮件注册确认 rpc EmailRegisterConfirm(stream EmailStreamReq) returns (stream EmailStreamResp) {} } message EmailSendReq { string name = 1; } message EmailStreamReq { string file_name = 1; string file_content = 2; } message EmailStreamResp { string code = 1; string ok = 2; } message EmailSendRes { string file_name = 1; }