refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -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: sms.proto
|
||||
// - protoc-gen-go-grpc v1.6.2
|
||||
// - protoc v7.35.0
|
||||
// source: module/base/sender/proto/sms.proto
|
||||
|
||||
package sender
|
||||
|
||||
@@ -62,17 +62,16 @@ func (c *smsClient) Verify(ctx context.Context, in *SmsVerifyRequest, opts ...gr
|
||||
}
|
||||
|
||||
// SmsServer is the server API for Sms service.
|
||||
// All implementations must embed UnimplementedSmsServer
|
||||
// All implementations should embed UnimplementedSmsServer
|
||||
// for forward compatibility.
|
||||
//
|
||||
// sms method
|
||||
type SmsServer interface {
|
||||
Send(context.Context, *SmsSendRequest) (*SmsReply, error)
|
||||
Verify(context.Context, *SmsVerifyRequest) (*SmsReply, error)
|
||||
mustEmbedUnimplementedSmsServer()
|
||||
}
|
||||
|
||||
// UnimplementedSmsServer must be embedded to have
|
||||
// UnimplementedSmsServer should be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
@@ -80,13 +79,12 @@ type SmsServer interface {
|
||||
type UnimplementedSmsServer struct{}
|
||||
|
||||
func (UnimplementedSmsServer) Send(context.Context, *SmsSendRequest) (*SmsReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Send not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method Send not implemented")
|
||||
}
|
||||
func (UnimplementedSmsServer) Verify(context.Context, *SmsVerifyRequest) (*SmsReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Verify not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method Verify not implemented")
|
||||
}
|
||||
func (UnimplementedSmsServer) mustEmbedUnimplementedSmsServer() {}
|
||||
func (UnimplementedSmsServer) testEmbeddedByValue() {}
|
||||
func (UnimplementedSmsServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeSmsServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to SmsServer will
|
||||
@@ -96,7 +94,7 @@ type UnsafeSmsServer interface {
|
||||
}
|
||||
|
||||
func RegisterSmsServer(s grpc.ServiceRegistrar, srv SmsServer) {
|
||||
// If the following call pancis, it indicates UnimplementedSmsServer was
|
||||
// If the following call panics, it indicates UnimplementedSmsServer 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.
|
||||
@@ -159,5 +157,5 @@ var Sms_ServiceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "sms.proto",
|
||||
Metadata: "module/base/sender/proto/sms.proto",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user