refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc (unknown)
|
||||
// source: account.proto
|
||||
// protoc v7.35.0
|
||||
// source: module/base/passport/proto/account.proto
|
||||
|
||||
package passport
|
||||
|
||||
import (
|
||||
protobuf "bsm/full/protobuf"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
@@ -41,7 +42,7 @@ type GetFullReply struct {
|
||||
Cover string `protobuf:"bytes,15,opt,name=cover,proto3" json:"cover,omitempty"` // 背景&封面
|
||||
Score int32 `protobuf:"varint,16,opt,name=score,proto3" json:"score,omitempty"` // 积分
|
||||
Level int32 `protobuf:"varint,17,opt,name=level,proto3" json:"level,omitempty"` // 等级
|
||||
VerifyStatus *VerifyStatus `protobuf:"bytes,18,opt,name=verify_status,json=verifyStatus,proto3" json:"verify_status,omitempty"` // 用户验证状态
|
||||
VerifyStatus *protobuf.VerifyStatus `protobuf:"bytes,18,opt,name=verify_status,json=verifyStatus,proto3" json:"verify_status,omitempty"` // 用户验证状态
|
||||
Tags []*TagItem `protobuf:"bytes,19,rep,name=tags,proto3" json:"tags,omitempty"` // 用户标签
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
@@ -49,7 +50,7 @@ type GetFullReply struct {
|
||||
|
||||
func (x *GetFullReply) Reset() {
|
||||
*x = GetFullReply{}
|
||||
mi := &file_account_proto_msgTypes[0]
|
||||
mi := &file_module_base_passport_proto_account_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -61,7 +62,7 @@ func (x *GetFullReply) String() string {
|
||||
func (*GetFullReply) ProtoMessage() {}
|
||||
|
||||
func (x *GetFullReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_account_proto_msgTypes[0]
|
||||
mi := &file_module_base_passport_proto_account_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -74,7 +75,7 @@ func (x *GetFullReply) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use GetFullReply.ProtoReflect.Descriptor instead.
|
||||
func (*GetFullReply) Descriptor() ([]byte, []int) {
|
||||
return file_account_proto_rawDescGZIP(), []int{0}
|
||||
return file_module_base_passport_proto_account_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *GetFullReply) GetIdentity() string {
|
||||
@@ -196,7 +197,7 @@ func (x *GetFullReply) GetLevel() int32 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *GetFullReply) GetVerifyStatus() *VerifyStatus {
|
||||
func (x *GetFullReply) GetVerifyStatus() *protobuf.VerifyStatus {
|
||||
if x != nil {
|
||||
return x.VerifyStatus
|
||||
}
|
||||
@@ -220,7 +221,7 @@ type TagItem struct {
|
||||
|
||||
func (x *TagItem) Reset() {
|
||||
*x = TagItem{}
|
||||
mi := &file_account_proto_msgTypes[1]
|
||||
mi := &file_module_base_passport_proto_account_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -232,7 +233,7 @@ func (x *TagItem) String() string {
|
||||
func (*TagItem) ProtoMessage() {}
|
||||
|
||||
func (x *TagItem) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_account_proto_msgTypes[1]
|
||||
mi := &file_module_base_passport_proto_account_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -245,7 +246,7 @@ func (x *TagItem) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use TagItem.ProtoReflect.Descriptor instead.
|
||||
func (*TagItem) Descriptor() ([]byte, []int) {
|
||||
return file_account_proto_rawDescGZIP(), []int{1}
|
||||
return file_module_base_passport_proto_account_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *TagItem) GetName() string {
|
||||
@@ -282,7 +283,7 @@ type SetDataRequest struct {
|
||||
|
||||
func (x *SetDataRequest) Reset() {
|
||||
*x = SetDataRequest{}
|
||||
mi := &file_account_proto_msgTypes[2]
|
||||
mi := &file_module_base_passport_proto_account_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -294,7 +295,7 @@ func (x *SetDataRequest) String() string {
|
||||
func (*SetDataRequest) ProtoMessage() {}
|
||||
|
||||
func (x *SetDataRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_account_proto_msgTypes[2]
|
||||
mi := &file_module_base_passport_proto_account_proto_msgTypes[2]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -307,7 +308,7 @@ func (x *SetDataRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use SetDataRequest.ProtoReflect.Descriptor instead.
|
||||
func (*SetDataRequest) Descriptor() ([]byte, []int) {
|
||||
return file_account_proto_rawDescGZIP(), []int{2}
|
||||
return file_module_base_passport_proto_account_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *SetDataRequest) GetNickname() string {
|
||||
@@ -404,7 +405,7 @@ type SetPasswordRequest struct {
|
||||
|
||||
func (x *SetPasswordRequest) Reset() {
|
||||
*x = SetPasswordRequest{}
|
||||
mi := &file_account_proto_msgTypes[3]
|
||||
mi := &file_module_base_passport_proto_account_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -416,7 +417,7 @@ func (x *SetPasswordRequest) String() string {
|
||||
func (*SetPasswordRequest) ProtoMessage() {}
|
||||
|
||||
func (x *SetPasswordRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_account_proto_msgTypes[3]
|
||||
mi := &file_module_base_passport_proto_account_proto_msgTypes[3]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -429,7 +430,7 @@ func (x *SetPasswordRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use SetPasswordRequest.ProtoReflect.Descriptor instead.
|
||||
func (*SetPasswordRequest) Descriptor() ([]byte, []int) {
|
||||
return file_account_proto_rawDescGZIP(), []int{3}
|
||||
return file_module_base_passport_proto_account_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *SetPasswordRequest) GetOldPassword() string {
|
||||
@@ -455,7 +456,7 @@ type StatisticsRequest struct {
|
||||
|
||||
func (x *StatisticsRequest) Reset() {
|
||||
*x = StatisticsRequest{}
|
||||
mi := &file_account_proto_msgTypes[4]
|
||||
mi := &file_module_base_passport_proto_account_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -467,7 +468,7 @@ func (x *StatisticsRequest) String() string {
|
||||
func (*StatisticsRequest) ProtoMessage() {}
|
||||
|
||||
func (x *StatisticsRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_account_proto_msgTypes[4]
|
||||
mi := &file_module_base_passport_proto_account_proto_msgTypes[4]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -480,7 +481,7 @@ func (x *StatisticsRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use StatisticsRequest.ProtoReflect.Descriptor instead.
|
||||
func (*StatisticsRequest) Descriptor() ([]byte, []int) {
|
||||
return file_account_proto_rawDescGZIP(), []int{4}
|
||||
return file_module_base_passport_proto_account_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *StatisticsRequest) GetField() []string {
|
||||
@@ -499,7 +500,7 @@ type StatisticsReply struct {
|
||||
|
||||
func (x *StatisticsReply) Reset() {
|
||||
*x = StatisticsReply{}
|
||||
mi := &file_account_proto_msgTypes[5]
|
||||
mi := &file_module_base_passport_proto_account_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -511,7 +512,7 @@ func (x *StatisticsReply) String() string {
|
||||
func (*StatisticsReply) ProtoMessage() {}
|
||||
|
||||
func (x *StatisticsReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_account_proto_msgTypes[5]
|
||||
mi := &file_module_base_passport_proto_account_proto_msgTypes[5]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -524,7 +525,7 @@ func (x *StatisticsReply) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use StatisticsReply.ProtoReflect.Descriptor instead.
|
||||
func (*StatisticsReply) Descriptor() ([]byte, []int) {
|
||||
return file_account_proto_rawDescGZIP(), []int{5}
|
||||
return file_module_base_passport_proto_account_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *StatisticsReply) GetData() map[string]int64 {
|
||||
@@ -534,11 +535,11 @@ func (x *StatisticsReply) GetData() map[string]int64 {
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_account_proto protoreflect.FileDescriptor
|
||||
var File_module_base_passport_proto_account_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_account_proto_rawDesc = "" +
|
||||
const file_module_base_passport_proto_account_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x1bbase/passport/account.proto\x12\bpassport\x1a\x15passport/blocks.proto\"\x82\x04\n" +
|
||||
"(module/base/passport/proto/account.proto\x12\bpassport\x1a\x15protobuf/blocks.proto\"\x80\x04\n" +
|
||||
"\fGetFullReply\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\aaccount\x18\x02 \x01(\tR\aaccount\x12\x14\n" +
|
||||
@@ -557,8 +558,8 @@ const file_account_proto_rawDesc = "" +
|
||||
"\x04sign\x18\x0e \x01(\tR\x04sign\x12\x14\n" +
|
||||
"\x05cover\x18\x0f \x01(\tR\x05cover\x12\x14\n" +
|
||||
"\x05score\x18\x10 \x01(\x05R\x05score\x12\x14\n" +
|
||||
"\x05level\x18\x11 \x01(\x05R\x05level\x12;\n" +
|
||||
"\rverify_status\x18\x12 \x01(\v2\x16.passport.VerifyStatusR\fverifyStatus\x12%\n" +
|
||||
"\x05level\x18\x11 \x01(\x05R\x05level\x129\n" +
|
||||
"\rverify_status\x18\x12 \x01(\v2\x14.blocks.VerifyStatusR\fverifyStatus\x12%\n" +
|
||||
"\x04tags\x18\x13 \x03(\v2\x11.passport.TagItemR\x04tags\"1\n" +
|
||||
"\aTagItem\x12\x12\n" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
|
||||
@@ -586,58 +587,57 @@ const file_account_proto_rawDesc = "" +
|
||||
"\x04Data\x18\x01 \x03(\v2#.passport.StatisticsReply.DataEntryR\x04Data\x1a7\n" +
|
||||
"\tDataEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\x03R\x05value:\x028\x012\xfe\x02\n" +
|
||||
"\aAccount\x120\n" +
|
||||
"\x03Get\x12\x0f.passport.Empty\x1a\x16.passport.GetFullReply\"\x00\x12<\n" +
|
||||
"\aSetData\x12\x18.passport.SetDataRequest\x1a\x15.passport.StatusReply\"\x00\x12D\n" +
|
||||
"\vSetPassword\x12\x1c.passport.SetPasswordRequest\x1a\x15.passport.StatusReply\"\x00\x127\n" +
|
||||
"\tTagCreate\x12\x11.passport.TagItem\x1a\x15.passport.StatusReply\"\x00\x12<\n" +
|
||||
"\tTagRemove\x12\x16.passport.IdentRequest\x1a\x15.passport.StatusReply\"\x00\x12F\n" +
|
||||
"\x05value\x18\x02 \x01(\x03R\x05value:\x028\x012\xf2\x02\n" +
|
||||
"\aAccount\x12.\n" +
|
||||
"\x03Get\x12\r.blocks.Empty\x1a\x16.passport.GetFullReply\"\x00\x12:\n" +
|
||||
"\aSetData\x12\x18.passport.SetDataRequest\x1a\x13.blocks.StatusReply\"\x00\x12B\n" +
|
||||
"\vSetPassword\x12\x1c.passport.SetPasswordRequest\x1a\x13.blocks.StatusReply\"\x00\x125\n" +
|
||||
"\tTagCreate\x12\x11.passport.TagItem\x1a\x13.blocks.StatusReply\"\x00\x128\n" +
|
||||
"\tTagRemove\x12\x14.blocks.IdentRequest\x1a\x13.blocks.StatusReply\"\x00\x12F\n" +
|
||||
"\n" +
|
||||
"Statistics\x12\x1b.passport.StatisticsRequest\x1a\x19.passport.StatisticsReply\"\x00B\fZ\n" +
|
||||
".;passportb\x06proto3"
|
||||
"Statistics\x12\x1b.passport.StatisticsRequest\x1a\x19.passport.StatisticsReply\"\x00B+Z)bsm/full/module/base/passport/pb;passportb\x06proto3"
|
||||
|
||||
var (
|
||||
file_account_proto_rawDescOnce sync.Once
|
||||
file_account_proto_rawDescData []byte
|
||||
file_module_base_passport_proto_account_proto_rawDescOnce sync.Once
|
||||
file_module_base_passport_proto_account_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_account_proto_rawDescGZIP() []byte {
|
||||
file_account_proto_rawDescOnce.Do(func() {
|
||||
file_account_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_account_proto_rawDesc), len(file_account_proto_rawDesc)))
|
||||
func file_module_base_passport_proto_account_proto_rawDescGZIP() []byte {
|
||||
file_module_base_passport_proto_account_proto_rawDescOnce.Do(func() {
|
||||
file_module_base_passport_proto_account_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_base_passport_proto_account_proto_rawDesc), len(file_module_base_passport_proto_account_proto_rawDesc)))
|
||||
})
|
||||
return file_account_proto_rawDescData
|
||||
return file_module_base_passport_proto_account_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_account_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||
var file_account_proto_goTypes = []any{
|
||||
(*GetFullReply)(nil), // 0: passport.GetFullReply
|
||||
(*TagItem)(nil), // 1: passport.TagItem
|
||||
(*SetDataRequest)(nil), // 2: passport.SetDataRequest
|
||||
(*SetPasswordRequest)(nil), // 3: passport.SetPasswordRequest
|
||||
(*StatisticsRequest)(nil), // 4: passport.StatisticsRequest
|
||||
(*StatisticsReply)(nil), // 5: passport.StatisticsReply
|
||||
nil, // 6: passport.StatisticsReply.DataEntry
|
||||
(*VerifyStatus)(nil), // 7: passport.VerifyStatus
|
||||
(*Empty)(nil), // 8: passport.Empty
|
||||
(*IdentRequest)(nil), // 9: passport.IdentRequest
|
||||
(*StatusReply)(nil), // 10: passport.StatusReply
|
||||
var file_module_base_passport_proto_account_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||
var file_module_base_passport_proto_account_proto_goTypes = []any{
|
||||
(*GetFullReply)(nil), // 0: passport.GetFullReply
|
||||
(*TagItem)(nil), // 1: passport.TagItem
|
||||
(*SetDataRequest)(nil), // 2: passport.SetDataRequest
|
||||
(*SetPasswordRequest)(nil), // 3: passport.SetPasswordRequest
|
||||
(*StatisticsRequest)(nil), // 4: passport.StatisticsRequest
|
||||
(*StatisticsReply)(nil), // 5: passport.StatisticsReply
|
||||
nil, // 6: passport.StatisticsReply.DataEntry
|
||||
(*protobuf.VerifyStatus)(nil), // 7: blocks.VerifyStatus
|
||||
(*protobuf.Empty)(nil), // 8: blocks.Empty
|
||||
(*protobuf.IdentRequest)(nil), // 9: blocks.IdentRequest
|
||||
(*protobuf.StatusReply)(nil), // 10: blocks.StatusReply
|
||||
}
|
||||
var file_account_proto_depIdxs = []int32{
|
||||
7, // 0: passport.GetFullReply.verify_status:type_name -> passport.VerifyStatus
|
||||
var file_module_base_passport_proto_account_proto_depIdxs = []int32{
|
||||
7, // 0: passport.GetFullReply.verify_status:type_name -> blocks.VerifyStatus
|
||||
1, // 1: passport.GetFullReply.tags:type_name -> passport.TagItem
|
||||
6, // 2: passport.StatisticsReply.Data:type_name -> passport.StatisticsReply.DataEntry
|
||||
8, // 3: passport.Account.Get:input_type -> passport.Empty
|
||||
8, // 3: passport.Account.Get:input_type -> blocks.Empty
|
||||
2, // 4: passport.Account.SetData:input_type -> passport.SetDataRequest
|
||||
3, // 5: passport.Account.SetPassword:input_type -> passport.SetPasswordRequest
|
||||
1, // 6: passport.Account.TagCreate:input_type -> passport.TagItem
|
||||
9, // 7: passport.Account.TagRemove:input_type -> passport.IdentRequest
|
||||
9, // 7: passport.Account.TagRemove:input_type -> blocks.IdentRequest
|
||||
4, // 8: passport.Account.Statistics:input_type -> passport.StatisticsRequest
|
||||
0, // 9: passport.Account.Get:output_type -> passport.GetFullReply
|
||||
10, // 10: passport.Account.SetData:output_type -> passport.StatusReply
|
||||
10, // 11: passport.Account.SetPassword:output_type -> passport.StatusReply
|
||||
10, // 12: passport.Account.TagCreate:output_type -> passport.StatusReply
|
||||
10, // 13: passport.Account.TagRemove:output_type -> passport.StatusReply
|
||||
10, // 10: passport.Account.SetData:output_type -> blocks.StatusReply
|
||||
10, // 11: passport.Account.SetPassword:output_type -> blocks.StatusReply
|
||||
10, // 12: passport.Account.TagCreate:output_type -> blocks.StatusReply
|
||||
10, // 13: passport.Account.TagRemove:output_type -> blocks.StatusReply
|
||||
5, // 14: passport.Account.Statistics:output_type -> passport.StatisticsReply
|
||||
9, // [9:15] is the sub-list for method output_type
|
||||
3, // [3:9] is the sub-list for method input_type
|
||||
@@ -646,27 +646,26 @@ var file_account_proto_depIdxs = []int32{
|
||||
0, // [0:3] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_account_proto_init() }
|
||||
func file_account_proto_init() {
|
||||
if File_account_proto != nil {
|
||||
func init() { file_module_base_passport_proto_account_proto_init() }
|
||||
func file_module_base_passport_proto_account_proto_init() {
|
||||
if File_module_base_passport_proto_account_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_account_proto_rawDesc), len(file_account_proto_rawDesc)),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_base_passport_proto_account_proto_rawDesc), len(file_module_base_passport_proto_account_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 7,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_account_proto_goTypes,
|
||||
DependencyIndexes: file_account_proto_depIdxs,
|
||||
MessageInfos: file_account_proto_msgTypes,
|
||||
GoTypes: file_module_base_passport_proto_account_proto_goTypes,
|
||||
DependencyIndexes: file_module_base_passport_proto_account_proto_depIdxs,
|
||||
MessageInfos: file_module_base_passport_proto_account_proto_msgTypes,
|
||||
}.Build()
|
||||
File_account_proto = out.File
|
||||
file_account_proto_goTypes = nil
|
||||
file_account_proto_depIdxs = nil
|
||||
File_module_base_passport_proto_account_proto = out.File
|
||||
file_module_base_passport_proto_account_proto_goTypes = nil
|
||||
file_module_base_passport_proto_account_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
|
||||
// source: account.proto
|
||||
// source: module/base/passport/proto/account.proto
|
||||
|
||||
/*
|
||||
Package passport is a reverse proxy.
|
||||
@@ -9,6 +9,7 @@ It translates gRPC into RESTful JSON APIs.
|
||||
package passport
|
||||
|
||||
import (
|
||||
"bsm/full/protobuf"
|
||||
"context"
|
||||
"errors"
|
||||
"io"
|
||||
@@ -37,7 +38,7 @@ var (
|
||||
|
||||
func request_Account_Get_0(ctx context.Context, marshaler runtime.Marshaler, client AccountClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var (
|
||||
protoReq Empty
|
||||
protoReq blocks.Empty
|
||||
metadata runtime.ServerMetadata
|
||||
)
|
||||
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
||||
@@ -52,7 +53,7 @@ func request_Account_Get_0(ctx context.Context, marshaler runtime.Marshaler, cli
|
||||
|
||||
func local_request_Account_Get_0(ctx context.Context, marshaler runtime.Marshaler, server AccountServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var (
|
||||
protoReq Empty
|
||||
protoReq blocks.Empty
|
||||
metadata runtime.ServerMetadata
|
||||
)
|
||||
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
||||
@@ -145,7 +146,7 @@ func local_request_Account_TagCreate_0(ctx context.Context, marshaler runtime.Ma
|
||||
|
||||
func request_Account_TagRemove_0(ctx context.Context, marshaler runtime.Marshaler, client AccountClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var (
|
||||
protoReq IdentRequest
|
||||
protoReq blocks.IdentRequest
|
||||
metadata runtime.ServerMetadata
|
||||
)
|
||||
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
||||
@@ -160,7 +161,7 @@ func request_Account_TagRemove_0(ctx context.Context, marshaler runtime.Marshale
|
||||
|
||||
func local_request_Account_TagRemove_0(ctx context.Context, marshaler runtime.Marshaler, server AccountServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var (
|
||||
protoReq IdentRequest
|
||||
protoReq blocks.IdentRequest
|
||||
metadata runtime.ServerMetadata
|
||||
)
|
||||
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
||||
|
||||
@@ -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: account.proto
|
||||
// - protoc-gen-go-grpc v1.6.2
|
||||
// - protoc v7.35.0
|
||||
// source: module/base/passport/proto/account.proto
|
||||
|
||||
package passport
|
||||
|
||||
import (
|
||||
protobuf "bsm/full/protobuf"
|
||||
context "context"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
@@ -34,15 +35,15 @@ const (
|
||||
// assport通行证模块-帐号数据
|
||||
type AccountClient interface {
|
||||
// 通过会员所有信息
|
||||
Get(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GetFullReply, error)
|
||||
Get(ctx context.Context, in *protobuf.Empty, opts ...grpc.CallOption) (*GetFullReply, error)
|
||||
// 更新会员的信息数据,字段值为空或是0,将不更新此数据
|
||||
SetData(ctx context.Context, in *SetDataRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
SetData(ctx context.Context, in *SetDataRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
|
||||
// 更新会员的密码
|
||||
SetPassword(ctx context.Context, in *SetPasswordRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
SetPassword(ctx context.Context, in *SetPasswordRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
|
||||
// 新增标签
|
||||
TagCreate(ctx context.Context, in *TagItem, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
TagCreate(ctx context.Context, in *TagItem, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
|
||||
// 删除标签
|
||||
TagRemove(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
TagRemove(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
|
||||
// 获取会员的相关统计数据
|
||||
Statistics(ctx context.Context, in *StatisticsRequest, opts ...grpc.CallOption) (*StatisticsReply, error)
|
||||
}
|
||||
@@ -55,7 +56,7 @@ func NewAccountClient(cc grpc.ClientConnInterface) AccountClient {
|
||||
return &accountClient{cc}
|
||||
}
|
||||
|
||||
func (c *accountClient) Get(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GetFullReply, error) {
|
||||
func (c *accountClient) Get(ctx context.Context, in *protobuf.Empty, opts ...grpc.CallOption) (*GetFullReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GetFullReply)
|
||||
err := c.cc.Invoke(ctx, Account_Get_FullMethodName, in, out, cOpts...)
|
||||
@@ -65,9 +66,9 @@ func (c *accountClient) Get(ctx context.Context, in *Empty, opts ...grpc.CallOpt
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *accountClient) SetData(ctx context.Context, in *SetDataRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *accountClient) SetData(ctx context.Context, in *SetDataRequest, 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, Account_SetData_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -75,9 +76,9 @@ func (c *accountClient) SetData(ctx context.Context, in *SetDataRequest, opts ..
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *accountClient) SetPassword(ctx context.Context, in *SetPasswordRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *accountClient) SetPassword(ctx context.Context, in *SetPasswordRequest, 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, Account_SetPassword_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -85,9 +86,9 @@ func (c *accountClient) SetPassword(ctx context.Context, in *SetPasswordRequest,
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *accountClient) TagCreate(ctx context.Context, in *TagItem, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *accountClient) TagCreate(ctx context.Context, in *TagItem, 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, Account_TagCreate_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -95,9 +96,9 @@ func (c *accountClient) TagCreate(ctx context.Context, in *TagItem, opts ...grpc
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *accountClient) TagRemove(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *accountClient) TagRemove(ctx context.Context, in *protobuf.IdentRequest, 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, Account_TagRemove_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -116,53 +117,51 @@ func (c *accountClient) Statistics(ctx context.Context, in *StatisticsRequest, o
|
||||
}
|
||||
|
||||
// AccountServer is the server API for Account service.
|
||||
// All implementations must embed UnimplementedAccountServer
|
||||
// All implementations should embed UnimplementedAccountServer
|
||||
// for forward compatibility.
|
||||
//
|
||||
// assport通行证模块-帐号数据
|
||||
type AccountServer interface {
|
||||
// 通过会员所有信息
|
||||
Get(context.Context, *Empty) (*GetFullReply, error)
|
||||
Get(context.Context, *protobuf.Empty) (*GetFullReply, error)
|
||||
// 更新会员的信息数据,字段值为空或是0,将不更新此数据
|
||||
SetData(context.Context, *SetDataRequest) (*StatusReply, error)
|
||||
SetData(context.Context, *SetDataRequest) (*protobuf.StatusReply, error)
|
||||
// 更新会员的密码
|
||||
SetPassword(context.Context, *SetPasswordRequest) (*StatusReply, error)
|
||||
SetPassword(context.Context, *SetPasswordRequest) (*protobuf.StatusReply, error)
|
||||
// 新增标签
|
||||
TagCreate(context.Context, *TagItem) (*StatusReply, error)
|
||||
TagCreate(context.Context, *TagItem) (*protobuf.StatusReply, error)
|
||||
// 删除标签
|
||||
TagRemove(context.Context, *IdentRequest) (*StatusReply, error)
|
||||
TagRemove(context.Context, *protobuf.IdentRequest) (*protobuf.StatusReply, error)
|
||||
// 获取会员的相关统计数据
|
||||
Statistics(context.Context, *StatisticsRequest) (*StatisticsReply, error)
|
||||
mustEmbedUnimplementedAccountServer()
|
||||
}
|
||||
|
||||
// UnimplementedAccountServer must be embedded to have
|
||||
// UnimplementedAccountServer 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 UnimplementedAccountServer struct{}
|
||||
|
||||
func (UnimplementedAccountServer) Get(context.Context, *Empty) (*GetFullReply, error) {
|
||||
func (UnimplementedAccountServer) Get(context.Context, *protobuf.Empty) (*GetFullReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Get not implemented")
|
||||
}
|
||||
func (UnimplementedAccountServer) SetData(context.Context, *SetDataRequest) (*StatusReply, error) {
|
||||
func (UnimplementedAccountServer) SetData(context.Context, *SetDataRequest) (*protobuf.StatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method SetData not implemented")
|
||||
}
|
||||
func (UnimplementedAccountServer) SetPassword(context.Context, *SetPasswordRequest) (*StatusReply, error) {
|
||||
func (UnimplementedAccountServer) SetPassword(context.Context, *SetPasswordRequest) (*protobuf.StatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method SetPassword not implemented")
|
||||
}
|
||||
func (UnimplementedAccountServer) TagCreate(context.Context, *TagItem) (*StatusReply, error) {
|
||||
func (UnimplementedAccountServer) TagCreate(context.Context, *TagItem) (*protobuf.StatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method TagCreate not implemented")
|
||||
}
|
||||
func (UnimplementedAccountServer) TagRemove(context.Context, *IdentRequest) (*StatusReply, error) {
|
||||
func (UnimplementedAccountServer) TagRemove(context.Context, *protobuf.IdentRequest) (*protobuf.StatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method TagRemove not implemented")
|
||||
}
|
||||
func (UnimplementedAccountServer) Statistics(context.Context, *StatisticsRequest) (*StatisticsReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Statistics not implemented")
|
||||
}
|
||||
func (UnimplementedAccountServer) mustEmbedUnimplementedAccountServer() {}
|
||||
func (UnimplementedAccountServer) testEmbeddedByValue() {}
|
||||
func (UnimplementedAccountServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeAccountServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to AccountServer will
|
||||
@@ -183,7 +182,7 @@ func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer) {
|
||||
}
|
||||
|
||||
func _Account_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(Empty)
|
||||
in := new(protobuf.Empty)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -195,7 +194,7 @@ func _Account_Get_Handler(srv interface{}, ctx context.Context, dec func(interfa
|
||||
FullMethod: Account_Get_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AccountServer).Get(ctx, req.(*Empty))
|
||||
return srv.(AccountServer).Get(ctx, req.(*protobuf.Empty))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@@ -255,7 +254,7 @@ func _Account_TagCreate_Handler(srv interface{}, ctx context.Context, dec func(i
|
||||
}
|
||||
|
||||
func _Account_TagRemove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(IdentRequest)
|
||||
in := new(protobuf.IdentRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -267,7 +266,7 @@ func _Account_TagRemove_Handler(srv interface{}, ctx context.Context, dec func(i
|
||||
FullMethod: Account_TagRemove_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AccountServer).TagRemove(ctx, req.(*IdentRequest))
|
||||
return srv.(AccountServer).TagRemove(ctx, req.(*protobuf.IdentRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@@ -323,5 +322,5 @@ var Account_ServiceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "account.proto",
|
||||
Metadata: "module/base/passport/proto/account.proto",
|
||||
}
|
||||
|
||||
@@ -1,493 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc (unknown)
|
||||
// source: blocks.proto
|
||||
|
||||
package passport
|
||||
|
||||
import (
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type FetchRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
PageNo int64 `protobuf:"varint,1,opt,name=page_no,json=pageNo,proto3" json:"page_no,omitempty"` // 页数
|
||||
PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // 每页记录数
|
||||
Params map[string]string `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // 条件参数,key=val,eg key:category_id=?,vlaue=11
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *FetchRequest) Reset() {
|
||||
*x = FetchRequest{}
|
||||
mi := &file_blocks_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *FetchRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*FetchRequest) ProtoMessage() {}
|
||||
|
||||
func (x *FetchRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_blocks_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use FetchRequest.ProtoReflect.Descriptor instead.
|
||||
func (*FetchRequest) Descriptor() ([]byte, []int) {
|
||||
return file_blocks_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *FetchRequest) GetPageNo() int64 {
|
||||
if x != nil {
|
||||
return x.PageNo
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *FetchRequest) GetPageSize() int64 {
|
||||
if x != nil {
|
||||
return x.PageSize
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *FetchRequest) GetParams() map[string]string {
|
||||
if x != nil {
|
||||
return x.Params
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type IdentRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 唯一ID
|
||||
Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` // 唯一码
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *IdentRequest) Reset() {
|
||||
*x = IdentRequest{}
|
||||
mi := &file_blocks_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *IdentRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*IdentRequest) ProtoMessage() {}
|
||||
|
||||
func (x *IdentRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_blocks_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use IdentRequest.ProtoReflect.Descriptor instead.
|
||||
func (*IdentRequest) Descriptor() ([]byte, []int) {
|
||||
return file_blocks_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *IdentRequest) GetId() int64 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *IdentRequest) GetIdentity() string {
|
||||
if x != nil {
|
||||
return x.Identity
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type VersionRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Version int64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // 时序版本号
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *VersionRequest) Reset() {
|
||||
*x = VersionRequest{}
|
||||
mi := &file_blocks_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *VersionRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*VersionRequest) ProtoMessage() {}
|
||||
|
||||
func (x *VersionRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_blocks_proto_msgTypes[2]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use VersionRequest.ProtoReflect.Descriptor instead.
|
||||
func (*VersionRequest) Descriptor() ([]byte, []int) {
|
||||
return file_blocks_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *VersionRequest) GetVersion() int64 {
|
||||
if x != nil {
|
||||
return x.Version
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type SearchRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"` //关键词
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *SearchRequest) Reset() {
|
||||
*x = SearchRequest{}
|
||||
mi := &file_blocks_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *SearchRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SearchRequest) ProtoMessage() {}
|
||||
|
||||
func (x *SearchRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_blocks_proto_msgTypes[3]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.
|
||||
func (*SearchRequest) Descriptor() ([]byte, []int) {
|
||||
return file_blocks_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *SearchRequest) GetKeyword() string {
|
||||
if x != nil {
|
||||
return x.Keyword
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type StatusReply struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 状态码
|
||||
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 状态说明
|
||||
Details string `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` // 数据
|
||||
Timeseq int64 `protobuf:"varint,4,opt,name=timeseq,proto3" json:"timeseq,omitempty"` // 响应时间序列
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *StatusReply) Reset() {
|
||||
*x = StatusReply{}
|
||||
mi := &file_blocks_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *StatusReply) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*StatusReply) ProtoMessage() {}
|
||||
|
||||
func (x *StatusReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_blocks_proto_msgTypes[4]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use StatusReply.ProtoReflect.Descriptor instead.
|
||||
func (*StatusReply) Descriptor() ([]byte, []int) {
|
||||
return file_blocks_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *StatusReply) GetCode() int32 {
|
||||
if x != nil {
|
||||
return x.Code
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *StatusReply) GetMessage() string {
|
||||
if x != nil {
|
||||
return x.Message
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *StatusReply) GetDetails() string {
|
||||
if x != nil {
|
||||
return x.Details
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *StatusReply) GetTimeseq() int64 {
|
||||
if x != nil {
|
||||
return x.Timeseq
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type VerifyStatus struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
EmailVerify int32 `protobuf:"varint,1,opt,name=email_verify,json=emailVerify,proto3" json:"email_verify,omitempty"` // 邮箱是否已验证
|
||||
PhoneVerify int32 `protobuf:"varint,2,opt,name=phone_verify,json=phoneVerify,proto3" json:"phone_verify,omitempty"` // 手机是否已验证
|
||||
FaceVerify int32 `protobuf:"varint,3,opt,name=face_verify,json=faceVerify,proto3" json:"face_verify,omitempty"` // 人脸或照片是否已验证
|
||||
DocumentVerify int32 `protobuf:"varint,4,opt,name=document_verify,json=documentVerify,proto3" json:"document_verify,omitempty"` // 证件是否已验证
|
||||
KycVerify int32 `protobuf:"varint,5,opt,name=kyc_verify,json=kycVerify,proto3" json:"kyc_verify,omitempty"` // 实名是否已验证
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *VerifyStatus) Reset() {
|
||||
*x = VerifyStatus{}
|
||||
mi := &file_blocks_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *VerifyStatus) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*VerifyStatus) ProtoMessage() {}
|
||||
|
||||
func (x *VerifyStatus) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_blocks_proto_msgTypes[5]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use VerifyStatus.ProtoReflect.Descriptor instead.
|
||||
func (*VerifyStatus) Descriptor() ([]byte, []int) {
|
||||
return file_blocks_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *VerifyStatus) GetEmailVerify() int32 {
|
||||
if x != nil {
|
||||
return x.EmailVerify
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *VerifyStatus) GetPhoneVerify() int32 {
|
||||
if x != nil {
|
||||
return x.PhoneVerify
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *VerifyStatus) GetFaceVerify() int32 {
|
||||
if x != nil {
|
||||
return x.FaceVerify
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *VerifyStatus) GetDocumentVerify() int32 {
|
||||
if x != nil {
|
||||
return x.DocumentVerify
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *VerifyStatus) GetKycVerify() int32 {
|
||||
if x != nil {
|
||||
return x.KycVerify
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type Empty struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *Empty) Reset() {
|
||||
*x = Empty{}
|
||||
mi := &file_blocks_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Empty) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Empty) ProtoMessage() {}
|
||||
|
||||
func (x *Empty) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_blocks_proto_msgTypes[6]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use Empty.ProtoReflect.Descriptor instead.
|
||||
func (*Empty) Descriptor() ([]byte, []int) {
|
||||
return file_blocks_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
var File_blocks_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_blocks_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x15passport/blocks.proto\x12\bpassport\"\xbb\x01\n" +
|
||||
"\fFetchRequest\x12\x17\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\x06pageNo\x12\x1b\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\bpageSize\x12:\n" +
|
||||
"\x06params\x18\x03 \x03(\v2\".passport.FetchRequest.ParamsEntryR\x06params\x1a9\n" +
|
||||
"\vParamsEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\":\n" +
|
||||
"\fIdentRequest\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
"\bidentity\x18\x02 \x01(\tR\bidentity\"*\n" +
|
||||
"\x0eVersionRequest\x12\x18\n" +
|
||||
"\aversion\x18\x01 \x01(\x03R\aversion\")\n" +
|
||||
"\rSearchRequest\x12\x18\n" +
|
||||
"\akeyword\x18\x01 \x01(\tR\akeyword\"o\n" +
|
||||
"\vStatusReply\x12\x12\n" +
|
||||
"\x04code\x18\x01 \x01(\x05R\x04code\x12\x18\n" +
|
||||
"\amessage\x18\x02 \x01(\tR\amessage\x12\x18\n" +
|
||||
"\adetails\x18\x03 \x01(\tR\adetails\x12\x18\n" +
|
||||
"\atimeseq\x18\x04 \x01(\x03R\atimeseq\"\xbd\x01\n" +
|
||||
"\fVerifyStatus\x12!\n" +
|
||||
"\femail_verify\x18\x01 \x01(\x05R\vemailVerify\x12!\n" +
|
||||
"\fphone_verify\x18\x02 \x01(\x05R\vphoneVerify\x12\x1f\n" +
|
||||
"\vface_verify\x18\x03 \x01(\x05R\n" +
|
||||
"faceVerify\x12'\n" +
|
||||
"\x0fdocument_verify\x18\x04 \x01(\x05R\x0edocumentVerify\x12\x1d\n" +
|
||||
"\n" +
|
||||
"kyc_verify\x18\x05 \x01(\x05R\tkycVerify\"\a\n" +
|
||||
"\x05EmptyB\fZ\n" +
|
||||
".;passportb\x06proto3"
|
||||
|
||||
var (
|
||||
file_blocks_proto_rawDescOnce sync.Once
|
||||
file_blocks_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_blocks_proto_rawDescGZIP() []byte {
|
||||
file_blocks_proto_rawDescOnce.Do(func() {
|
||||
file_blocks_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_blocks_proto_rawDesc), len(file_blocks_proto_rawDesc)))
|
||||
})
|
||||
return file_blocks_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_blocks_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
||||
var file_blocks_proto_goTypes = []any{
|
||||
(*FetchRequest)(nil), // 0: passport.FetchRequest
|
||||
(*IdentRequest)(nil), // 1: passport.IdentRequest
|
||||
(*VersionRequest)(nil), // 2: passport.VersionRequest
|
||||
(*SearchRequest)(nil), // 3: passport.SearchRequest
|
||||
(*StatusReply)(nil), // 4: passport.StatusReply
|
||||
(*VerifyStatus)(nil), // 5: passport.VerifyStatus
|
||||
(*Empty)(nil), // 6: passport.Empty
|
||||
nil, // 7: passport.FetchRequest.ParamsEntry
|
||||
}
|
||||
var file_blocks_proto_depIdxs = []int32{
|
||||
7, // 0: passport.FetchRequest.params:type_name -> passport.FetchRequest.ParamsEntry
|
||||
1, // [1:1] is the sub-list for method output_type
|
||||
1, // [1:1] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
1, // [1:1] is the sub-list for extension extendee
|
||||
0, // [0:1] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_blocks_proto_init() }
|
||||
func file_blocks_proto_init() {
|
||||
if File_blocks_proto != nil {
|
||||
return
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_blocks_proto_rawDesc), len(file_blocks_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 8,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_blocks_proto_goTypes,
|
||||
DependencyIndexes: file_blocks_proto_depIdxs,
|
||||
MessageInfos: file_blocks_proto_msgTypes,
|
||||
}.Build()
|
||||
File_blocks_proto = out.File
|
||||
file_blocks_proto_goTypes = nil
|
||||
file_blocks_proto_depIdxs = nil
|
||||
}
|
||||
11
module/base/passport/pb/blocks_compat.go
Normal file
11
module/base/passport/pb/blocks_compat.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package passport
|
||||
|
||||
import blocks "bsm/full/protobuf"
|
||||
|
||||
type Empty = blocks.Empty
|
||||
type FetchRequest = blocks.FetchRequest
|
||||
type IdentRequest = blocks.IdentRequest
|
||||
type VersionRequest = blocks.VersionRequest
|
||||
type SearchRequest = blocks.SearchRequest
|
||||
type StatusReply = blocks.StatusReply
|
||||
type VerifyStatus = blocks.VerifyStatus
|
||||
@@ -1,12 +1,13 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc (unknown)
|
||||
// source: forget.proto
|
||||
// protoc v7.35.0
|
||||
// source: module/base/passport/proto/forget.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 ForgetVerifyRequest struct {
|
||||
|
||||
func (x *ForgetVerifyRequest) Reset() {
|
||||
*x = ForgetVerifyRequest{}
|
||||
mi := &file_forget_proto_msgTypes[0]
|
||||
mi := &file_module_base_passport_proto_forget_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -43,7 +44,7 @@ func (x *ForgetVerifyRequest) String() string {
|
||||
func (*ForgetVerifyRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ForgetVerifyRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_forget_proto_msgTypes[0]
|
||||
mi := &file_module_base_passport_proto_forget_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -56,7 +57,7 @@ func (x *ForgetVerifyRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use ForgetVerifyRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ForgetVerifyRequest) Descriptor() ([]byte, []int) {
|
||||
return file_forget_proto_rawDescGZIP(), []int{0}
|
||||
return file_module_base_passport_proto_forget_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *ForgetVerifyRequest) GetPhone() string {
|
||||
@@ -83,7 +84,7 @@ type ForgetResetRequest struct {
|
||||
|
||||
func (x *ForgetResetRequest) Reset() {
|
||||
*x = ForgetResetRequest{}
|
||||
mi := &file_forget_proto_msgTypes[1]
|
||||
mi := &file_module_base_passport_proto_forget_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -95,7 +96,7 @@ func (x *ForgetResetRequest) String() string {
|
||||
func (*ForgetResetRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ForgetResetRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_forget_proto_msgTypes[1]
|
||||
mi := &file_module_base_passport_proto_forget_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -108,7 +109,7 @@ func (x *ForgetResetRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use ForgetResetRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ForgetResetRequest) Descriptor() ([]byte, []int) {
|
||||
return file_forget_proto_rawDescGZIP(), []int{1}
|
||||
return file_module_base_passport_proto_forget_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *ForgetResetRequest) GetIdentity() string {
|
||||
@@ -125,45 +126,44 @@ func (x *ForgetResetRequest) GetPassword() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_forget_proto protoreflect.FileDescriptor
|
||||
var File_module_base_passport_proto_forget_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_forget_proto_rawDesc = "" +
|
||||
const file_module_base_passport_proto_forget_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x1abase/passport/forget.proto\x12\bpassport\x1a\x15passport/blocks.proto\"?\n" +
|
||||
"'module/base/passport/proto/forget.proto\x12\bpassport\x1a\x15protobuf/blocks.proto\"?\n" +
|
||||
"\x13ForgetVerifyRequest\x12\x14\n" +
|
||||
"\x05phone\x18\x01 \x01(\tR\x05phone\x12\x12\n" +
|
||||
"\x04code\x18\x02 \x01(\tR\x04code\"L\n" +
|
||||
"\x12ForgetResetRequest\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1a\n" +
|
||||
"\bpassword\x18\x02 \x01(\tR\bpassword2\x8a\x01\n" +
|
||||
"\x06Forget\x12@\n" +
|
||||
"\x06Verify\x12\x1d.passport.ForgetVerifyRequest\x1a\x15.passport.StatusReply\"\x00\x12>\n" +
|
||||
"\x05Reset\x12\x1c.passport.ForgetResetRequest\x1a\x15.passport.StatusReply\"\x00B\fZ\n" +
|
||||
".;passportb\x06proto3"
|
||||
"\bpassword\x18\x02 \x01(\tR\bpassword2\x86\x01\n" +
|
||||
"\x06Forget\x12>\n" +
|
||||
"\x06Verify\x12\x1d.passport.ForgetVerifyRequest\x1a\x13.blocks.StatusReply\"\x00\x12<\n" +
|
||||
"\x05Reset\x12\x1c.passport.ForgetResetRequest\x1a\x13.blocks.StatusReply\"\x00B+Z)bsm/full/module/base/passport/pb;passportb\x06proto3"
|
||||
|
||||
var (
|
||||
file_forget_proto_rawDescOnce sync.Once
|
||||
file_forget_proto_rawDescData []byte
|
||||
file_module_base_passport_proto_forget_proto_rawDescOnce sync.Once
|
||||
file_module_base_passport_proto_forget_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_forget_proto_rawDescGZIP() []byte {
|
||||
file_forget_proto_rawDescOnce.Do(func() {
|
||||
file_forget_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_forget_proto_rawDesc), len(file_forget_proto_rawDesc)))
|
||||
func file_module_base_passport_proto_forget_proto_rawDescGZIP() []byte {
|
||||
file_module_base_passport_proto_forget_proto_rawDescOnce.Do(func() {
|
||||
file_module_base_passport_proto_forget_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_base_passport_proto_forget_proto_rawDesc), len(file_module_base_passport_proto_forget_proto_rawDesc)))
|
||||
})
|
||||
return file_forget_proto_rawDescData
|
||||
return file_module_base_passport_proto_forget_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_forget_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_forget_proto_goTypes = []any{
|
||||
(*ForgetVerifyRequest)(nil), // 0: passport.ForgetVerifyRequest
|
||||
(*ForgetResetRequest)(nil), // 1: passport.ForgetResetRequest
|
||||
(*StatusReply)(nil), // 2: passport.StatusReply
|
||||
var file_module_base_passport_proto_forget_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_module_base_passport_proto_forget_proto_goTypes = []any{
|
||||
(*ForgetVerifyRequest)(nil), // 0: passport.ForgetVerifyRequest
|
||||
(*ForgetResetRequest)(nil), // 1: passport.ForgetResetRequest
|
||||
(*protobuf.StatusReply)(nil), // 2: blocks.StatusReply
|
||||
}
|
||||
var file_forget_proto_depIdxs = []int32{
|
||||
var file_module_base_passport_proto_forget_proto_depIdxs = []int32{
|
||||
0, // 0: passport.Forget.Verify:input_type -> passport.ForgetVerifyRequest
|
||||
1, // 1: passport.Forget.Reset:input_type -> passport.ForgetResetRequest
|
||||
2, // 2: passport.Forget.Verify:output_type -> passport.StatusReply
|
||||
2, // 3: passport.Forget.Reset:output_type -> passport.StatusReply
|
||||
2, // 2: passport.Forget.Verify:output_type -> blocks.StatusReply
|
||||
2, // 3: passport.Forget.Reset:output_type -> blocks.StatusReply
|
||||
2, // [2:4] is the sub-list for method output_type
|
||||
0, // [0:2] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
@@ -171,27 +171,26 @@ var file_forget_proto_depIdxs = []int32{
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_forget_proto_init() }
|
||||
func file_forget_proto_init() {
|
||||
if File_forget_proto != nil {
|
||||
func init() { file_module_base_passport_proto_forget_proto_init() }
|
||||
func file_module_base_passport_proto_forget_proto_init() {
|
||||
if File_module_base_passport_proto_forget_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_forget_proto_rawDesc), len(file_forget_proto_rawDesc)),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_base_passport_proto_forget_proto_rawDesc), len(file_module_base_passport_proto_forget_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 2,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_forget_proto_goTypes,
|
||||
DependencyIndexes: file_forget_proto_depIdxs,
|
||||
MessageInfos: file_forget_proto_msgTypes,
|
||||
GoTypes: file_module_base_passport_proto_forget_proto_goTypes,
|
||||
DependencyIndexes: file_module_base_passport_proto_forget_proto_depIdxs,
|
||||
MessageInfos: file_module_base_passport_proto_forget_proto_msgTypes,
|
||||
}.Build()
|
||||
File_forget_proto = out.File
|
||||
file_forget_proto_goTypes = nil
|
||||
file_forget_proto_depIdxs = nil
|
||||
File_module_base_passport_proto_forget_proto = out.File
|
||||
file_module_base_passport_proto_forget_proto_goTypes = nil
|
||||
file_module_base_passport_proto_forget_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
|
||||
// source: forget.proto
|
||||
// source: module/base/passport/proto/forget.proto
|
||||
|
||||
/*
|
||||
Package passport is a reverse proxy.
|
||||
|
||||
@@ -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: forget.proto
|
||||
// - protoc-gen-go-grpc v1.6.2
|
||||
// - protoc v7.35.0
|
||||
// source: module/base/passport/proto/forget.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 ForgetClient interface {
|
||||
// 验证手机号和验证码
|
||||
Verify(ctx context.Context, in *ForgetVerifyRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
Verify(ctx context.Context, in *ForgetVerifyRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
|
||||
// 重罢密码
|
||||
Reset(ctx context.Context, in *ForgetResetRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
Reset(ctx context.Context, in *ForgetResetRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
|
||||
}
|
||||
|
||||
type forgetClient struct {
|
||||
@@ -43,9 +44,9 @@ func NewForgetClient(cc grpc.ClientConnInterface) ForgetClient {
|
||||
return &forgetClient{cc}
|
||||
}
|
||||
|
||||
func (c *forgetClient) Verify(ctx context.Context, in *ForgetVerifyRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *forgetClient) Verify(ctx context.Context, in *ForgetVerifyRequest, 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, Forget_Verify_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -53,9 +54,9 @@ func (c *forgetClient) Verify(ctx context.Context, in *ForgetVerifyRequest, opts
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *forgetClient) Reset(ctx context.Context, in *ForgetResetRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *forgetClient) Reset(ctx context.Context, in *ForgetResetRequest, 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, Forget_Reset_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -64,33 +65,31 @@ func (c *forgetClient) Reset(ctx context.Context, in *ForgetResetRequest, opts .
|
||||
}
|
||||
|
||||
// ForgetServer is the server API for Forget service.
|
||||
// All implementations must embed UnimplementedForgetServer
|
||||
// All implementations should embed UnimplementedForgetServer
|
||||
// for forward compatibility.
|
||||
//
|
||||
// Passport通行证模块-找回密码
|
||||
type ForgetServer interface {
|
||||
// 验证手机号和验证码
|
||||
Verify(context.Context, *ForgetVerifyRequest) (*StatusReply, error)
|
||||
Verify(context.Context, *ForgetVerifyRequest) (*protobuf.StatusReply, error)
|
||||
// 重罢密码
|
||||
Reset(context.Context, *ForgetResetRequest) (*StatusReply, error)
|
||||
mustEmbedUnimplementedForgetServer()
|
||||
Reset(context.Context, *ForgetResetRequest) (*protobuf.StatusReply, error)
|
||||
}
|
||||
|
||||
// UnimplementedForgetServer must be embedded to have
|
||||
// UnimplementedForgetServer 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 UnimplementedForgetServer struct{}
|
||||
|
||||
func (UnimplementedForgetServer) Verify(context.Context, *ForgetVerifyRequest) (*StatusReply, error) {
|
||||
func (UnimplementedForgetServer) Verify(context.Context, *ForgetVerifyRequest) (*protobuf.StatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Verify not implemented")
|
||||
}
|
||||
func (UnimplementedForgetServer) Reset(context.Context, *ForgetResetRequest) (*StatusReply, error) {
|
||||
func (UnimplementedForgetServer) Reset(context.Context, *ForgetResetRequest) (*protobuf.StatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Reset not implemented")
|
||||
}
|
||||
func (UnimplementedForgetServer) mustEmbedUnimplementedForgetServer() {}
|
||||
func (UnimplementedForgetServer) testEmbeddedByValue() {}
|
||||
func (UnimplementedForgetServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeForgetServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to ForgetServer will
|
||||
@@ -163,5 +162,5 @@ var Forget_ServiceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "forget.proto",
|
||||
Metadata: "module/base/passport/proto/forget.proto",
|
||||
}
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc (unknown)
|
||||
// source: login.proto
|
||||
// protoc v7.35.0
|
||||
// source: module/base/passport/proto/login.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 LoginByPwdRequest struct {
|
||||
|
||||
func (x *LoginByPwdRequest) Reset() {
|
||||
*x = LoginByPwdRequest{}
|
||||
mi := &file_login_proto_msgTypes[0]
|
||||
mi := &file_module_base_passport_proto_login_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -43,7 +44,7 @@ func (x *LoginByPwdRequest) String() string {
|
||||
func (*LoginByPwdRequest) ProtoMessage() {}
|
||||
|
||||
func (x *LoginByPwdRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_login_proto_msgTypes[0]
|
||||
mi := &file_module_base_passport_proto_login_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -56,7 +57,7 @@ func (x *LoginByPwdRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use LoginByPwdRequest.ProtoReflect.Descriptor instead.
|
||||
func (*LoginByPwdRequest) Descriptor() ([]byte, []int) {
|
||||
return file_login_proto_rawDescGZIP(), []int{0}
|
||||
return file_module_base_passport_proto_login_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *LoginByPwdRequest) GetAccount() string {
|
||||
@@ -88,7 +89,7 @@ type LoginByCodeRequest struct {
|
||||
|
||||
func (x *LoginByCodeRequest) Reset() {
|
||||
*x = LoginByCodeRequest{}
|
||||
mi := &file_login_proto_msgTypes[1]
|
||||
mi := &file_module_base_passport_proto_login_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -100,7 +101,7 @@ func (x *LoginByCodeRequest) String() string {
|
||||
func (*LoginByCodeRequest) ProtoMessage() {}
|
||||
|
||||
func (x *LoginByCodeRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_login_proto_msgTypes[1]
|
||||
mi := &file_module_base_passport_proto_login_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -113,7 +114,7 @@ func (x *LoginByCodeRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use LoginByCodeRequest.ProtoReflect.Descriptor instead.
|
||||
func (*LoginByCodeRequest) Descriptor() ([]byte, []int) {
|
||||
return file_login_proto_rawDescGZIP(), []int{1}
|
||||
return file_module_base_passport_proto_login_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *LoginByCodeRequest) GetCountry() string {
|
||||
@@ -171,14 +172,14 @@ type LoginReply struct {
|
||||
Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` //用户唯一码
|
||||
Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` //用户凭证
|
||||
Extend map[string]string `protobuf:"bytes,4,rep,name=extend,proto3" json:"extend,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` //扩展字段
|
||||
VerifyStatus *VerifyStatus `protobuf:"bytes,5,opt,name=verify_status,json=verifyStatus,proto3" json:"verify_status,omitempty"` // 用户验证状态
|
||||
VerifyStatus *protobuf.VerifyStatus `protobuf:"bytes,5,opt,name=verify_status,json=verifyStatus,proto3" json:"verify_status,omitempty"` // 用户验证状态
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *LoginReply) Reset() {
|
||||
*x = LoginReply{}
|
||||
mi := &file_login_proto_msgTypes[2]
|
||||
mi := &file_module_base_passport_proto_login_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -190,7 +191,7 @@ func (x *LoginReply) String() string {
|
||||
func (*LoginReply) ProtoMessage() {}
|
||||
|
||||
func (x *LoginReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_login_proto_msgTypes[2]
|
||||
mi := &file_module_base_passport_proto_login_proto_msgTypes[2]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -203,7 +204,7 @@ func (x *LoginReply) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use LoginReply.ProtoReflect.Descriptor instead.
|
||||
func (*LoginReply) Descriptor() ([]byte, []int) {
|
||||
return file_login_proto_rawDescGZIP(), []int{2}
|
||||
return file_module_base_passport_proto_login_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *LoginReply) GetId() int64 {
|
||||
@@ -234,18 +235,18 @@ func (x *LoginReply) GetExtend() map[string]string {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *LoginReply) GetVerifyStatus() *VerifyStatus {
|
||||
func (x *LoginReply) GetVerifyStatus() *protobuf.VerifyStatus {
|
||||
if x != nil {
|
||||
return x.VerifyStatus
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_login_proto protoreflect.FileDescriptor
|
||||
var File_module_base_passport_proto_login_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_login_proto_rawDesc = "" +
|
||||
const file_module_base_passport_proto_login_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x19base/passport/login.proto\x12\bpassport\x1a\x15passport/blocks.proto\"I\n" +
|
||||
"&module/base/passport/proto/login.proto\x12\bpassport\x1a\x15protobuf/blocks.proto\"I\n" +
|
||||
"\x11LoginByPwdRequest\x12\x18\n" +
|
||||
"\aaccount\x18\x01 \x01(\tR\aaccount\x12\x1a\n" +
|
||||
"\bpassword\x18\x02 \x01(\tR\bpassword\"\xd4\x01\n" +
|
||||
@@ -256,46 +257,45 @@ const file_login_proto_rawDesc = "" +
|
||||
"\tagency_id\x18\x04 \x01(\x03R\bagencyId\x12\x19\n" +
|
||||
"\bstaff_id\x18\x05 \x01(\x03R\astaffId\x12\x1a\n" +
|
||||
"\bowner_id\x18\x06 \x01(\x03R\bowner_id\x12&\n" +
|
||||
"\x0eowner_identity\x18\a \x01(\tR\x0eowner_identity\"\x80\x02\n" +
|
||||
"\x0eowner_identity\x18\a \x01(\tR\x0eowner_identity\"\xfe\x01\n" +
|
||||
"\n" +
|
||||
"LoginReply\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
"\bidentity\x18\x02 \x01(\tR\bidentity\x12\x14\n" +
|
||||
"\x05token\x18\x03 \x01(\tR\x05token\x128\n" +
|
||||
"\x06extend\x18\x04 \x03(\v2 .passport.LoginReply.ExtendEntryR\x06extend\x12;\n" +
|
||||
"\rverify_status\x18\x05 \x01(\v2\x16.passport.VerifyStatusR\fverifyStatus\x1a9\n" +
|
||||
"\x06extend\x18\x04 \x03(\v2 .passport.LoginReply.ExtendEntryR\x06extend\x129\n" +
|
||||
"\rverify_status\x18\x05 \x01(\v2\x14.blocks.VerifyStatusR\fverifyStatus\x1a9\n" +
|
||||
"\vExtendEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x012\xc0\x01\n" +
|
||||
"\x05Login\x12:\n" +
|
||||
"\x03Pwd\x12\x1b.passport.LoginByPwdRequest\x1a\x14.passport.LoginReply\"\x00\x12<\n" +
|
||||
"\x04Code\x12\x1c.passport.LoginByCodeRequest\x1a\x14.passport.LoginReply\"\x00\x12=\n" +
|
||||
"\x05Quick\x12\x1c.passport.LoginByCodeRequest\x1a\x14.passport.LoginReply\"\x00B\fZ\n" +
|
||||
".;passportb\x06proto3"
|
||||
"\x05Quick\x12\x1c.passport.LoginByCodeRequest\x1a\x14.passport.LoginReply\"\x00B+Z)bsm/full/module/base/passport/pb;passportb\x06proto3"
|
||||
|
||||
var (
|
||||
file_login_proto_rawDescOnce sync.Once
|
||||
file_login_proto_rawDescData []byte
|
||||
file_module_base_passport_proto_login_proto_rawDescOnce sync.Once
|
||||
file_module_base_passport_proto_login_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_login_proto_rawDescGZIP() []byte {
|
||||
file_login_proto_rawDescOnce.Do(func() {
|
||||
file_login_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_login_proto_rawDesc), len(file_login_proto_rawDesc)))
|
||||
func file_module_base_passport_proto_login_proto_rawDescGZIP() []byte {
|
||||
file_module_base_passport_proto_login_proto_rawDescOnce.Do(func() {
|
||||
file_module_base_passport_proto_login_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_base_passport_proto_login_proto_rawDesc), len(file_module_base_passport_proto_login_proto_rawDesc)))
|
||||
})
|
||||
return file_login_proto_rawDescData
|
||||
return file_module_base_passport_proto_login_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_login_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_login_proto_goTypes = []any{
|
||||
(*LoginByPwdRequest)(nil), // 0: passport.LoginByPwdRequest
|
||||
(*LoginByCodeRequest)(nil), // 1: passport.LoginByCodeRequest
|
||||
(*LoginReply)(nil), // 2: passport.LoginReply
|
||||
nil, // 3: passport.LoginReply.ExtendEntry
|
||||
(*VerifyStatus)(nil), // 4: passport.VerifyStatus
|
||||
var file_module_base_passport_proto_login_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_module_base_passport_proto_login_proto_goTypes = []any{
|
||||
(*LoginByPwdRequest)(nil), // 0: passport.LoginByPwdRequest
|
||||
(*LoginByCodeRequest)(nil), // 1: passport.LoginByCodeRequest
|
||||
(*LoginReply)(nil), // 2: passport.LoginReply
|
||||
nil, // 3: passport.LoginReply.ExtendEntry
|
||||
(*protobuf.VerifyStatus)(nil), // 4: blocks.VerifyStatus
|
||||
}
|
||||
var file_login_proto_depIdxs = []int32{
|
||||
var file_module_base_passport_proto_login_proto_depIdxs = []int32{
|
||||
3, // 0: passport.LoginReply.extend:type_name -> passport.LoginReply.ExtendEntry
|
||||
4, // 1: passport.LoginReply.verify_status:type_name -> passport.VerifyStatus
|
||||
4, // 1: passport.LoginReply.verify_status:type_name -> blocks.VerifyStatus
|
||||
0, // 2: passport.Login.Pwd:input_type -> passport.LoginByPwdRequest
|
||||
1, // 3: passport.Login.Code:input_type -> passport.LoginByCodeRequest
|
||||
1, // 4: passport.Login.Quick:input_type -> passport.LoginByCodeRequest
|
||||
@@ -309,27 +309,26 @@ var file_login_proto_depIdxs = []int32{
|
||||
0, // [0:2] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_login_proto_init() }
|
||||
func file_login_proto_init() {
|
||||
if File_login_proto != nil {
|
||||
func init() { file_module_base_passport_proto_login_proto_init() }
|
||||
func file_module_base_passport_proto_login_proto_init() {
|
||||
if File_module_base_passport_proto_login_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_login_proto_rawDesc), len(file_login_proto_rawDesc)),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_base_passport_proto_login_proto_rawDesc), len(file_module_base_passport_proto_login_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 4,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_login_proto_goTypes,
|
||||
DependencyIndexes: file_login_proto_depIdxs,
|
||||
MessageInfos: file_login_proto_msgTypes,
|
||||
GoTypes: file_module_base_passport_proto_login_proto_goTypes,
|
||||
DependencyIndexes: file_module_base_passport_proto_login_proto_depIdxs,
|
||||
MessageInfos: file_module_base_passport_proto_login_proto_msgTypes,
|
||||
}.Build()
|
||||
File_login_proto = out.File
|
||||
file_login_proto_goTypes = nil
|
||||
file_login_proto_depIdxs = nil
|
||||
File_module_base_passport_proto_login_proto = out.File
|
||||
file_module_base_passport_proto_login_proto_goTypes = nil
|
||||
file_module_base_passport_proto_login_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
|
||||
// source: login.proto
|
||||
// source: module/base/passport/proto/login.proto
|
||||
|
||||
/*
|
||||
Package passport is a reverse proxy.
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.6.1
|
||||
// - protoc (unknown)
|
||||
// source: login.proto
|
||||
// - protoc-gen-go-grpc v1.6.2
|
||||
// - protoc v7.35.0
|
||||
// source: module/base/passport/proto/login.proto
|
||||
|
||||
package passport
|
||||
|
||||
@@ -77,7 +77,7 @@ func (c *loginClient) Quick(ctx context.Context, in *LoginByCodeRequest, opts ..
|
||||
}
|
||||
|
||||
// LoginServer is the server API for Login service.
|
||||
// All implementations must embed UnimplementedLoginServer
|
||||
// All implementations should embed UnimplementedLoginServer
|
||||
// for forward compatibility.
|
||||
//
|
||||
// Passport-通行证模块-登录
|
||||
@@ -88,10 +88,9 @@ type LoginServer interface {
|
||||
Code(context.Context, *LoginByCodeRequest) (*LoginReply, error)
|
||||
// 通过验证码快捷登录并注册
|
||||
Quick(context.Context, *LoginByCodeRequest) (*LoginReply, error)
|
||||
mustEmbedUnimplementedLoginServer()
|
||||
}
|
||||
|
||||
// UnimplementedLoginServer must be embedded to have
|
||||
// UnimplementedLoginServer should be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
@@ -107,8 +106,7 @@ func (UnimplementedLoginServer) Code(context.Context, *LoginByCodeRequest) (*Log
|
||||
func (UnimplementedLoginServer) Quick(context.Context, *LoginByCodeRequest) (*LoginReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Quick not implemented")
|
||||
}
|
||||
func (UnimplementedLoginServer) mustEmbedUnimplementedLoginServer() {}
|
||||
func (UnimplementedLoginServer) testEmbeddedByValue() {}
|
||||
func (UnimplementedLoginServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeLoginServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to LoginServer will
|
||||
@@ -203,5 +201,5 @@ var Login_ServiceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "login.proto",
|
||||
Metadata: "module/base/passport/proto/login.proto",
|
||||
}
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc (unknown)
|
||||
// source: register.proto
|
||||
// protoc v7.35.0
|
||||
// source: module/base/passport/proto/register.proto
|
||||
|
||||
package passport
|
||||
|
||||
import (
|
||||
protobuf "bsm/full/protobuf"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
@@ -39,7 +40,7 @@ type RegisterRequest struct {
|
||||
|
||||
func (x *RegisterRequest) Reset() {
|
||||
*x = RegisterRequest{}
|
||||
mi := &file_register_proto_msgTypes[0]
|
||||
mi := &file_module_base_passport_proto_register_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -51,7 +52,7 @@ func (x *RegisterRequest) String() string {
|
||||
func (*RegisterRequest) ProtoMessage() {}
|
||||
|
||||
func (x *RegisterRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_register_proto_msgTypes[0]
|
||||
mi := &file_module_base_passport_proto_register_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -64,7 +65,7 @@ func (x *RegisterRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
|
||||
func (*RegisterRequest) Descriptor() ([]byte, []int) {
|
||||
return file_register_proto_rawDescGZIP(), []int{0}
|
||||
return file_module_base_passport_proto_register_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *RegisterRequest) GetCountry() string {
|
||||
@@ -143,14 +144,14 @@ type RegisterReply struct {
|
||||
Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` //用户唯一码
|
||||
Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` //用户Header所需Token
|
||||
Extend map[string]string `protobuf:"bytes,5,rep,name=extend,proto3" json:"extend,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` //扩展字段
|
||||
VerifyStatus *VerifyStatus `protobuf:"bytes,6,opt,name=verify_status,json=verifyStatus,proto3" json:"verify_status,omitempty"` // 用户验证状态
|
||||
VerifyStatus *protobuf.VerifyStatus `protobuf:"bytes,6,opt,name=verify_status,json=verifyStatus,proto3" json:"verify_status,omitempty"` // 用户验证状态
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *RegisterReply) Reset() {
|
||||
*x = RegisterReply{}
|
||||
mi := &file_register_proto_msgTypes[1]
|
||||
mi := &file_module_base_passport_proto_register_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -162,7 +163,7 @@ func (x *RegisterReply) String() string {
|
||||
func (*RegisterReply) ProtoMessage() {}
|
||||
|
||||
func (x *RegisterReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_register_proto_msgTypes[1]
|
||||
mi := &file_module_base_passport_proto_register_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -175,7 +176,7 @@ func (x *RegisterReply) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use RegisterReply.ProtoReflect.Descriptor instead.
|
||||
func (*RegisterReply) Descriptor() ([]byte, []int) {
|
||||
return file_register_proto_rawDescGZIP(), []int{1}
|
||||
return file_module_base_passport_proto_register_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *RegisterReply) GetId() int64 {
|
||||
@@ -206,18 +207,18 @@ func (x *RegisterReply) GetExtend() map[string]string {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *RegisterReply) GetVerifyStatus() *VerifyStatus {
|
||||
func (x *RegisterReply) GetVerifyStatus() *protobuf.VerifyStatus {
|
||||
if x != nil {
|
||||
return x.VerifyStatus
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_register_proto protoreflect.FileDescriptor
|
||||
var File_module_base_passport_proto_register_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_register_proto_rawDesc = "" +
|
||||
const file_module_base_passport_proto_register_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x1cbase/passport/register.proto\x12\bpassport\x1a\x15passport/blocks.proto\"\x9d\x02\n" +
|
||||
")module/base/passport/proto/register.proto\x12\bpassport\x1a\x15protobuf/blocks.proto\"\x9d\x02\n" +
|
||||
"\x0fRegisterRequest\x12\x18\n" +
|
||||
"\acountry\x18\x01 \x01(\tR\acountry\x12\x14\n" +
|
||||
"\x05email\x18\x02 \x01(\tR\x05email\x12\x18\n" +
|
||||
@@ -229,43 +230,42 @@ const file_register_proto_rawDesc = "" +
|
||||
"\bstaff_id\x18\b \x01(\x03R\astaffId\x12\x1a\n" +
|
||||
"\bowner_id\x18\t \x01(\x03R\bowner_id\x12&\n" +
|
||||
"\x0eowner_identity\x18\n" +
|
||||
" \x01(\tR\x0eowner_identity\"\x86\x02\n" +
|
||||
" \x01(\tR\x0eowner_identity\"\x84\x02\n" +
|
||||
"\rRegisterReply\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
"\bidentity\x18\x02 \x01(\tR\bidentity\x12\x14\n" +
|
||||
"\x05token\x18\x04 \x01(\tR\x05token\x12;\n" +
|
||||
"\x06extend\x18\x05 \x03(\v2#.passport.RegisterReply.ExtendEntryR\x06extend\x12;\n" +
|
||||
"\rverify_status\x18\x06 \x01(\v2\x16.passport.VerifyStatusR\fverifyStatus\x1a9\n" +
|
||||
"\x06extend\x18\x05 \x03(\v2#.passport.RegisterReply.ExtendEntryR\x06extend\x129\n" +
|
||||
"\rverify_status\x18\x06 \x01(\v2\x14.blocks.VerifyStatusR\fverifyStatus\x1a9\n" +
|
||||
"\vExtendEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x012\x85\x01\n" +
|
||||
"\bRegister\x12;\n" +
|
||||
"\x03Pwd\x12\x19.passport.RegisterRequest\x1a\x17.passport.RegisterReply\"\x00\x12<\n" +
|
||||
"\x04Code\x12\x19.passport.RegisterRequest\x1a\x17.passport.RegisterReply\"\x00B\fZ\n" +
|
||||
".;passportb\x06proto3"
|
||||
"\x04Code\x12\x19.passport.RegisterRequest\x1a\x17.passport.RegisterReply\"\x00B+Z)bsm/full/module/base/passport/pb;passportb\x06proto3"
|
||||
|
||||
var (
|
||||
file_register_proto_rawDescOnce sync.Once
|
||||
file_register_proto_rawDescData []byte
|
||||
file_module_base_passport_proto_register_proto_rawDescOnce sync.Once
|
||||
file_module_base_passport_proto_register_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_register_proto_rawDescGZIP() []byte {
|
||||
file_register_proto_rawDescOnce.Do(func() {
|
||||
file_register_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_register_proto_rawDesc), len(file_register_proto_rawDesc)))
|
||||
func file_module_base_passport_proto_register_proto_rawDescGZIP() []byte {
|
||||
file_module_base_passport_proto_register_proto_rawDescOnce.Do(func() {
|
||||
file_module_base_passport_proto_register_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_base_passport_proto_register_proto_rawDesc), len(file_module_base_passport_proto_register_proto_rawDesc)))
|
||||
})
|
||||
return file_register_proto_rawDescData
|
||||
return file_module_base_passport_proto_register_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_register_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||||
var file_register_proto_goTypes = []any{
|
||||
(*RegisterRequest)(nil), // 0: passport.RegisterRequest
|
||||
(*RegisterReply)(nil), // 1: passport.RegisterReply
|
||||
nil, // 2: passport.RegisterReply.ExtendEntry
|
||||
(*VerifyStatus)(nil), // 3: passport.VerifyStatus
|
||||
var file_module_base_passport_proto_register_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||||
var file_module_base_passport_proto_register_proto_goTypes = []any{
|
||||
(*RegisterRequest)(nil), // 0: passport.RegisterRequest
|
||||
(*RegisterReply)(nil), // 1: passport.RegisterReply
|
||||
nil, // 2: passport.RegisterReply.ExtendEntry
|
||||
(*protobuf.VerifyStatus)(nil), // 3: blocks.VerifyStatus
|
||||
}
|
||||
var file_register_proto_depIdxs = []int32{
|
||||
var file_module_base_passport_proto_register_proto_depIdxs = []int32{
|
||||
2, // 0: passport.RegisterReply.extend:type_name -> passport.RegisterReply.ExtendEntry
|
||||
3, // 1: passport.RegisterReply.verify_status:type_name -> passport.VerifyStatus
|
||||
3, // 1: passport.RegisterReply.verify_status:type_name -> blocks.VerifyStatus
|
||||
0, // 2: passport.Register.Pwd:input_type -> passport.RegisterRequest
|
||||
0, // 3: passport.Register.Code:input_type -> passport.RegisterRequest
|
||||
1, // 4: passport.Register.Pwd:output_type -> passport.RegisterReply
|
||||
@@ -277,27 +277,26 @@ var file_register_proto_depIdxs = []int32{
|
||||
0, // [0:2] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_register_proto_init() }
|
||||
func file_register_proto_init() {
|
||||
if File_register_proto != nil {
|
||||
func init() { file_module_base_passport_proto_register_proto_init() }
|
||||
func file_module_base_passport_proto_register_proto_init() {
|
||||
if File_module_base_passport_proto_register_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_register_proto_rawDesc), len(file_register_proto_rawDesc)),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_base_passport_proto_register_proto_rawDesc), len(file_module_base_passport_proto_register_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 3,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_register_proto_goTypes,
|
||||
DependencyIndexes: file_register_proto_depIdxs,
|
||||
MessageInfos: file_register_proto_msgTypes,
|
||||
GoTypes: file_module_base_passport_proto_register_proto_goTypes,
|
||||
DependencyIndexes: file_module_base_passport_proto_register_proto_depIdxs,
|
||||
MessageInfos: file_module_base_passport_proto_register_proto_msgTypes,
|
||||
}.Build()
|
||||
File_register_proto = out.File
|
||||
file_register_proto_goTypes = nil
|
||||
file_register_proto_depIdxs = nil
|
||||
File_module_base_passport_proto_register_proto = out.File
|
||||
file_module_base_passport_proto_register_proto_goTypes = nil
|
||||
file_module_base_passport_proto_register_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
|
||||
// source: register.proto
|
||||
// source: module/base/passport/proto/register.proto
|
||||
|
||||
/*
|
||||
Package passport is a reverse proxy.
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.6.1
|
||||
// - protoc (unknown)
|
||||
// source: register.proto
|
||||
// - protoc-gen-go-grpc v1.6.2
|
||||
// - protoc v7.35.0
|
||||
// source: module/base/passport/proto/register.proto
|
||||
|
||||
package passport
|
||||
|
||||
@@ -64,7 +64,7 @@ func (c *registerClient) Code(ctx context.Context, in *RegisterRequest, opts ...
|
||||
}
|
||||
|
||||
// RegisterServer is the server API for Register service.
|
||||
// All implementations must embed UnimplementedRegisterServer
|
||||
// All implementations should embed UnimplementedRegisterServer
|
||||
// for forward compatibility.
|
||||
//
|
||||
// Passport-通行证模块-注册
|
||||
@@ -73,10 +73,9 @@ type RegisterServer interface {
|
||||
Pwd(context.Context, *RegisterRequest) (*RegisterReply, error)
|
||||
// 手机验证码注册
|
||||
Code(context.Context, *RegisterRequest) (*RegisterReply, error)
|
||||
mustEmbedUnimplementedRegisterServer()
|
||||
}
|
||||
|
||||
// UnimplementedRegisterServer must be embedded to have
|
||||
// UnimplementedRegisterServer should be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
@@ -89,8 +88,7 @@ func (UnimplementedRegisterServer) Pwd(context.Context, *RegisterRequest) (*Regi
|
||||
func (UnimplementedRegisterServer) Code(context.Context, *RegisterRequest) (*RegisterReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Code not implemented")
|
||||
}
|
||||
func (UnimplementedRegisterServer) mustEmbedUnimplementedRegisterServer() {}
|
||||
func (UnimplementedRegisterServer) testEmbeddedByValue() {}
|
||||
func (UnimplementedRegisterServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeRegisterServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to RegisterServer will
|
||||
@@ -163,5 +161,5 @@ var Register_ServiceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "register.proto",
|
||||
Metadata: "module/base/passport/proto/register.proto",
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
|
||||
// source: verify.proto
|
||||
// source: module/base/passport/proto/verify.proto
|
||||
|
||||
/*
|
||||
Package passport is a reverse proxy.
|
||||
|
||||
@@ -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",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user