Files
full/module/base/sender/pb/mail.pb.go

216 lines
7.2 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v7.35.1
// source: module/base/sender/proto/mail.proto
package sender
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 SendMailRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
TemplateKey string `protobuf:"bytes,2,opt,name=template_key,json=templateKey,proto3" json:"template_key,omitempty"`
To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"`
IsGenCode bool `protobuf:"varint,5,opt,name=is_gen_code,json=isGenCode,proto3" json:"is_gen_code,omitempty"` // 是否生成验证码
Paramters map[string]string `protobuf:"bytes,6,rep,name=paramters,proto3" json:"paramters,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // 验证码相关
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SendMailRequest) Reset() {
*x = SendMailRequest{}
mi := &file_module_base_sender_proto_mail_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SendMailRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SendMailRequest) ProtoMessage() {}
func (x *SendMailRequest) ProtoReflect() protoreflect.Message {
mi := &file_module_base_sender_proto_mail_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 SendMailRequest.ProtoReflect.Descriptor instead.
func (*SendMailRequest) Descriptor() ([]byte, []int) {
return file_module_base_sender_proto_mail_proto_rawDescGZIP(), []int{0}
}
func (x *SendMailRequest) GetProvider() string {
if x != nil {
return x.Provider
}
return ""
}
func (x *SendMailRequest) GetTemplateKey() string {
if x != nil {
return x.TemplateKey
}
return ""
}
func (x *SendMailRequest) GetTo() string {
if x != nil {
return x.To
}
return ""
}
func (x *SendMailRequest) GetIsGenCode() bool {
if x != nil {
return x.IsGenCode
}
return false
}
func (x *SendMailRequest) GetParamters() map[string]string {
if x != nil {
return x.Paramters
}
return nil
}
type SendMailReply struct {
state protoimpl.MessageState `protogen:"open.v1"`
Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SendMailReply) Reset() {
*x = SendMailReply{}
mi := &file_module_base_sender_proto_mail_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SendMailReply) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SendMailReply) ProtoMessage() {}
func (x *SendMailReply) ProtoReflect() protoreflect.Message {
mi := &file_module_base_sender_proto_mail_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 SendMailReply.ProtoReflect.Descriptor instead.
func (*SendMailReply) Descriptor() ([]byte, []int) {
return file_module_base_sender_proto_mail_proto_rawDescGZIP(), []int{1}
}
func (x *SendMailReply) GetData() string {
if x != nil {
return x.Data
}
return ""
}
var File_module_base_sender_proto_mail_proto protoreflect.FileDescriptor
const file_module_base_sender_proto_mail_proto_rawDesc = "" +
"\n" +
"#module/base/sender/proto/mail.proto\x12\x06sender\"\x84\x02\n" +
"\x0fSendMailRequest\x12\x1a\n" +
"\bprovider\x18\x01 \x01(\tR\bprovider\x12!\n" +
"\ftemplate_key\x18\x02 \x01(\tR\vtemplateKey\x12\x0e\n" +
"\x02to\x18\x04 \x01(\tR\x02to\x12\x1e\n" +
"\vis_gen_code\x18\x05 \x01(\bR\tisGenCode\x12D\n" +
"\tparamters\x18\x06 \x03(\v2&.sender.SendMailRequest.ParamtersEntryR\tparamters\x1a<\n" +
"\x0eParamtersEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"#\n" +
"\rSendMailReply\x12\x12\n" +
"\x04data\x18\x01 \x01(\tR\x04data2>\n" +
"\x04Mail\x126\n" +
"\x04Send\x12\x17.sender.SendMailRequest\x1a\x15.sender.SendMailReplyB'Z%bsm/full/module/base/sender/pb;senderb\x06proto3"
var (
file_module_base_sender_proto_mail_proto_rawDescOnce sync.Once
file_module_base_sender_proto_mail_proto_rawDescData []byte
)
func file_module_base_sender_proto_mail_proto_rawDescGZIP() []byte {
file_module_base_sender_proto_mail_proto_rawDescOnce.Do(func() {
file_module_base_sender_proto_mail_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_base_sender_proto_mail_proto_rawDesc), len(file_module_base_sender_proto_mail_proto_rawDesc)))
})
return file_module_base_sender_proto_mail_proto_rawDescData
}
var file_module_base_sender_proto_mail_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_module_base_sender_proto_mail_proto_goTypes = []any{
(*SendMailRequest)(nil), // 0: sender.SendMailRequest
(*SendMailReply)(nil), // 1: sender.SendMailReply
nil, // 2: sender.SendMailRequest.ParamtersEntry
}
var file_module_base_sender_proto_mail_proto_depIdxs = []int32{
2, // 0: sender.SendMailRequest.paramters:type_name -> sender.SendMailRequest.ParamtersEntry
0, // 1: sender.Mail.Send:input_type -> sender.SendMailRequest
1, // 2: sender.Mail.Send:output_type -> sender.SendMailReply
2, // [2:3] is the sub-list for method output_type
1, // [1:2] 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_module_base_sender_proto_mail_proto_init() }
func file_module_base_sender_proto_mail_proto_init() {
if File_module_base_sender_proto_mail_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_base_sender_proto_mail_proto_rawDesc), len(file_module_base_sender_proto_mail_proto_rawDesc)),
NumEnums: 0,
NumMessages: 3,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_module_base_sender_proto_mail_proto_goTypes,
DependencyIndexes: file_module_base_sender_proto_mail_proto_depIdxs,
MessageInfos: file_module_base_sender_proto_mail_proto_msgTypes,
}.Build()
File_module_base_sender_proto_mail_proto = out.File
file_module_base_sender_proto_mail_proto_goTypes = nil
file_module_base_sender_proto_mail_proto_depIdxs = nil
}