refactor: centralize protobuf and remove go-zero

This commit is contained in:
2026-08-09 15:10:19 +08:00
parent 5cc5fd92ed
commit 4bbed3156c
357 changed files with 14208 additions and 19903 deletions

View File

@@ -1,8 +1,8 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.5.1
// - protoc (unknown)
// source: mail.proto
// - protoc-gen-go-grpc v1.6.2
// - protoc v7.35.0
// source: module/base/sender/proto/mail.proto
package sender
@@ -50,16 +50,15 @@ func (c *mailClient) Send(ctx context.Context, in *SendMailRequest, opts ...grpc
}
// MailServer is the server API for Mail service.
// All implementations must embed UnimplementedMailServer
// All implementations should embed UnimplementedMailServer
// for forward compatibility.
//
// Mail method
type MailServer interface {
Send(context.Context, *SendMailRequest) (*SendMailReply, error)
mustEmbedUnimplementedMailServer()
}
// UnimplementedMailServer must be embedded to have
// UnimplementedMailServer should be embedded to have
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
@@ -67,10 +66,9 @@ type MailServer interface {
type UnimplementedMailServer struct{}
func (UnimplementedMailServer) Send(context.Context, *SendMailRequest) (*SendMailReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method Send not implemented")
return nil, status.Error(codes.Unimplemented, "method Send not implemented")
}
func (UnimplementedMailServer) mustEmbedUnimplementedMailServer() {}
func (UnimplementedMailServer) testEmbeddedByValue() {}
func (UnimplementedMailServer) testEmbeddedByValue() {}
// UnsafeMailServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to MailServer will
@@ -80,7 +78,7 @@ type UnsafeMailServer interface {
}
func RegisterMailServer(s grpc.ServiceRegistrar, srv MailServer) {
// If the following call pancis, it indicates UnimplementedMailServer was
// If the following call panics, it indicates UnimplementedMailServer was
// embedded by pointer and is nil. This will cause panics if an
// unimplemented method is ever invoked, so we test this at initialization
// time to prevent it from happening at runtime later due to I/O.
@@ -121,5 +119,5 @@ var Mail_ServiceDesc = grpc.ServiceDesc{
},
},
Streams: []grpc.StreamDesc{},
Metadata: "mail.proto",
Metadata: "module/base/sender/proto/mail.proto",
}