refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.8
|
||||
// protoc (unknown)
|
||||
// source: mail.proto
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc v7.35.0
|
||||
// source: module/base/sender/proto/mail.proto
|
||||
|
||||
package sender
|
||||
|
||||
@@ -35,7 +35,7 @@ type SendMailRequest struct {
|
||||
|
||||
func (x *SendMailRequest) Reset() {
|
||||
*x = SendMailRequest{}
|
||||
mi := &file_mail_proto_msgTypes[0]
|
||||
mi := &file_module_base_sender_proto_mail_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -47,7 +47,7 @@ func (x *SendMailRequest) String() string {
|
||||
func (*SendMailRequest) ProtoMessage() {}
|
||||
|
||||
func (x *SendMailRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_mail_proto_msgTypes[0]
|
||||
mi := &file_module_base_sender_proto_mail_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -60,7 +60,7 @@ func (x *SendMailRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use SendMailRequest.ProtoReflect.Descriptor instead.
|
||||
func (*SendMailRequest) Descriptor() ([]byte, []int) {
|
||||
return file_mail_proto_rawDescGZIP(), []int{0}
|
||||
return file_module_base_sender_proto_mail_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *SendMailRequest) GetProvider() string {
|
||||
@@ -107,7 +107,7 @@ type SendMailReply struct {
|
||||
|
||||
func (x *SendMailReply) Reset() {
|
||||
*x = SendMailReply{}
|
||||
mi := &file_mail_proto_msgTypes[1]
|
||||
mi := &file_module_base_sender_proto_mail_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -119,7 +119,7 @@ func (x *SendMailReply) String() string {
|
||||
func (*SendMailReply) ProtoMessage() {}
|
||||
|
||||
func (x *SendMailReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_mail_proto_msgTypes[1]
|
||||
mi := &file_module_base_sender_proto_mail_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -132,7 +132,7 @@ func (x *SendMailReply) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use SendMailReply.ProtoReflect.Descriptor instead.
|
||||
func (*SendMailReply) Descriptor() ([]byte, []int) {
|
||||
return file_mail_proto_rawDescGZIP(), []int{1}
|
||||
return file_module_base_sender_proto_mail_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *SendMailReply) GetData() string {
|
||||
@@ -142,12 +142,11 @@ func (x *SendMailReply) GetData() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_mail_proto protoreflect.FileDescriptor
|
||||
var File_module_base_sender_proto_mail_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_mail_proto_rawDesc = "" +
|
||||
const file_module_base_sender_proto_mail_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x16" +
|
||||
"base/sender/mail.proto\x12\x06sender\"\x84\x02\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" +
|
||||
@@ -160,28 +159,27 @@ const file_mail_proto_rawDesc = "" +
|
||||
"\rSendMailReply\x12\x12\n" +
|
||||
"\x04data\x18\x01 \x01(\tR\x04data2>\n" +
|
||||
"\x04Mail\x126\n" +
|
||||
"\x04Send\x12\x17.sender.SendMailRequest\x1a\x15.sender.SendMailReplyB\n" +
|
||||
"Z\b.;senderb\x06proto3"
|
||||
"\x04Send\x12\x17.sender.SendMailRequest\x1a\x15.sender.SendMailReplyB'Z%bsm/full/module/base/sender/pb;senderb\x06proto3"
|
||||
|
||||
var (
|
||||
file_mail_proto_rawDescOnce sync.Once
|
||||
file_mail_proto_rawDescData []byte
|
||||
file_module_base_sender_proto_mail_proto_rawDescOnce sync.Once
|
||||
file_module_base_sender_proto_mail_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_mail_proto_rawDescGZIP() []byte {
|
||||
file_mail_proto_rawDescOnce.Do(func() {
|
||||
file_mail_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_mail_proto_rawDesc), len(file_mail_proto_rawDesc)))
|
||||
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_mail_proto_rawDescData
|
||||
return file_module_base_sender_proto_mail_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_mail_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||||
var file_mail_proto_goTypes = []any{
|
||||
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_mail_proto_depIdxs = []int32{
|
||||
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
|
||||
@@ -192,26 +190,26 @@ var file_mail_proto_depIdxs = []int32{
|
||||
0, // [0:1] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_mail_proto_init() }
|
||||
func file_mail_proto_init() {
|
||||
if File_mail_proto != nil {
|
||||
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_mail_proto_rawDesc), len(file_mail_proto_rawDesc)),
|
||||
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_mail_proto_goTypes,
|
||||
DependencyIndexes: file_mail_proto_depIdxs,
|
||||
MessageInfos: file_mail_proto_msgTypes,
|
||||
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_mail_proto = out.File
|
||||
file_mail_proto_goTypes = nil
|
||||
file_mail_proto_depIdxs = nil
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user