222 lines
6.7 KiB
Go
222 lines
6.7 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
// versions:
|
||
// protoc-gen-go v1.36.11
|
||
// protoc v3.19.6
|
||
// source: service_sms_sender.proto
|
||
|
||
package pb
|
||
|
||
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)
|
||
)
|
||
|
||
// 发送短信
|
||
type SendSMSRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Mobile string `protobuf:"bytes,1,opt,name=mobile,proto3" json:"mobile,omitempty"` // 手机号
|
||
Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` // 内容
|
||
Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` // 验证码
|
||
Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` // 渠道类型:webHook ...
|
||
ParamsJSON []byte `protobuf:"bytes,5,opt,name=paramsJSON,proto3" json:"paramsJSON,omitempty"` // 参数
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SendSMSRequest) Reset() {
|
||
*x = SendSMSRequest{}
|
||
mi := &file_service_sms_sender_proto_msgTypes[0]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SendSMSRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SendSMSRequest) ProtoMessage() {}
|
||
|
||
func (x *SendSMSRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_sms_sender_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 SendSMSRequest.ProtoReflect.Descriptor instead.
|
||
func (*SendSMSRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_sms_sender_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
func (x *SendSMSRequest) GetMobile() string {
|
||
if x != nil {
|
||
return x.Mobile
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *SendSMSRequest) GetBody() string {
|
||
if x != nil {
|
||
return x.Body
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *SendSMSRequest) GetCode() string {
|
||
if x != nil {
|
||
return x.Code
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *SendSMSRequest) GetType() string {
|
||
if x != nil {
|
||
return x.Type
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *SendSMSRequest) GetParamsJSON() []byte {
|
||
if x != nil {
|
||
return x.ParamsJSON
|
||
}
|
||
return nil
|
||
}
|
||
|
||
type SendSMSResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
IsOk bool `protobuf:"varint,1,opt,name=isOk,proto3" json:"isOk,omitempty"` // 是否成功
|
||
Result string `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` // 发送返回内容,只有失败时才会有数据
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SendSMSResponse) Reset() {
|
||
*x = SendSMSResponse{}
|
||
mi := &file_service_sms_sender_proto_msgTypes[1]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SendSMSResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SendSMSResponse) ProtoMessage() {}
|
||
|
||
func (x *SendSMSResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_sms_sender_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 SendSMSResponse.ProtoReflect.Descriptor instead.
|
||
func (*SendSMSResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_sms_sender_proto_rawDescGZIP(), []int{1}
|
||
}
|
||
|
||
func (x *SendSMSResponse) GetIsOk() bool {
|
||
if x != nil {
|
||
return x.IsOk
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *SendSMSResponse) GetResult() string {
|
||
if x != nil {
|
||
return x.Result
|
||
}
|
||
return ""
|
||
}
|
||
|
||
var File_service_sms_sender_proto protoreflect.FileDescriptor
|
||
|
||
const file_service_sms_sender_proto_rawDesc = "" +
|
||
"\n" +
|
||
"\x18service_sms_sender.proto\x12\x02pb\"\x84\x01\n" +
|
||
"\x0eSendSMSRequest\x12\x16\n" +
|
||
"\x06mobile\x18\x01 \x01(\tR\x06mobile\x12\x12\n" +
|
||
"\x04body\x18\x02 \x01(\tR\x04body\x12\x12\n" +
|
||
"\x04code\x18\x03 \x01(\tR\x04code\x12\x12\n" +
|
||
"\x04type\x18\x04 \x01(\tR\x04type\x12\x1e\n" +
|
||
"\n" +
|
||
"paramsJSON\x18\x05 \x01(\fR\n" +
|
||
"paramsJSON\"=\n" +
|
||
"\x0fSendSMSResponse\x12\x12\n" +
|
||
"\x04isOk\x18\x01 \x01(\bR\x04isOk\x12\x16\n" +
|
||
"\x06result\x18\x02 \x01(\tR\x06result2F\n" +
|
||
"\x10SMSSenderService\x122\n" +
|
||
"\asendSMS\x12\x12.pb.SendSMSRequest\x1a\x13.pb.SendSMSResponseB\x06Z\x04./pbb\x06proto3"
|
||
|
||
var (
|
||
file_service_sms_sender_proto_rawDescOnce sync.Once
|
||
file_service_sms_sender_proto_rawDescData []byte
|
||
)
|
||
|
||
func file_service_sms_sender_proto_rawDescGZIP() []byte {
|
||
file_service_sms_sender_proto_rawDescOnce.Do(func() {
|
||
file_service_sms_sender_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_sms_sender_proto_rawDesc), len(file_service_sms_sender_proto_rawDesc)))
|
||
})
|
||
return file_service_sms_sender_proto_rawDescData
|
||
}
|
||
|
||
var file_service_sms_sender_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||
var file_service_sms_sender_proto_goTypes = []any{
|
||
(*SendSMSRequest)(nil), // 0: pb.SendSMSRequest
|
||
(*SendSMSResponse)(nil), // 1: pb.SendSMSResponse
|
||
}
|
||
var file_service_sms_sender_proto_depIdxs = []int32{
|
||
0, // 0: pb.SMSSenderService.sendSMS:input_type -> pb.SendSMSRequest
|
||
1, // 1: pb.SMSSenderService.sendSMS:output_type -> pb.SendSMSResponse
|
||
1, // [1:2] is the sub-list for method output_type
|
||
0, // [0:1] is the sub-list for method input_type
|
||
0, // [0:0] is the sub-list for extension type_name
|
||
0, // [0:0] is the sub-list for extension extendee
|
||
0, // [0:0] is the sub-list for field type_name
|
||
}
|
||
|
||
func init() { file_service_sms_sender_proto_init() }
|
||
func file_service_sms_sender_proto_init() {
|
||
if File_service_sms_sender_proto != nil {
|
||
return
|
||
}
|
||
type x struct{}
|
||
out := protoimpl.TypeBuilder{
|
||
File: protoimpl.DescBuilder{
|
||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_sms_sender_proto_rawDesc), len(file_service_sms_sender_proto_rawDesc)),
|
||
NumEnums: 0,
|
||
NumMessages: 2,
|
||
NumExtensions: 0,
|
||
NumServices: 1,
|
||
},
|
||
GoTypes: file_service_sms_sender_proto_goTypes,
|
||
DependencyIndexes: file_service_sms_sender_proto_depIdxs,
|
||
MessageInfos: file_service_sms_sender_proto_msgTypes,
|
||
}.Build()
|
||
File_service_sms_sender_proto = out.File
|
||
file_service_sms_sender_proto_goTypes = nil
|
||
file_service_sms_sender_proto_depIdxs = nil
|
||
}
|