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: address.proto
|
||||
// - protoc-gen-go-grpc v1.6.2
|
||||
// - protoc v7.35.0
|
||||
// source: module/ec/address/proto/address.proto
|
||||
|
||||
package address
|
||||
|
||||
@@ -103,7 +103,7 @@ func (c *libraryClient) Delete(ctx context.Context, in *AddressDeleteRequest, op
|
||||
}
|
||||
|
||||
// LibraryServer is the server API for Library service.
|
||||
// All implementations must embed UnimplementedLibraryServer
|
||||
// All implementations should embed UnimplementedLibraryServer
|
||||
// for forward compatibility.
|
||||
//
|
||||
// 地址库
|
||||
@@ -118,10 +118,9 @@ type LibraryServer interface {
|
||||
Fetch(context.Context, *IdentRequest) (*AddressListReply, error)
|
||||
// 删除一个地址
|
||||
Delete(context.Context, *AddressDeleteRequest) (*StatusReply, error)
|
||||
mustEmbedUnimplementedLibraryServer()
|
||||
}
|
||||
|
||||
// UnimplementedLibraryServer must be embedded to have
|
||||
// UnimplementedLibraryServer should be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
@@ -129,22 +128,21 @@ type LibraryServer interface {
|
||||
type UnimplementedLibraryServer struct{}
|
||||
|
||||
func (UnimplementedLibraryServer) Create(context.Context, *AddressCreateRequest) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method Create not implemented")
|
||||
}
|
||||
func (UnimplementedLibraryServer) Modify(context.Context, *AddressItem) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Modify not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method Modify not implemented")
|
||||
}
|
||||
func (UnimplementedLibraryServer) Get(context.Context, *IdentRequest) (*AddressItem, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method Get not implemented")
|
||||
}
|
||||
func (UnimplementedLibraryServer) Fetch(context.Context, *IdentRequest) (*AddressListReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Fetch not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method Fetch not implemented")
|
||||
}
|
||||
func (UnimplementedLibraryServer) Delete(context.Context, *AddressDeleteRequest) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method Delete not implemented")
|
||||
}
|
||||
func (UnimplementedLibraryServer) mustEmbedUnimplementedLibraryServer() {}
|
||||
func (UnimplementedLibraryServer) testEmbeddedByValue() {}
|
||||
func (UnimplementedLibraryServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeLibraryServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to LibraryServer will
|
||||
@@ -154,7 +152,7 @@ type UnsafeLibraryServer interface {
|
||||
}
|
||||
|
||||
func RegisterLibraryServer(s grpc.ServiceRegistrar, srv LibraryServer) {
|
||||
// If the following call pancis, it indicates UnimplementedLibraryServer was
|
||||
// If the following call panics, it indicates UnimplementedLibraryServer 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.
|
||||
@@ -283,5 +281,5 @@ var Library_ServiceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "address.proto",
|
||||
Metadata: "module/ec/address/proto/address.proto",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user