Files
EdgeCommon/pkg/rpc/protos/service_sms_sender.proto
2023-11-17 15:00:11 +08:00

24 lines
537 B
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

syntax = "proto3";
option go_package = "./pb";
package pb;
// 短信发送服务
service SMSSenderService {
// 发送短信
rpc sendSMS(SendSMSRequest) returns (SendSMSResponse);
}
// 发送短信
message SendSMSRequest {
string mobile = 1; // 手机号
string body = 2; // 内容
string code = 3; // 验证码
string type = 4; // 渠道类型webHook ...
bytes paramsJSON = 5; // 参数
}
message SendSMSResponse {
bool isOk = 1; // 是否成功
string result = 2; // 发送返回内容,只有失败时才会有数据
}