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: check.proto
// - protoc-gen-go-grpc v1.6.2
// - protoc v7.35.0
// source: module/base/initial/proto/check.proto
package initial
@@ -77,7 +77,7 @@ func (c *checkClient) Updates(ctx context.Context, in *CheckForUpdatesRequest, o
}
// CheckServer is the server API for Check service.
// All implementations must embed UnimplementedCheckServer
// All implementations should embed UnimplementedCheckServer
// for forward compatibility.
//
// initial-检测是否有新版或新的配置
@@ -88,10 +88,9 @@ type CheckServer interface {
Config(context.Context, *ConfigRequest) (*ConfigReply, error)
// 检查更新
Updates(context.Context, *CheckForUpdatesRequest) (*CheckForUpdatesReply, error)
mustEmbedUnimplementedCheckServer()
}
// UnimplementedCheckServer must be embedded to have
// UnimplementedCheckServer should be embedded to have
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
@@ -99,16 +98,15 @@ type CheckServer interface {
type UnimplementedCheckServer struct{}
func (UnimplementedCheckServer) Hello(context.Context, *Crc) (*StatusReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method Hello not implemented")
return nil, status.Error(codes.Unimplemented, "method Hello not implemented")
}
func (UnimplementedCheckServer) Config(context.Context, *ConfigRequest) (*ConfigReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method Config not implemented")
return nil, status.Error(codes.Unimplemented, "method Config not implemented")
}
func (UnimplementedCheckServer) Updates(context.Context, *CheckForUpdatesRequest) (*CheckForUpdatesReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method Updates not implemented")
return nil, status.Error(codes.Unimplemented, "method Updates not implemented")
}
func (UnimplementedCheckServer) mustEmbedUnimplementedCheckServer() {}
func (UnimplementedCheckServer) testEmbeddedByValue() {}
func (UnimplementedCheckServer) testEmbeddedByValue() {}
// UnsafeCheckServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to CheckServer will
@@ -118,7 +116,7 @@ type UnsafeCheckServer interface {
}
func RegisterCheckServer(s grpc.ServiceRegistrar, srv CheckServer) {
// If the following call pancis, it indicates UnimplementedCheckServer was
// If the following call panics, it indicates UnimplementedCheckServer 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.
@@ -203,5 +201,5 @@ var Check_ServiceDesc = grpc.ServiceDesc{
},
},
Streams: []grpc.StreamDesc{},
Metadata: "check.proto",
Metadata: "module/base/initial/proto/check.proto",
}