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. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc (unknown)
// source: verify.proto
// protoc v7.35.0
// source: module/base/passport/proto/verify.proto
package passport
import (
protobuf "bsm/full/protobuf"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
@@ -31,7 +32,7 @@ type VerifyRequest struct {
func (x *VerifyRequest) Reset() {
*x = VerifyRequest{}
mi := &file_verify_proto_msgTypes[0]
mi := &file_module_base_passport_proto_verify_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -43,7 +44,7 @@ func (x *VerifyRequest) String() string {
func (*VerifyRequest) ProtoMessage() {}
func (x *VerifyRequest) ProtoReflect() protoreflect.Message {
mi := &file_verify_proto_msgTypes[0]
mi := &file_module_base_passport_proto_verify_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -56,7 +57,7 @@ func (x *VerifyRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use VerifyRequest.ProtoReflect.Descriptor instead.
func (*VerifyRequest) Descriptor() ([]byte, []int) {
return file_verify_proto_rawDescGZIP(), []int{0}
return file_module_base_passport_proto_verify_proto_rawDescGZIP(), []int{0}
}
func (x *VerifyRequest) GetProvider() string {
@@ -90,7 +91,7 @@ type JumioCallbackPayload struct {
func (x *JumioCallbackPayload) Reset() {
*x = JumioCallbackPayload{}
mi := &file_verify_proto_msgTypes[1]
mi := &file_module_base_passport_proto_verify_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -102,7 +103,7 @@ func (x *JumioCallbackPayload) String() string {
func (*JumioCallbackPayload) ProtoMessage() {}
func (x *JumioCallbackPayload) ProtoReflect() protoreflect.Message {
mi := &file_verify_proto_msgTypes[1]
mi := &file_module_base_passport_proto_verify_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -115,7 +116,7 @@ func (x *JumioCallbackPayload) ProtoReflect() protoreflect.Message {
// Deprecated: Use JumioCallbackPayload.ProtoReflect.Descriptor instead.
func (*JumioCallbackPayload) Descriptor() ([]byte, []int) {
return file_verify_proto_rawDescGZIP(), []int{1}
return file_module_base_passport_proto_verify_proto_rawDescGZIP(), []int{1}
}
func (x *JumioCallbackPayload) GetScanReference() string {
@@ -184,7 +185,7 @@ type VerificationStatus struct {
func (x *VerificationStatus) Reset() {
*x = VerificationStatus{}
mi := &file_verify_proto_msgTypes[2]
mi := &file_module_base_passport_proto_verify_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -196,7 +197,7 @@ func (x *VerificationStatus) String() string {
func (*VerificationStatus) ProtoMessage() {}
func (x *VerificationStatus) ProtoReflect() protoreflect.Message {
mi := &file_verify_proto_msgTypes[2]
mi := &file_module_base_passport_proto_verify_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -209,7 +210,7 @@ func (x *VerificationStatus) ProtoReflect() protoreflect.Message {
// Deprecated: Use VerificationStatus.ProtoReflect.Descriptor instead.
func (*VerificationStatus) Descriptor() ([]byte, []int) {
return file_verify_proto_rawDescGZIP(), []int{2}
return file_module_base_passport_proto_verify_proto_rawDescGZIP(), []int{2}
}
func (x *VerificationStatus) GetState() string {
@@ -238,7 +239,7 @@ type Document struct {
func (x *Document) Reset() {
*x = Document{}
mi := &file_verify_proto_msgTypes[3]
mi := &file_module_base_passport_proto_verify_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -250,7 +251,7 @@ func (x *Document) String() string {
func (*Document) ProtoMessage() {}
func (x *Document) ProtoReflect() protoreflect.Message {
mi := &file_verify_proto_msgTypes[3]
mi := &file_module_base_passport_proto_verify_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -263,7 +264,7 @@ func (x *Document) ProtoReflect() protoreflect.Message {
// Deprecated: Use Document.ProtoReflect.Descriptor instead.
func (*Document) Descriptor() ([]byte, []int) {
return file_verify_proto_rawDescGZIP(), []int{3}
return file_module_base_passport_proto_verify_proto_rawDescGZIP(), []int{3}
}
func (x *Document) GetStatus() string {
@@ -306,7 +307,7 @@ type PersonalInformation struct {
func (x *PersonalInformation) Reset() {
*x = PersonalInformation{}
mi := &file_verify_proto_msgTypes[4]
mi := &file_module_base_passport_proto_verify_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -318,7 +319,7 @@ func (x *PersonalInformation) String() string {
func (*PersonalInformation) ProtoMessage() {}
func (x *PersonalInformation) ProtoReflect() protoreflect.Message {
mi := &file_verify_proto_msgTypes[4]
mi := &file_module_base_passport_proto_verify_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -331,7 +332,7 @@ func (x *PersonalInformation) ProtoReflect() protoreflect.Message {
// Deprecated: Use PersonalInformation.ProtoReflect.Descriptor instead.
func (*PersonalInformation) Descriptor() ([]byte, []int) {
return file_verify_proto_rawDescGZIP(), []int{4}
return file_module_base_passport_proto_verify_proto_rawDescGZIP(), []int{4}
}
func (x *PersonalInformation) GetFirstName() string {
@@ -372,7 +373,7 @@ type FaceMap struct {
func (x *FaceMap) Reset() {
*x = FaceMap{}
mi := &file_verify_proto_msgTypes[5]
mi := &file_module_base_passport_proto_verify_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -384,7 +385,7 @@ func (x *FaceMap) String() string {
func (*FaceMap) ProtoMessage() {}
func (x *FaceMap) ProtoReflect() protoreflect.Message {
mi := &file_verify_proto_msgTypes[5]
mi := &file_module_base_passport_proto_verify_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -397,7 +398,7 @@ func (x *FaceMap) ProtoReflect() protoreflect.Message {
// Deprecated: Use FaceMap.ProtoReflect.Descriptor instead.
func (*FaceMap) Descriptor() ([]byte, []int) {
return file_verify_proto_rawDescGZIP(), []int{5}
return file_module_base_passport_proto_verify_proto_rawDescGZIP(), []int{5}
}
func (x *FaceMap) GetStatus() string {
@@ -414,11 +415,11 @@ func (x *FaceMap) GetSimilarity() float32 {
return 0
}
var File_verify_proto protoreflect.FileDescriptor
var File_module_base_passport_proto_verify_proto protoreflect.FileDescriptor
const file_verify_proto_rawDesc = "" +
const file_module_base_passport_proto_verify_proto_rawDesc = "" +
"\n" +
"\x1abase/passport/verify.proto\x12\bpassport\x1a\x15passport/blocks.proto\"\x9b\x01\n" +
"'module/base/passport/proto/verify.proto\x12\bpassport\x1a\x15protobuf/blocks.proto\"\x9b\x01\n" +
"\rVerifyRequest\x12\x1a\n" +
"\bprovider\x18\x01 \x01(\tR\bprovider\x125\n" +
"\x04args\x18\x02 \x03(\v2!.passport.VerifyRequest.ArgsEntryR\x04args\x1a7\n" +
@@ -452,26 +453,25 @@ const file_verify_proto_rawDesc = "" +
"\x06status\x18\x01 \x01(\tR\x06status\x12\x1e\n" +
"\n" +
"similarity\x18\x02 \x01(\x02R\n" +
"similarity2\x8f\x01\n" +
"\x06Verify\x12;\n" +
"\aRequest\x12\x17.passport.VerifyRequest\x1a\x15.passport.StatusReply\"\x00\x12H\n" +
"\rJumioCallback\x12\x1e.passport.JumioCallbackPayload\x1a\x15.passport.StatusReply\"\x00B\fZ\n" +
".;passportb\x06proto3"
"similarity2\x8b\x01\n" +
"\x06Verify\x129\n" +
"\aRequest\x12\x17.passport.VerifyRequest\x1a\x13.blocks.StatusReply\"\x00\x12F\n" +
"\rJumioCallback\x12\x1e.passport.JumioCallbackPayload\x1a\x13.blocks.StatusReply\"\x00B+Z)bsm/full/module/base/passport/pb;passportb\x06proto3"
var (
file_verify_proto_rawDescOnce sync.Once
file_verify_proto_rawDescData []byte
file_module_base_passport_proto_verify_proto_rawDescOnce sync.Once
file_module_base_passport_proto_verify_proto_rawDescData []byte
)
func file_verify_proto_rawDescGZIP() []byte {
file_verify_proto_rawDescOnce.Do(func() {
file_verify_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_verify_proto_rawDesc), len(file_verify_proto_rawDesc)))
func file_module_base_passport_proto_verify_proto_rawDescGZIP() []byte {
file_module_base_passport_proto_verify_proto_rawDescOnce.Do(func() {
file_module_base_passport_proto_verify_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_base_passport_proto_verify_proto_rawDesc), len(file_module_base_passport_proto_verify_proto_rawDesc)))
})
return file_verify_proto_rawDescData
return file_module_base_passport_proto_verify_proto_rawDescData
}
var file_verify_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
var file_verify_proto_goTypes = []any{
var file_module_base_passport_proto_verify_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
var file_module_base_passport_proto_verify_proto_goTypes = []any{
(*VerifyRequest)(nil), // 0: passport.VerifyRequest
(*JumioCallbackPayload)(nil), // 1: passport.JumioCallbackPayload
(*VerificationStatus)(nil), // 2: passport.VerificationStatus
@@ -479,9 +479,9 @@ var file_verify_proto_goTypes = []any{
(*PersonalInformation)(nil), // 4: passport.PersonalInformation
(*FaceMap)(nil), // 5: passport.FaceMap
nil, // 6: passport.VerifyRequest.ArgsEntry
(*StatusReply)(nil), // 7: passport.StatusReply
(*protobuf.StatusReply)(nil), // 7: blocks.StatusReply
}
var file_verify_proto_depIdxs = []int32{
var file_module_base_passport_proto_verify_proto_depIdxs = []int32{
6, // 0: passport.VerifyRequest.args:type_name -> passport.VerifyRequest.ArgsEntry
2, // 1: passport.JumioCallbackPayload.verification_status:type_name -> passport.VerificationStatus
3, // 2: passport.JumioCallbackPayload.document:type_name -> passport.Document
@@ -489,8 +489,8 @@ var file_verify_proto_depIdxs = []int32{
5, // 4: passport.JumioCallbackPayload.face_map:type_name -> passport.FaceMap
0, // 5: passport.Verify.Request:input_type -> passport.VerifyRequest
1, // 6: passport.Verify.JumioCallback:input_type -> passport.JumioCallbackPayload
7, // 7: passport.Verify.Request:output_type -> passport.StatusReply
7, // 8: passport.Verify.JumioCallback:output_type -> passport.StatusReply
7, // 7: passport.Verify.Request:output_type -> blocks.StatusReply
7, // 8: passport.Verify.JumioCallback:output_type -> blocks.StatusReply
7, // [7:9] is the sub-list for method output_type
5, // [5:7] is the sub-list for method input_type
5, // [5:5] is the sub-list for extension type_name
@@ -498,27 +498,26 @@ var file_verify_proto_depIdxs = []int32{
0, // [0:5] is the sub-list for field type_name
}
func init() { file_verify_proto_init() }
func file_verify_proto_init() {
if File_verify_proto != nil {
func init() { file_module_base_passport_proto_verify_proto_init() }
func file_module_base_passport_proto_verify_proto_init() {
if File_module_base_passport_proto_verify_proto != nil {
return
}
file_blocks_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_verify_proto_rawDesc), len(file_verify_proto_rawDesc)),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_base_passport_proto_verify_proto_rawDesc), len(file_module_base_passport_proto_verify_proto_rawDesc)),
NumEnums: 0,
NumMessages: 7,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_verify_proto_goTypes,
DependencyIndexes: file_verify_proto_depIdxs,
MessageInfos: file_verify_proto_msgTypes,
GoTypes: file_module_base_passport_proto_verify_proto_goTypes,
DependencyIndexes: file_module_base_passport_proto_verify_proto_depIdxs,
MessageInfos: file_module_base_passport_proto_verify_proto_msgTypes,
}.Build()
File_verify_proto = out.File
file_verify_proto_goTypes = nil
file_verify_proto_depIdxs = nil
File_module_base_passport_proto_verify_proto = out.File
file_module_base_passport_proto_verify_proto_goTypes = nil
file_module_base_passport_proto_verify_proto_depIdxs = nil
}