refactor: reorganize modules and add Linux build tooling
This commit is contained in:
21
module/base/sender/proto/mail.proto
Normal file
21
module/base/sender/proto/mail.proto
Normal file
@@ -0,0 +1,21 @@
|
||||
syntax = "proto3";
|
||||
package sender;
|
||||
option go_package=".;sender";
|
||||
|
||||
// Mail method
|
||||
service Mail {
|
||||
rpc Send(SendMailRequest) returns (SendMailReply);
|
||||
}
|
||||
|
||||
// sms module
|
||||
message SendMailRequest {
|
||||
string provider =1;
|
||||
string template_key = 2;
|
||||
string to = 4;
|
||||
bool is_gen_code = 5; // 是否生成验证码
|
||||
map<string,string> paramters=6; // 验证码相关
|
||||
}
|
||||
|
||||
message SendMailReply {
|
||||
string data = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user