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: feedback.proto
|
||||
// - protoc-gen-go-grpc v1.6.2
|
||||
// - protoc v7.35.0
|
||||
// source: module/base/feedback/proto/feedback.proto
|
||||
|
||||
package feedback
|
||||
|
||||
@@ -110,7 +110,7 @@ func (c *methodClient) Remark(ctx context.Context, in *RemarkRequest, opts ...gr
|
||||
}
|
||||
|
||||
// MethodServer is the server API for Method service.
|
||||
// All implementations must embed UnimplementedMethodServer
|
||||
// All implementations should embed UnimplementedMethodServer
|
||||
// for forward compatibility.
|
||||
//
|
||||
// Feedback-建议反馈模块
|
||||
@@ -121,10 +121,9 @@ type MethodServer interface {
|
||||
Modify(context.Context, *ModifyRequest) (*StatusReply, error)
|
||||
Delete(context.Context, *DeleteRequest) (*StatusReply, error)
|
||||
Remark(context.Context, *RemarkRequest) (*StatusReply, error)
|
||||
mustEmbedUnimplementedMethodServer()
|
||||
}
|
||||
|
||||
// UnimplementedMethodServer must be embedded to have
|
||||
// UnimplementedMethodServer should be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
@@ -132,25 +131,24 @@ type MethodServer interface {
|
||||
type UnimplementedMethodServer struct{}
|
||||
|
||||
func (UnimplementedMethodServer) List(context.Context, *ListRequest) (*ListReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method List not implemented")
|
||||
}
|
||||
func (UnimplementedMethodServer) Get(context.Context, *GetRequest) (*GetReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method Get not implemented")
|
||||
}
|
||||
func (UnimplementedMethodServer) Add(context.Context, *AddRequest) (*AddReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Add not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method Add not implemented")
|
||||
}
|
||||
func (UnimplementedMethodServer) Modify(context.Context, *ModifyRequest) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Modify not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method Modify not implemented")
|
||||
}
|
||||
func (UnimplementedMethodServer) Delete(context.Context, *DeleteRequest) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method Delete not implemented")
|
||||
}
|
||||
func (UnimplementedMethodServer) Remark(context.Context, *RemarkRequest) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Remark not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method Remark not implemented")
|
||||
}
|
||||
func (UnimplementedMethodServer) mustEmbedUnimplementedMethodServer() {}
|
||||
func (UnimplementedMethodServer) testEmbeddedByValue() {}
|
||||
func (UnimplementedMethodServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeMethodServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to MethodServer will
|
||||
@@ -160,7 +158,7 @@ type UnsafeMethodServer interface {
|
||||
}
|
||||
|
||||
func RegisterMethodServer(s grpc.ServiceRegistrar, srv MethodServer) {
|
||||
// If the following call pancis, it indicates UnimplementedMethodServer was
|
||||
// If the following call panics, it indicates UnimplementedMethodServer 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.
|
||||
@@ -311,5 +309,5 @@ var Method_ServiceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "feedback.proto",
|
||||
Metadata: "module/base/feedback/proto/feedback.proto",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user