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: data.proto
// - protoc-gen-go-grpc v1.6.2
// - protoc v7.35.0
// source: module/base/initial/proto/data.proto
package initial
@@ -76,7 +76,7 @@ func (c *dataClient) Datas(ctx context.Context, in *Empty, opts ...grpc.CallOpti
}
// DataServer is the server API for Data service.
// All implementations must embed UnimplementedDataServer
// All implementations should embed UnimplementedDataServer
// for forward compatibility.
//
// initial-数据
@@ -86,10 +86,9 @@ type DataServer interface {
Areas(context.Context, *AreasRequest) (*AreasReply, error)
// 系统数据
Datas(context.Context, *Empty) (*DatasReply, error)
mustEmbedUnimplementedDataServer()
}
// UnimplementedDataServer must be embedded to have
// UnimplementedDataServer should be embedded to have
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
@@ -97,16 +96,15 @@ type DataServer interface {
type UnimplementedDataServer struct{}
func (UnimplementedDataServer) Country(context.Context, *Empty) (*CountryReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method Country not implemented")
return nil, status.Error(codes.Unimplemented, "method Country not implemented")
}
func (UnimplementedDataServer) Areas(context.Context, *AreasRequest) (*AreasReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method Areas not implemented")
return nil, status.Error(codes.Unimplemented, "method Areas not implemented")
}
func (UnimplementedDataServer) Datas(context.Context, *Empty) (*DatasReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method Datas not implemented")
return nil, status.Error(codes.Unimplemented, "method Datas not implemented")
}
func (UnimplementedDataServer) mustEmbedUnimplementedDataServer() {}
func (UnimplementedDataServer) testEmbeddedByValue() {}
func (UnimplementedDataServer) testEmbeddedByValue() {}
// UnsafeDataServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to DataServer will
@@ -116,7 +114,7 @@ type UnsafeDataServer interface {
}
func RegisterDataServer(s grpc.ServiceRegistrar, srv DataServer) {
// If the following call pancis, it indicates UnimplementedDataServer was
// If the following call panics, it indicates UnimplementedDataServer 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.
@@ -201,5 +199,5 @@ var Data_ServiceDesc = grpc.ServiceDesc{
},
},
Streams: []grpc.StreamDesc{},
Metadata: "data.proto",
Metadata: "module/base/initial/proto/data.proto",
}