2026-08-09 10:43:45 +08:00
|
|
|
syntax = "proto3";
|
|
|
|
|
package sender ;
|
2026-08-09 15:10:19 +08:00
|
|
|
option go_package = "bsm/full/module/base/sender/pb;sender";
|
2026-08-09 10:43:45 +08:00
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
|
}
|