373 lines
11 KiB
Go
373 lines
11 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.8
|
|
// protoc (unknown)
|
|
// source: sms.proto
|
|
|
|
package notify
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// sms module
|
|
type SmsSendRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
SignName string `protobuf:"bytes,1,opt,name=sign_name,json=signName,proto3" json:"sign_name,omitempty"` // 必传项
|
|
TemplateCode string `protobuf:"bytes,2,opt,name=template_code,json=templateCode,proto3" json:"template_code,omitempty"` // 必传项
|
|
Phone string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"` // 必传项
|
|
Paramters map[string]string `protobuf:"bytes,5,rep,name=paramters,proto3" json:"paramters,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
// 验证码相关
|
|
GenerateCode bool `protobuf:"varint,6,opt,name=generate_code,json=generateCode,proto3" json:"generate_code,omitempty"` //是否生成验证码
|
|
ExpireInterval int64 `protobuf:"varint,7,opt,name=expire_interval,json=expireInterval,proto3" json:"expire_interval,omitempty"` //验证码缓存时间,单位:分钟,仅generate_code为true时会缓存,默认5分钟
|
|
CodeWidth int64 `protobuf:"varint,8,opt,name=code_width,json=codeWidth,proto3" json:"code_width,omitempty"` //验证码长度,默认 4
|
|
CodeKey string `protobuf:"bytes,9,opt,name=code_key,json=codeKey,proto3" json:"code_key,omitempty"` //template_code 模板中验证码的标识,默认code
|
|
HasBlackListFilter bool `protobuf:"varint,10,opt,name=has_black_list_filter,json=hasBlackListFilter,proto3" json:"has_black_list_filter,omitempty"` // 是否黑单过滤,默认不过滤
|
|
WihoutLimit bool `protobuf:"varint,11,opt,name=wihout_limit,json=wihoutLimit,proto3" json:"wihout_limit,omitempty"` //忽略每天短信条数上线限制,默认不忽略
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SmsSendRequest) Reset() {
|
|
*x = SmsSendRequest{}
|
|
mi := &file_sms_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SmsSendRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SmsSendRequest) ProtoMessage() {}
|
|
|
|
func (x *SmsSendRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sms_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SmsSendRequest.ProtoReflect.Descriptor instead.
|
|
func (*SmsSendRequest) Descriptor() ([]byte, []int) {
|
|
return file_sms_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *SmsSendRequest) GetSignName() string {
|
|
if x != nil {
|
|
return x.SignName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SmsSendRequest) GetTemplateCode() string {
|
|
if x != nil {
|
|
return x.TemplateCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SmsSendRequest) GetPhone() string {
|
|
if x != nil {
|
|
return x.Phone
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SmsSendRequest) GetParamters() map[string]string {
|
|
if x != nil {
|
|
return x.Paramters
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SmsSendRequest) GetGenerateCode() bool {
|
|
if x != nil {
|
|
return x.GenerateCode
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *SmsSendRequest) GetExpireInterval() int64 {
|
|
if x != nil {
|
|
return x.ExpireInterval
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SmsSendRequest) GetCodeWidth() int64 {
|
|
if x != nil {
|
|
return x.CodeWidth
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SmsSendRequest) GetCodeKey() string {
|
|
if x != nil {
|
|
return x.CodeKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SmsSendRequest) GetHasBlackListFilter() bool {
|
|
if x != nil {
|
|
return x.HasBlackListFilter
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *SmsSendRequest) GetWihoutLimit() bool {
|
|
if x != nil {
|
|
return x.WihoutLimit
|
|
}
|
|
return false
|
|
}
|
|
|
|
type SmsSendResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// string request_id = 1;
|
|
BizId string `protobuf:"bytes,2,opt,name=biz_id,json=bizId,proto3" json:"biz_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SmsSendResponse) Reset() {
|
|
*x = SmsSendResponse{}
|
|
mi := &file_sms_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SmsSendResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SmsSendResponse) ProtoMessage() {}
|
|
|
|
func (x *SmsSendResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sms_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SmsSendResponse.ProtoReflect.Descriptor instead.
|
|
func (*SmsSendResponse) Descriptor() ([]byte, []int) {
|
|
return file_sms_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *SmsSendResponse) GetBizId() string {
|
|
if x != nil {
|
|
return x.BizId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SmsVerifyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// string request_id = 1;
|
|
Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"`
|
|
Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SmsVerifyRequest) Reset() {
|
|
*x = SmsVerifyRequest{}
|
|
mi := &file_sms_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SmsVerifyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SmsVerifyRequest) ProtoMessage() {}
|
|
|
|
func (x *SmsVerifyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sms_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SmsVerifyRequest.ProtoReflect.Descriptor instead.
|
|
func (*SmsVerifyRequest) Descriptor() ([]byte, []int) {
|
|
return file_sms_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *SmsVerifyRequest) GetPhone() string {
|
|
if x != nil {
|
|
return x.Phone
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SmsVerifyRequest) GetCode() string {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PassResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Pass bool `protobuf:"varint,1,opt,name=pass,proto3" json:"pass,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PassResponse) Reset() {
|
|
*x = PassResponse{}
|
|
mi := &file_sms_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PassResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PassResponse) ProtoMessage() {}
|
|
|
|
func (x *PassResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_sms_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PassResponse.ProtoReflect.Descriptor instead.
|
|
func (*PassResponse) Descriptor() ([]byte, []int) {
|
|
return file_sms_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *PassResponse) GetPass() bool {
|
|
if x != nil {
|
|
return x.Pass
|
|
}
|
|
return false
|
|
}
|
|
|
|
var File_sms_proto protoreflect.FileDescriptor
|
|
|
|
const file_sms_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\tsms.proto\x12\x06notify\"\xc9\x03\n" +
|
|
"\x0eSmsSendRequest\x12\x1b\n" +
|
|
"\tsign_name\x18\x01 \x01(\tR\bsignName\x12#\n" +
|
|
"\rtemplate_code\x18\x02 \x01(\tR\ftemplateCode\x12\x14\n" +
|
|
"\x05phone\x18\x03 \x01(\tR\x05phone\x12C\n" +
|
|
"\tparamters\x18\x05 \x03(\v2%.notify.SmsSendRequest.ParamtersEntryR\tparamters\x12#\n" +
|
|
"\rgenerate_code\x18\x06 \x01(\bR\fgenerateCode\x12'\n" +
|
|
"\x0fexpire_interval\x18\a \x01(\x03R\x0eexpireInterval\x12\x1d\n" +
|
|
"\n" +
|
|
"code_width\x18\b \x01(\x03R\tcodeWidth\x12\x19\n" +
|
|
"\bcode_key\x18\t \x01(\tR\acodeKey\x121\n" +
|
|
"\x15has_black_list_filter\x18\n" +
|
|
" \x01(\bR\x12hasBlackListFilter\x12!\n" +
|
|
"\fwihout_limit\x18\v \x01(\bR\vwihoutLimit\x1a<\n" +
|
|
"\x0eParamtersEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"(\n" +
|
|
"\x0fSmsSendResponse\x12\x15\n" +
|
|
"\x06biz_id\x18\x02 \x01(\tR\x05bizId\"<\n" +
|
|
"\x10SmsVerifyRequest\x12\x14\n" +
|
|
"\x05phone\x18\x02 \x01(\tR\x05phone\x12\x12\n" +
|
|
"\x04code\x18\x03 \x01(\tR\x04code\"\"\n" +
|
|
"\fPassResponse\x12\x12\n" +
|
|
"\x04pass\x18\x01 \x01(\bR\x04pass2x\n" +
|
|
"\x03Sms\x127\n" +
|
|
"\x04Send\x12\x16.notify.SmsSendRequest\x1a\x17.notify.SmsSendResponse\x128\n" +
|
|
"\x06Verify\x12\x18.notify.SmsVerifyRequest\x1a\x14.notify.PassResponseB\n" +
|
|
"Z\b./notifyb\x06proto3"
|
|
|
|
var (
|
|
file_sms_proto_rawDescOnce sync.Once
|
|
file_sms_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_sms_proto_rawDescGZIP() []byte {
|
|
file_sms_proto_rawDescOnce.Do(func() {
|
|
file_sms_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_sms_proto_rawDesc), len(file_sms_proto_rawDesc)))
|
|
})
|
|
return file_sms_proto_rawDescData
|
|
}
|
|
|
|
var file_sms_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
|
var file_sms_proto_goTypes = []any{
|
|
(*SmsSendRequest)(nil), // 0: notify.SmsSendRequest
|
|
(*SmsSendResponse)(nil), // 1: notify.SmsSendResponse
|
|
(*SmsVerifyRequest)(nil), // 2: notify.SmsVerifyRequest
|
|
(*PassResponse)(nil), // 3: notify.PassResponse
|
|
nil, // 4: notify.SmsSendRequest.ParamtersEntry
|
|
}
|
|
var file_sms_proto_depIdxs = []int32{
|
|
4, // 0: notify.SmsSendRequest.paramters:type_name -> notify.SmsSendRequest.ParamtersEntry
|
|
0, // 1: notify.Sms.Send:input_type -> notify.SmsSendRequest
|
|
2, // 2: notify.Sms.Verify:input_type -> notify.SmsVerifyRequest
|
|
1, // 3: notify.Sms.Send:output_type -> notify.SmsSendResponse
|
|
3, // 4: notify.Sms.Verify:output_type -> notify.PassResponse
|
|
3, // [3:5] is the sub-list for method output_type
|
|
1, // [1:3] is the sub-list for method input_type
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_sms_proto_init() }
|
|
func file_sms_proto_init() {
|
|
if File_sms_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_sms_proto_rawDesc), len(file_sms_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 5,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_sms_proto_goTypes,
|
|
DependencyIndexes: file_sms_proto_depIdxs,
|
|
MessageInfos: file_sms_proto_msgTypes,
|
|
}.Build()
|
|
File_sms_proto = out.File
|
|
file_sms_proto_goTypes = nil
|
|
file_sms_proto_depIdxs = nil
|
|
}
|