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,12 +1,13 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.6.1
// - protoc (unknown)
// source: verify.proto
// - protoc-gen-go-grpc v1.6.2
// - protoc v7.35.0
// source: module/base/passport/proto/verify.proto
package passport
import (
protobuf "bsm/full/protobuf"
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
@@ -30,9 +31,9 @@ const (
// Passport(会员通行证)-验证
type VerifyClient interface {
// 认证请求
Request(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*StatusReply, error)
Request(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
// KYC 认证回调
JumioCallback(ctx context.Context, in *JumioCallbackPayload, opts ...grpc.CallOption) (*StatusReply, error)
JumioCallback(ctx context.Context, in *JumioCallbackPayload, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
}
type verifyClient struct {
@@ -43,9 +44,9 @@ func NewVerifyClient(cc grpc.ClientConnInterface) VerifyClient {
return &verifyClient{cc}
}
func (c *verifyClient) Request(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*StatusReply, error) {
func (c *verifyClient) Request(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(StatusReply)
out := new(protobuf.StatusReply)
err := c.cc.Invoke(ctx, Verify_Request_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -53,9 +54,9 @@ func (c *verifyClient) Request(ctx context.Context, in *VerifyRequest, opts ...g
return out, nil
}
func (c *verifyClient) JumioCallback(ctx context.Context, in *JumioCallbackPayload, opts ...grpc.CallOption) (*StatusReply, error) {
func (c *verifyClient) JumioCallback(ctx context.Context, in *JumioCallbackPayload, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(StatusReply)
out := new(protobuf.StatusReply)
err := c.cc.Invoke(ctx, Verify_JumioCallback_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -64,33 +65,31 @@ func (c *verifyClient) JumioCallback(ctx context.Context, in *JumioCallbackPaylo
}
// VerifyServer is the server API for Verify service.
// All implementations must embed UnimplementedVerifyServer
// All implementations should embed UnimplementedVerifyServer
// for forward compatibility.
//
// Passport(会员通行证)-验证
type VerifyServer interface {
// 认证请求
Request(context.Context, *VerifyRequest) (*StatusReply, error)
Request(context.Context, *VerifyRequest) (*protobuf.StatusReply, error)
// KYC 认证回调
JumioCallback(context.Context, *JumioCallbackPayload) (*StatusReply, error)
mustEmbedUnimplementedVerifyServer()
JumioCallback(context.Context, *JumioCallbackPayload) (*protobuf.StatusReply, error)
}
// UnimplementedVerifyServer must be embedded to have
// UnimplementedVerifyServer should be embedded to have
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
// pointer dereference when methods are called.
type UnimplementedVerifyServer struct{}
func (UnimplementedVerifyServer) Request(context.Context, *VerifyRequest) (*StatusReply, error) {
func (UnimplementedVerifyServer) Request(context.Context, *VerifyRequest) (*protobuf.StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method Request not implemented")
}
func (UnimplementedVerifyServer) JumioCallback(context.Context, *JumioCallbackPayload) (*StatusReply, error) {
func (UnimplementedVerifyServer) JumioCallback(context.Context, *JumioCallbackPayload) (*protobuf.StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method JumioCallback not implemented")
}
func (UnimplementedVerifyServer) mustEmbedUnimplementedVerifyServer() {}
func (UnimplementedVerifyServer) testEmbeddedByValue() {}
func (UnimplementedVerifyServer) testEmbeddedByValue() {}
// UnsafeVerifyServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to VerifyServer will
@@ -163,5 +162,5 @@ var Verify_ServiceDesc = grpc.ServiceDesc{
},
},
Streams: []grpc.StreamDesc{},
Metadata: "verify.proto",
Metadata: "module/base/passport/proto/verify.proto",
}