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: ads.proto
// - protoc-gen-go-grpc v1.6.2
// - protoc v7.35.0
// source: module/base/ads/proto/ads.proto
package ads
@@ -28,7 +28,7 @@ const (
//
// 广告子系统
type FetchClient interface {
//通过广告位获取广告信息
// 通过广告位获取广告信息
ByPos(ctx context.Context, in *ByPosRequest, opts ...grpc.CallOption) (*ByPosReply, error)
}
@@ -51,17 +51,16 @@ func (c *fetchClient) ByPos(ctx context.Context, in *ByPosRequest, opts ...grpc.
}
// FetchServer is the server API for Fetch service.
// All implementations must embed UnimplementedFetchServer
// All implementations should embed UnimplementedFetchServer
// for forward compatibility.
//
// 广告子系统
type FetchServer interface {
//通过广告位获取广告信息
// 通过广告位获取广告信息
ByPos(context.Context, *ByPosRequest) (*ByPosReply, error)
mustEmbedUnimplementedFetchServer()
}
// UnimplementedFetchServer must be embedded to have
// UnimplementedFetchServer should be embedded to have
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
@@ -69,10 +68,9 @@ type FetchServer interface {
type UnimplementedFetchServer struct{}
func (UnimplementedFetchServer) ByPos(context.Context, *ByPosRequest) (*ByPosReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method ByPos not implemented")
return nil, status.Error(codes.Unimplemented, "method ByPos not implemented")
}
func (UnimplementedFetchServer) mustEmbedUnimplementedFetchServer() {}
func (UnimplementedFetchServer) testEmbeddedByValue() {}
func (UnimplementedFetchServer) testEmbeddedByValue() {}
// UnsafeFetchServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to FetchServer will
@@ -82,7 +80,7 @@ type UnsafeFetchServer interface {
}
func RegisterFetchServer(s grpc.ServiceRegistrar, srv FetchServer) {
// If the following call pancis, it indicates UnimplementedFetchServer was
// If the following call panics, it indicates UnimplementedFetchServer 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.
@@ -123,5 +121,5 @@ var Fetch_ServiceDesc = grpc.ServiceDesc{
},
},
Streams: []grpc.StreamDesc{},
Metadata: "ads.proto",
Metadata: "module/base/ads/proto/ads.proto",
}