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;
|
||||
}
|
||||
28
module/base/sender/proto/sms.proto
Normal file
28
module/base/sender/proto/sms.proto
Normal file
@@ -0,0 +1,28 @@
|
||||
syntax = "proto3";
|
||||
package sender ;
|
||||
option go_package=".;sender";
|
||||
|
||||
// sms method
|
||||
service Sms {
|
||||
rpc Send(SmsSendRequest) returns (SmsReply);
|
||||
rpc Verify(SmsVerifyRequest) returns (SmsReply);
|
||||
}
|
||||
|
||||
// sms module
|
||||
message SmsSendRequest {
|
||||
string provider =1;
|
||||
string sign_name = 2; // 必传项
|
||||
string template_code = 3; // 必传项
|
||||
string phone = 4; // 必传项
|
||||
bool is_gen_code = 6; // 是否生成验证码
|
||||
map<string,string> paramters=5; // 验证码相关
|
||||
}
|
||||
|
||||
message SmsReply {
|
||||
string reply = 1;
|
||||
}
|
||||
|
||||
message SmsVerifyRequest {
|
||||
string phone = 1;
|
||||
string code = 2;
|
||||
}
|
||||
Reference in New Issue
Block a user