updated
This commit is contained in:
parent
684fef0db0
commit
5ca34ec9da
|
@ -366,6 +366,98 @@ class StatusReply extends $pb.GeneratedMessage {
|
||||||
void clearTimeseq() => $_clearField(4);
|
void clearTimeseq() => $_clearField(4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class VerifyStatus extends $pb.GeneratedMessage {
|
||||||
|
factory VerifyStatus({
|
||||||
|
$core.bool? emailVerify,
|
||||||
|
$core.bool? phoneVerify,
|
||||||
|
$core.bool? photoVerify,
|
||||||
|
$core.bool? kycVerify,
|
||||||
|
}) {
|
||||||
|
final result = create();
|
||||||
|
if (emailVerify != null) result.emailVerify = emailVerify;
|
||||||
|
if (phoneVerify != null) result.phoneVerify = phoneVerify;
|
||||||
|
if (photoVerify != null) result.photoVerify = photoVerify;
|
||||||
|
if (kycVerify != null) result.kycVerify = kycVerify;
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
VerifyStatus._();
|
||||||
|
|
||||||
|
factory VerifyStatus.fromBuffer($core.List<$core.int> data,
|
||||||
|
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||||
|
create()..mergeFromBuffer(data, registry);
|
||||||
|
factory VerifyStatus.fromJson($core.String json,
|
||||||
|
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||||
|
create()..mergeFromJson(json, registry);
|
||||||
|
|
||||||
|
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||||
|
_omitMessageNames ? '' : 'VerifyStatus',
|
||||||
|
package: const $pb.PackageName(_omitMessageNames ? '' : 'passport'),
|
||||||
|
createEmptyInstance: create)
|
||||||
|
..aOB(1, _omitFieldNames ? '' : 'emailVerify')
|
||||||
|
..aOB(2, _omitFieldNames ? '' : 'phoneVerify')
|
||||||
|
..aOB(3, _omitFieldNames ? '' : 'photoVerify')
|
||||||
|
..aOB(4, _omitFieldNames ? '' : 'kycVerify')
|
||||||
|
..hasRequiredFields = false;
|
||||||
|
|
||||||
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||||
|
VerifyStatus clone() => VerifyStatus()..mergeFromMessage(this);
|
||||||
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||||
|
VerifyStatus copyWith(void Function(VerifyStatus) updates) =>
|
||||||
|
super.copyWith((message) => updates(message as VerifyStatus))
|
||||||
|
as VerifyStatus;
|
||||||
|
|
||||||
|
@$core.override
|
||||||
|
$pb.BuilderInfo get info_ => _i;
|
||||||
|
|
||||||
|
@$core.pragma('dart2js:noInline')
|
||||||
|
static VerifyStatus create() => VerifyStatus._();
|
||||||
|
@$core.override
|
||||||
|
VerifyStatus createEmptyInstance() => create();
|
||||||
|
static $pb.PbList<VerifyStatus> createRepeated() =>
|
||||||
|
$pb.PbList<VerifyStatus>();
|
||||||
|
@$core.pragma('dart2js:noInline')
|
||||||
|
static VerifyStatus getDefault() => _defaultInstance ??=
|
||||||
|
$pb.GeneratedMessage.$_defaultFor<VerifyStatus>(create);
|
||||||
|
static VerifyStatus? _defaultInstance;
|
||||||
|
|
||||||
|
@$pb.TagNumber(1)
|
||||||
|
$core.bool get emailVerify => $_getBF(0);
|
||||||
|
@$pb.TagNumber(1)
|
||||||
|
set emailVerify($core.bool value) => $_setBool(0, value);
|
||||||
|
@$pb.TagNumber(1)
|
||||||
|
$core.bool hasEmailVerify() => $_has(0);
|
||||||
|
@$pb.TagNumber(1)
|
||||||
|
void clearEmailVerify() => $_clearField(1);
|
||||||
|
|
||||||
|
@$pb.TagNumber(2)
|
||||||
|
$core.bool get phoneVerify => $_getBF(1);
|
||||||
|
@$pb.TagNumber(2)
|
||||||
|
set phoneVerify($core.bool value) => $_setBool(1, value);
|
||||||
|
@$pb.TagNumber(2)
|
||||||
|
$core.bool hasPhoneVerify() => $_has(1);
|
||||||
|
@$pb.TagNumber(2)
|
||||||
|
void clearPhoneVerify() => $_clearField(2);
|
||||||
|
|
||||||
|
@$pb.TagNumber(3)
|
||||||
|
$core.bool get photoVerify => $_getBF(2);
|
||||||
|
@$pb.TagNumber(3)
|
||||||
|
set photoVerify($core.bool value) => $_setBool(2, value);
|
||||||
|
@$pb.TagNumber(3)
|
||||||
|
$core.bool hasPhotoVerify() => $_has(2);
|
||||||
|
@$pb.TagNumber(3)
|
||||||
|
void clearPhotoVerify() => $_clearField(3);
|
||||||
|
|
||||||
|
@$pb.TagNumber(4)
|
||||||
|
$core.bool get kycVerify => $_getBF(3);
|
||||||
|
@$pb.TagNumber(4)
|
||||||
|
set kycVerify($core.bool value) => $_setBool(3, value);
|
||||||
|
@$pb.TagNumber(4)
|
||||||
|
$core.bool hasKycVerify() => $_has(3);
|
||||||
|
@$pb.TagNumber(4)
|
||||||
|
void clearKycVerify() => $_clearField(4);
|
||||||
|
}
|
||||||
|
|
||||||
class Empty extends $pb.GeneratedMessage {
|
class Empty extends $pb.GeneratedMessage {
|
||||||
factory Empty() => create();
|
factory Empty() => create();
|
||||||
|
|
||||||
|
|
|
@ -103,6 +103,23 @@ final $typed_data.Uint8List statusReplyDescriptor = $convert.base64Decode(
|
||||||
'CgtTdGF0dXNSZXBseRISCgRjb2RlGAEgASgFUgRjb2RlEhgKB21lc3NhZ2UYAiABKAlSB21lc3'
|
'CgtTdGF0dXNSZXBseRISCgRjb2RlGAEgASgFUgRjb2RlEhgKB21lc3NhZ2UYAiABKAlSB21lc3'
|
||||||
'NhZ2USGAoHZGV0YWlscxgDIAEoCVIHZGV0YWlscxIYCgd0aW1lc2VxGAQgASgDUgd0aW1lc2Vx');
|
'NhZ2USGAoHZGV0YWlscxgDIAEoCVIHZGV0YWlscxIYCgd0aW1lc2VxGAQgASgDUgd0aW1lc2Vx');
|
||||||
|
|
||||||
|
@$core.Deprecated('Use verifyStatusDescriptor instead')
|
||||||
|
const VerifyStatus$json = {
|
||||||
|
'1': 'VerifyStatus',
|
||||||
|
'2': [
|
||||||
|
{'1': 'email_verify', '3': 1, '4': 1, '5': 8, '10': 'emailVerify'},
|
||||||
|
{'1': 'phone_verify', '3': 2, '4': 1, '5': 8, '10': 'phoneVerify'},
|
||||||
|
{'1': 'photo_verify', '3': 3, '4': 1, '5': 8, '10': 'photoVerify'},
|
||||||
|
{'1': 'kyc_verify', '3': 4, '4': 1, '5': 8, '10': 'kycVerify'},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
|
||||||
|
/// Descriptor for `VerifyStatus`. Decode as a `google.protobuf.DescriptorProto`.
|
||||||
|
final $typed_data.Uint8List verifyStatusDescriptor = $convert.base64Decode(
|
||||||
|
'CgxWZXJpZnlTdGF0dXMSIQoMZW1haWxfdmVyaWZ5GAEgASgIUgtlbWFpbFZlcmlmeRIhCgxwaG'
|
||||||
|
'9uZV92ZXJpZnkYAiABKAhSC3Bob25lVmVyaWZ5EiEKDHBob3RvX3ZlcmlmeRgDIAEoCFILcGhv'
|
||||||
|
'dG9WZXJpZnkSHQoKa3ljX3ZlcmlmeRgEIAEoCFIJa3ljVmVyaWZ5');
|
||||||
|
|
||||||
@$core.Deprecated('Use emptyDescriptor instead')
|
@$core.Deprecated('Use emptyDescriptor instead')
|
||||||
const Empty$json = {
|
const Empty$json = {
|
||||||
'1': 'Empty',
|
'1': 'Empty',
|
||||||
|
|
|
@ -15,6 +15,8 @@ import 'dart:core' as $core;
|
||||||
import 'package:fixnum/fixnum.dart' as $fixnum;
|
import 'package:fixnum/fixnum.dart' as $fixnum;
|
||||||
import 'package:protobuf/protobuf.dart' as $pb;
|
import 'package:protobuf/protobuf.dart' as $pb;
|
||||||
|
|
||||||
|
import 'blocks.pb.dart' as $1;
|
||||||
|
|
||||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||||
|
|
||||||
class LoginByPwdRequest extends $pb.GeneratedMessage {
|
class LoginByPwdRequest extends $pb.GeneratedMessage {
|
||||||
|
@ -171,12 +173,14 @@ class LoginReply extends $pb.GeneratedMessage {
|
||||||
$core.String? identity,
|
$core.String? identity,
|
||||||
$core.String? token,
|
$core.String? token,
|
||||||
$core.Iterable<$core.MapEntry<$core.String, $core.String>>? extend,
|
$core.Iterable<$core.MapEntry<$core.String, $core.String>>? extend,
|
||||||
|
$1.VerifyStatus? verifyStatus,
|
||||||
}) {
|
}) {
|
||||||
final result = create();
|
final result = create();
|
||||||
if (id != null) result.id = id;
|
if (id != null) result.id = id;
|
||||||
if (identity != null) result.identity = identity;
|
if (identity != null) result.identity = identity;
|
||||||
if (token != null) result.token = token;
|
if (token != null) result.token = token;
|
||||||
if (extend != null) result.extend.addEntries(extend);
|
if (extend != null) result.extend.addEntries(extend);
|
||||||
|
if (verifyStatus != null) result.verifyStatus = verifyStatus;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -201,6 +205,8 @@ class LoginReply extends $pb.GeneratedMessage {
|
||||||
keyFieldType: $pb.PbFieldType.OS,
|
keyFieldType: $pb.PbFieldType.OS,
|
||||||
valueFieldType: $pb.PbFieldType.OS,
|
valueFieldType: $pb.PbFieldType.OS,
|
||||||
packageName: const $pb.PackageName('passport'))
|
packageName: const $pb.PackageName('passport'))
|
||||||
|
..aOM<$1.VerifyStatus>(5, _omitFieldNames ? '' : 'verifyStatus',
|
||||||
|
subBuilder: $1.VerifyStatus.create)
|
||||||
..hasRequiredFields = false;
|
..hasRequiredFields = false;
|
||||||
|
|
||||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||||
|
@ -251,6 +257,17 @@ class LoginReply extends $pb.GeneratedMessage {
|
||||||
|
|
||||||
@$pb.TagNumber(4)
|
@$pb.TagNumber(4)
|
||||||
$pb.PbMap<$core.String, $core.String> get extend => $_getMap(3);
|
$pb.PbMap<$core.String, $core.String> get extend => $_getMap(3);
|
||||||
|
|
||||||
|
@$pb.TagNumber(5)
|
||||||
|
$1.VerifyStatus get verifyStatus => $_getN(4);
|
||||||
|
@$pb.TagNumber(5)
|
||||||
|
set verifyStatus($1.VerifyStatus value) => $_setField(5, value);
|
||||||
|
@$pb.TagNumber(5)
|
||||||
|
$core.bool hasVerifyStatus() => $_has(4);
|
||||||
|
@$pb.TagNumber(5)
|
||||||
|
void clearVerifyStatus() => $_clearField(5);
|
||||||
|
@$pb.TagNumber(5)
|
||||||
|
$1.VerifyStatus ensureVerifyStatus() => $_ensure(4);
|
||||||
}
|
}
|
||||||
|
|
||||||
const $core.bool _omitFieldNames =
|
const $core.bool _omitFieldNames =
|
||||||
|
|
|
@ -58,6 +58,14 @@ const LoginReply$json = {
|
||||||
'6': '.passport.LoginReply.ExtendEntry',
|
'6': '.passport.LoginReply.ExtendEntry',
|
||||||
'10': 'extend'
|
'10': 'extend'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'1': 'verify_status',
|
||||||
|
'3': 5,
|
||||||
|
'4': 1,
|
||||||
|
'5': 11,
|
||||||
|
'6': '.passport.VerifyStatus',
|
||||||
|
'10': 'verifyStatus'
|
||||||
|
},
|
||||||
],
|
],
|
||||||
'3': [LoginReply_ExtendEntry$json],
|
'3': [LoginReply_ExtendEntry$json],
|
||||||
};
|
};
|
||||||
|
@ -76,5 +84,6 @@ const LoginReply_ExtendEntry$json = {
|
||||||
final $typed_data.Uint8List loginReplyDescriptor = $convert.base64Decode(
|
final $typed_data.Uint8List loginReplyDescriptor = $convert.base64Decode(
|
||||||
'CgpMb2dpblJlcGx5Eg4KAmlkGAEgASgDUgJpZBIaCghpZGVudGl0eRgCIAEoCVIIaWRlbnRpdH'
|
'CgpMb2dpblJlcGx5Eg4KAmlkGAEgASgDUgJpZBIaCghpZGVudGl0eRgCIAEoCVIIaWRlbnRpdH'
|
||||||
'kSFAoFdG9rZW4YAyABKAlSBXRva2VuEjgKBmV4dGVuZBgEIAMoCzIgLnBhc3Nwb3J0LkxvZ2lu'
|
'kSFAoFdG9rZW4YAyABKAlSBXRva2VuEjgKBmV4dGVuZBgEIAMoCzIgLnBhc3Nwb3J0LkxvZ2lu'
|
||||||
'UmVwbHkuRXh0ZW5kRW50cnlSBmV4dGVuZBo5CgtFeHRlbmRFbnRyeRIQCgNrZXkYASABKAlSA2'
|
'UmVwbHkuRXh0ZW5kRW50cnlSBmV4dGVuZBI7Cg12ZXJpZnlfc3RhdHVzGAUgASgLMhYucGFzc3'
|
||||||
'tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgB');
|
'BvcnQuVmVyaWZ5U3RhdHVzUgx2ZXJpZnlTdGF0dXMaOQoLRXh0ZW5kRW50cnkSEAoDa2V5GAEg'
|
||||||
|
'ASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4AQ==');
|
||||||
|
|
|
@ -15,6 +15,8 @@ import 'dart:core' as $core;
|
||||||
import 'package:fixnum/fixnum.dart' as $fixnum;
|
import 'package:fixnum/fixnum.dart' as $fixnum;
|
||||||
import 'package:protobuf/protobuf.dart' as $pb;
|
import 'package:protobuf/protobuf.dart' as $pb;
|
||||||
|
|
||||||
|
import 'blocks.pb.dart' as $1;
|
||||||
|
|
||||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||||
|
|
||||||
class RegisterRequest extends $pb.GeneratedMessage {
|
class RegisterRequest extends $pb.GeneratedMessage {
|
||||||
|
@ -175,12 +177,14 @@ class RegisterReply extends $pb.GeneratedMessage {
|
||||||
$core.String? identity,
|
$core.String? identity,
|
||||||
$core.String? token,
|
$core.String? token,
|
||||||
$core.Iterable<$core.MapEntry<$core.String, $core.String>>? extend,
|
$core.Iterable<$core.MapEntry<$core.String, $core.String>>? extend,
|
||||||
|
$1.VerifyStatus? verifyStatus,
|
||||||
}) {
|
}) {
|
||||||
final result = create();
|
final result = create();
|
||||||
if (id != null) result.id = id;
|
if (id != null) result.id = id;
|
||||||
if (identity != null) result.identity = identity;
|
if (identity != null) result.identity = identity;
|
||||||
if (token != null) result.token = token;
|
if (token != null) result.token = token;
|
||||||
if (extend != null) result.extend.addEntries(extend);
|
if (extend != null) result.extend.addEntries(extend);
|
||||||
|
if (verifyStatus != null) result.verifyStatus = verifyStatus;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -205,6 +209,8 @@ class RegisterReply extends $pb.GeneratedMessage {
|
||||||
keyFieldType: $pb.PbFieldType.OS,
|
keyFieldType: $pb.PbFieldType.OS,
|
||||||
valueFieldType: $pb.PbFieldType.OS,
|
valueFieldType: $pb.PbFieldType.OS,
|
||||||
packageName: const $pb.PackageName('passport'))
|
packageName: const $pb.PackageName('passport'))
|
||||||
|
..aOM<$1.VerifyStatus>(6, _omitFieldNames ? '' : 'verifyStatus',
|
||||||
|
subBuilder: $1.VerifyStatus.create)
|
||||||
..hasRequiredFields = false;
|
..hasRequiredFields = false;
|
||||||
|
|
||||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||||
|
@ -257,6 +263,17 @@ class RegisterReply extends $pb.GeneratedMessage {
|
||||||
|
|
||||||
@$pb.TagNumber(5)
|
@$pb.TagNumber(5)
|
||||||
$pb.PbMap<$core.String, $core.String> get extend => $_getMap(3);
|
$pb.PbMap<$core.String, $core.String> get extend => $_getMap(3);
|
||||||
|
|
||||||
|
@$pb.TagNumber(6)
|
||||||
|
$1.VerifyStatus get verifyStatus => $_getN(4);
|
||||||
|
@$pb.TagNumber(6)
|
||||||
|
set verifyStatus($1.VerifyStatus value) => $_setField(6, value);
|
||||||
|
@$pb.TagNumber(6)
|
||||||
|
$core.bool hasVerifyStatus() => $_has(4);
|
||||||
|
@$pb.TagNumber(6)
|
||||||
|
void clearVerifyStatus() => $_clearField(6);
|
||||||
|
@$pb.TagNumber(6)
|
||||||
|
$1.VerifyStatus ensureVerifyStatus() => $_ensure(4);
|
||||||
}
|
}
|
||||||
|
|
||||||
const $core.bool _omitFieldNames =
|
const $core.bool _omitFieldNames =
|
||||||
|
|
|
@ -53,6 +53,14 @@ const RegisterReply$json = {
|
||||||
'6': '.passport.RegisterReply.ExtendEntry',
|
'6': '.passport.RegisterReply.ExtendEntry',
|
||||||
'10': 'extend'
|
'10': 'extend'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'1': 'verify_status',
|
||||||
|
'3': 6,
|
||||||
|
'4': 1,
|
||||||
|
'5': 11,
|
||||||
|
'6': '.passport.VerifyStatus',
|
||||||
|
'10': 'verifyStatus'
|
||||||
|
},
|
||||||
],
|
],
|
||||||
'3': [RegisterReply_ExtendEntry$json],
|
'3': [RegisterReply_ExtendEntry$json],
|
||||||
};
|
};
|
||||||
|
@ -71,5 +79,6 @@ const RegisterReply_ExtendEntry$json = {
|
||||||
final $typed_data.Uint8List registerReplyDescriptor = $convert.base64Decode(
|
final $typed_data.Uint8List registerReplyDescriptor = $convert.base64Decode(
|
||||||
'Cg1SZWdpc3RlclJlcGx5Eg4KAmlkGAEgASgDUgJpZBIaCghpZGVudGl0eRgCIAEoCVIIaWRlbn'
|
'Cg1SZWdpc3RlclJlcGx5Eg4KAmlkGAEgASgDUgJpZBIaCghpZGVudGl0eRgCIAEoCVIIaWRlbn'
|
||||||
'RpdHkSFAoFdG9rZW4YBCABKAlSBXRva2VuEjsKBmV4dGVuZBgFIAMoCzIjLnBhc3Nwb3J0LlJl'
|
'RpdHkSFAoFdG9rZW4YBCABKAlSBXRva2VuEjsKBmV4dGVuZBgFIAMoCzIjLnBhc3Nwb3J0LlJl'
|
||||||
'Z2lzdGVyUmVwbHkuRXh0ZW5kRW50cnlSBmV4dGVuZBo5CgtFeHRlbmRFbnRyeRIQCgNrZXkYAS'
|
'Z2lzdGVyUmVwbHkuRXh0ZW5kRW50cnlSBmV4dGVuZBI7Cg12ZXJpZnlfc3RhdHVzGAYgASgLMh'
|
||||||
'ABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgB');
|
'YucGFzc3BvcnQuVmVyaWZ5U3RhdHVzUgx2ZXJpZnlTdGF0dXMaOQoLRXh0ZW5kRW50cnkSEAoD'
|
||||||
|
'a2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4AQ==');
|
||||||
|
|
|
@ -28,6 +28,12 @@
|
||||||
extend: {
|
extend: {
|
||||||
"": ""
|
"": ""
|
||||||
}, // map<string,string>, 扩展字段
|
}, // map<string,string>, 扩展字段
|
||||||
|
verify_status: {
|
||||||
|
email_verify: false, // type<bool>, 邮箱是否已验证
|
||||||
|
phone_verify: false, // type<bool>, 手机是否已验证
|
||||||
|
photo_verify: false, // type<bool>, 头像是否已验证
|
||||||
|
kyc_verify: false, // type<bool>, 实名是否已验证
|
||||||
|
}, // type<VerifyStatus>, 用户验证状态
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
## /passport.Login/Code
|
## /passport.Login/Code
|
||||||
|
@ -53,6 +59,12 @@
|
||||||
extend: {
|
extend: {
|
||||||
"": ""
|
"": ""
|
||||||
}, // map<string,string>, 扩展字段
|
}, // map<string,string>, 扩展字段
|
||||||
|
verify_status: {
|
||||||
|
email_verify: false, // type<bool>, 邮箱是否已验证
|
||||||
|
phone_verify: false, // type<bool>, 手机是否已验证
|
||||||
|
photo_verify: false, // type<bool>, 头像是否已验证
|
||||||
|
kyc_verify: false, // type<bool>, 实名是否已验证
|
||||||
|
}, // type<VerifyStatus>, 用户验证状态
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
## /passport.Login/CodeAndRegister
|
## /passport.Login/CodeAndRegister
|
||||||
|
@ -78,6 +90,12 @@
|
||||||
extend: {
|
extend: {
|
||||||
"": ""
|
"": ""
|
||||||
}, // map<string,string>, 扩展字段
|
}, // map<string,string>, 扩展字段
|
||||||
|
verify_status: {
|
||||||
|
email_verify: false, // type<bool>, 邮箱是否已验证
|
||||||
|
phone_verify: false, // type<bool>, 手机是否已验证
|
||||||
|
photo_verify: false, // type<bool>, 头像是否已验证
|
||||||
|
kyc_verify: false, // type<bool>, 实名是否已验证
|
||||||
|
}, // type<VerifyStatus>, 用户验证状态
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -201,6 +201,10 @@
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"title": "扩展字段"
|
"title": "扩展字段"
|
||||||
|
},
|
||||||
|
"verifyStatus": {
|
||||||
|
"$ref": "#/definitions/passportVerifyStatus",
|
||||||
|
"title": "用户验证状态"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -242,6 +246,10 @@
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"title": "扩展字段"
|
"title": "扩展字段"
|
||||||
|
},
|
||||||
|
"verifyStatus": {
|
||||||
|
"$ref": "#/definitions/passportVerifyStatus",
|
||||||
|
"title": "用户验证状态"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -305,6 +313,27 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"passportVerifyStatus": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"emailVerify": {
|
||||||
|
"type": "boolean",
|
||||||
|
"title": "邮箱是否已验证"
|
||||||
|
},
|
||||||
|
"phoneVerify": {
|
||||||
|
"type": "boolean",
|
||||||
|
"title": "手机是否已验证"
|
||||||
|
},
|
||||||
|
"photoVerify": {
|
||||||
|
"type": "boolean",
|
||||||
|
"title": "头像是否已验证"
|
||||||
|
},
|
||||||
|
"kycVerify": {
|
||||||
|
"type": "boolean",
|
||||||
|
"title": "实名是否已验证"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"protobufAny": {
|
"protobufAny": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|
|
@ -34,6 +34,12 @@
|
||||||
extend: {
|
extend: {
|
||||||
"": ""
|
"": ""
|
||||||
}, // map<string,string>, 扩展字段
|
}, // map<string,string>, 扩展字段
|
||||||
|
verify_status: {
|
||||||
|
email_verify: false, // type<bool>, 邮箱是否已验证
|
||||||
|
phone_verify: false, // type<bool>, 手机是否已验证
|
||||||
|
photo_verify: false, // type<bool>, 头像是否已验证
|
||||||
|
kyc_verify: false, // type<bool>, 实名是否已验证
|
||||||
|
}, // type<VerifyStatus>, 用户验证状态
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
## /passport.Register/Code
|
## /passport.Register/Code
|
||||||
|
@ -65,6 +71,12 @@
|
||||||
extend: {
|
extend: {
|
||||||
"": ""
|
"": ""
|
||||||
}, // map<string,string>, 扩展字段
|
}, // map<string,string>, 扩展字段
|
||||||
|
verify_status: {
|
||||||
|
email_verify: false, // type<bool>, 邮箱是否已验证
|
||||||
|
phone_verify: false, // type<bool>, 手机是否已验证
|
||||||
|
photo_verify: false, // type<bool>, 头像是否已验证
|
||||||
|
kyc_verify: false, // type<bool>, 实名是否已验证
|
||||||
|
}, // type<VerifyStatus>, 用户验证状态
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -289,6 +289,74 @@ func (x *StatusReply) GetTimeseq() int64 {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type VerifyStatus struct {
|
||||||
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
|
EmailVerify bool `protobuf:"varint,1,opt,name=email_verify,json=emailVerify,proto3" json:"email_verify,omitempty"` // 邮箱是否已验证
|
||||||
|
PhoneVerify bool `protobuf:"varint,2,opt,name=phone_verify,json=phoneVerify,proto3" json:"phone_verify,omitempty"` // 手机是否已验证
|
||||||
|
PhotoVerify bool `protobuf:"varint,3,opt,name=photo_verify,json=photoVerify,proto3" json:"photo_verify,omitempty"` // 头像是否已验证
|
||||||
|
KycVerify bool `protobuf:"varint,4,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() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.EmailVerify
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *VerifyStatus) GetPhoneVerify() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.PhoneVerify
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *VerifyStatus) GetPhotoVerify() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.PhotoVerify
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *VerifyStatus) GetKycVerify() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.KycVerify
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
type Empty struct {
|
type Empty struct {
|
||||||
state protoimpl.MessageState `protogen:"open.v1"`
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
@ -297,7 +365,7 @@ type Empty struct {
|
||||||
|
|
||||||
func (x *Empty) Reset() {
|
func (x *Empty) Reset() {
|
||||||
*x = Empty{}
|
*x = Empty{}
|
||||||
mi := &file_blocks_proto_msgTypes[5]
|
mi := &file_blocks_proto_msgTypes[6]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
|
@ -309,7 +377,7 @@ func (x *Empty) String() string {
|
||||||
func (*Empty) ProtoMessage() {}
|
func (*Empty) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *Empty) ProtoReflect() protoreflect.Message {
|
func (x *Empty) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_blocks_proto_msgTypes[5]
|
mi := &file_blocks_proto_msgTypes[6]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
@ -322,7 +390,7 @@ func (x *Empty) ProtoReflect() protoreflect.Message {
|
||||||
|
|
||||||
// Deprecated: Use Empty.ProtoReflect.Descriptor instead.
|
// Deprecated: Use Empty.ProtoReflect.Descriptor instead.
|
||||||
func (*Empty) Descriptor() ([]byte, []int) {
|
func (*Empty) Descriptor() ([]byte, []int) {
|
||||||
return file_blocks_proto_rawDescGZIP(), []int{5}
|
return file_blocks_proto_rawDescGZIP(), []int{6}
|
||||||
}
|
}
|
||||||
|
|
||||||
var File_blocks_proto protoreflect.FileDescriptor
|
var File_blocks_proto protoreflect.FileDescriptor
|
||||||
|
@ -348,7 +416,13 @@ const file_blocks_proto_rawDesc = "" +
|
||||||
"\x04code\x18\x01 \x01(\x05R\x04code\x12\x18\n" +
|
"\x04code\x18\x01 \x01(\x05R\x04code\x12\x18\n" +
|
||||||
"\amessage\x18\x02 \x01(\tR\amessage\x12\x18\n" +
|
"\amessage\x18\x02 \x01(\tR\amessage\x12\x18\n" +
|
||||||
"\adetails\x18\x03 \x01(\tR\adetails\x12\x18\n" +
|
"\adetails\x18\x03 \x01(\tR\adetails\x12\x18\n" +
|
||||||
"\atimeseq\x18\x04 \x01(\x03R\atimeseq\"\a\n" +
|
"\atimeseq\x18\x04 \x01(\x03R\atimeseq\"\x96\x01\n" +
|
||||||
|
"\fVerifyStatus\x12!\n" +
|
||||||
|
"\femail_verify\x18\x01 \x01(\bR\vemailVerify\x12!\n" +
|
||||||
|
"\fphone_verify\x18\x02 \x01(\bR\vphoneVerify\x12!\n" +
|
||||||
|
"\fphoto_verify\x18\x03 \x01(\bR\vphotoVerify\x12\x1d\n" +
|
||||||
|
"\n" +
|
||||||
|
"kyc_verify\x18\x04 \x01(\bR\tkycVerify\"\a\n" +
|
||||||
"\x05EmptyB\fZ\n" +
|
"\x05EmptyB\fZ\n" +
|
||||||
".;passportb\x06proto3"
|
".;passportb\x06proto3"
|
||||||
|
|
||||||
|
@ -364,18 +438,19 @@ func file_blocks_proto_rawDescGZIP() []byte {
|
||||||
return file_blocks_proto_rawDescData
|
return file_blocks_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_blocks_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
var file_blocks_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
||||||
var file_blocks_proto_goTypes = []any{
|
var file_blocks_proto_goTypes = []any{
|
||||||
(*FetchRequest)(nil), // 0: passport.FetchRequest
|
(*FetchRequest)(nil), // 0: passport.FetchRequest
|
||||||
(*IdentRequest)(nil), // 1: passport.IdentRequest
|
(*IdentRequest)(nil), // 1: passport.IdentRequest
|
||||||
(*VersionRequest)(nil), // 2: passport.VersionRequest
|
(*VersionRequest)(nil), // 2: passport.VersionRequest
|
||||||
(*SearchRequest)(nil), // 3: passport.SearchRequest
|
(*SearchRequest)(nil), // 3: passport.SearchRequest
|
||||||
(*StatusReply)(nil), // 4: passport.StatusReply
|
(*StatusReply)(nil), // 4: passport.StatusReply
|
||||||
(*Empty)(nil), // 5: passport.Empty
|
(*VerifyStatus)(nil), // 5: passport.VerifyStatus
|
||||||
nil, // 6: passport.FetchRequest.ParamsEntry
|
(*Empty)(nil), // 6: passport.Empty
|
||||||
|
nil, // 7: passport.FetchRequest.ParamsEntry
|
||||||
}
|
}
|
||||||
var file_blocks_proto_depIdxs = []int32{
|
var file_blocks_proto_depIdxs = []int32{
|
||||||
6, // 0: passport.FetchRequest.params:type_name -> passport.FetchRequest.ParamsEntry
|
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 output_type
|
||||||
1, // [1:1] is the sub-list for method input_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 type_name
|
||||||
|
@ -394,7 +469,7 @@ func file_blocks_proto_init() {
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_blocks_proto_rawDesc), len(file_blocks_proto_rawDesc)),
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_blocks_proto_rawDesc), len(file_blocks_proto_rawDesc)),
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 7,
|
NumMessages: 8,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 0,
|
NumServices: 0,
|
||||||
},
|
},
|
||||||
|
|
|
@ -139,6 +139,7 @@ type LoginReply struct {
|
||||||
Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` //用户唯一码
|
Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` //用户唯一码
|
||||||
Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,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"` //扩展字段
|
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"` // 用户验证状态
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
@ -201,24 +202,32 @@ func (x *LoginReply) GetExtend() map[string]string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *LoginReply) GetVerifyStatus() *VerifyStatus {
|
||||||
|
if x != nil {
|
||||||
|
return x.VerifyStatus
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
var File_login_proto protoreflect.FileDescriptor
|
var File_login_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
const file_login_proto_rawDesc = "" +
|
const file_login_proto_rawDesc = "" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"\vlogin.proto\x12\bpassport\"I\n" +
|
"\vlogin.proto\x12\bpassport\x1a\fblocks.proto\"I\n" +
|
||||||
"\x11LoginByPwdRequest\x12\x18\n" +
|
"\x11LoginByPwdRequest\x12\x18\n" +
|
||||||
"\aaccount\x18\x01 \x01(\tR\aaccount\x12\x1a\n" +
|
"\aaccount\x18\x01 \x01(\tR\aaccount\x12\x1a\n" +
|
||||||
"\bpassword\x18\x02 \x01(\tR\bpassword\"X\n" +
|
"\bpassword\x18\x02 \x01(\tR\bpassword\"X\n" +
|
||||||
"\x12LoginByCodeRequest\x12\x18\n" +
|
"\x12LoginByCodeRequest\x12\x18\n" +
|
||||||
"\acountry\x18\x01 \x01(\tR\acountry\x12\x14\n" +
|
"\acountry\x18\x01 \x01(\tR\acountry\x12\x14\n" +
|
||||||
"\x05phone\x18\x02 \x01(\tR\x05phone\x12\x12\n" +
|
"\x05phone\x18\x02 \x01(\tR\x05phone\x12\x12\n" +
|
||||||
"\x04code\x18\x03 \x01(\tR\x04code\"\xc3\x01\n" +
|
"\x04code\x18\x03 \x01(\tR\x04code\"\x80\x02\n" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"LoginReply\x12\x0e\n" +
|
"LoginReply\x12\x0e\n" +
|
||||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||||
"\bidentity\x18\x02 \x01(\tR\bidentity\x12\x14\n" +
|
"\bidentity\x18\x02 \x01(\tR\bidentity\x12\x14\n" +
|
||||||
"\x05token\x18\x03 \x01(\tR\x05token\x128\n" +
|
"\x05token\x18\x03 \x01(\tR\x05token\x128\n" +
|
||||||
"\x06extend\x18\x04 \x03(\v2 .passport.LoginReply.ExtendEntryR\x06extend\x1a9\n" +
|
"\x06extend\x18\x04 \x03(\v2 .passport.LoginReply.ExtendEntryR\x06extend\x12;\n" +
|
||||||
|
"\rverify_status\x18\x05 \x01(\v2\x16.passport.VerifyStatusR\fverifyStatus\x1a9\n" +
|
||||||
"\vExtendEntry\x12\x10\n" +
|
"\vExtendEntry\x12\x10\n" +
|
||||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x012\xca\x01\n" +
|
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x012\xca\x01\n" +
|
||||||
|
@ -246,20 +255,22 @@ var file_login_proto_goTypes = []any{
|
||||||
(*LoginByCodeRequest)(nil), // 1: passport.LoginByCodeRequest
|
(*LoginByCodeRequest)(nil), // 1: passport.LoginByCodeRequest
|
||||||
(*LoginReply)(nil), // 2: passport.LoginReply
|
(*LoginReply)(nil), // 2: passport.LoginReply
|
||||||
nil, // 3: passport.LoginReply.ExtendEntry
|
nil, // 3: passport.LoginReply.ExtendEntry
|
||||||
|
(*VerifyStatus)(nil), // 4: passport.VerifyStatus
|
||||||
}
|
}
|
||||||
var file_login_proto_depIdxs = []int32{
|
var file_login_proto_depIdxs = []int32{
|
||||||
3, // 0: passport.LoginReply.extend:type_name -> passport.LoginReply.ExtendEntry
|
3, // 0: passport.LoginReply.extend:type_name -> passport.LoginReply.ExtendEntry
|
||||||
0, // 1: passport.Login.Pwd:input_type -> passport.LoginByPwdRequest
|
4, // 1: passport.LoginReply.verify_status:type_name -> passport.VerifyStatus
|
||||||
1, // 2: passport.Login.Code:input_type -> passport.LoginByCodeRequest
|
0, // 2: passport.Login.Pwd:input_type -> passport.LoginByPwdRequest
|
||||||
1, // 3: passport.Login.CodeAndRegister:input_type -> passport.LoginByCodeRequest
|
1, // 3: passport.Login.Code:input_type -> passport.LoginByCodeRequest
|
||||||
2, // 4: passport.Login.Pwd:output_type -> passport.LoginReply
|
1, // 4: passport.Login.CodeAndRegister:input_type -> passport.LoginByCodeRequest
|
||||||
2, // 5: passport.Login.Code:output_type -> passport.LoginReply
|
2, // 5: passport.Login.Pwd:output_type -> passport.LoginReply
|
||||||
2, // 6: passport.Login.CodeAndRegister:output_type -> passport.LoginReply
|
2, // 6: passport.Login.Code:output_type -> passport.LoginReply
|
||||||
4, // [4:7] is the sub-list for method output_type
|
2, // 7: passport.Login.CodeAndRegister:output_type -> passport.LoginReply
|
||||||
1, // [1:4] is the sub-list for method input_type
|
5, // [5:8] is the sub-list for method output_type
|
||||||
1, // [1:1] is the sub-list for extension type_name
|
2, // [2:5] is the sub-list for method input_type
|
||||||
1, // [1:1] is the sub-list for extension extendee
|
2, // [2:2] is the sub-list for extension type_name
|
||||||
0, // [0:1] is the sub-list for field type_name
|
2, // [2:2] is the sub-list for extension extendee
|
||||||
|
0, // [0:2] is the sub-list for field type_name
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_login_proto_init() }
|
func init() { file_login_proto_init() }
|
||||||
|
@ -267,6 +278,7 @@ func file_login_proto_init() {
|
||||||
if File_login_proto != nil {
|
if File_login_proto != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
file_blocks_proto_init()
|
||||||
type x struct{}
|
type x struct{}
|
||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
|
|
|
@ -135,6 +135,7 @@ type RegisterReply struct {
|
||||||
Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` //用户唯一码
|
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
|
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"` //扩展字段
|
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"` // 用户验证状态
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
@ -197,11 +198,18 @@ func (x *RegisterReply) GetExtend() map[string]string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *RegisterReply) GetVerifyStatus() *VerifyStatus {
|
||||||
|
if x != nil {
|
||||||
|
return x.VerifyStatus
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
var File_register_proto protoreflect.FileDescriptor
|
var File_register_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
const file_register_proto_rawDesc = "" +
|
const file_register_proto_rawDesc = "" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"\x0eregister.proto\x12\bpassport\"\x83\x02\n" +
|
"\x0eregister.proto\x12\bpassport\x1a\fblocks.proto\"\x83\x02\n" +
|
||||||
"\x0fRegisterRequest\x12\x14\n" +
|
"\x0fRegisterRequest\x12\x14\n" +
|
||||||
"\x05email\x18\x01 \x01(\tR\x05email\x12\x18\n" +
|
"\x05email\x18\x01 \x01(\tR\x05email\x12\x18\n" +
|
||||||
"\aaccount\x18\x02 \x01(\tR\aaccount\x12\x14\n" +
|
"\aaccount\x18\x02 \x01(\tR\aaccount\x12\x14\n" +
|
||||||
|
@ -211,12 +219,13 @@ const file_register_proto_rawDesc = "" +
|
||||||
"\tagency_id\x18\x06 \x01(\x03R\bagencyId\x12\x19\n" +
|
"\tagency_id\x18\x06 \x01(\x03R\bagencyId\x12\x19\n" +
|
||||||
"\bstaff_id\x18\a \x01(\x03R\astaffId\x12\x1a\n" +
|
"\bstaff_id\x18\a \x01(\x03R\astaffId\x12\x1a\n" +
|
||||||
"\bowner_id\x18\b \x01(\x03R\bowner_id\x12&\n" +
|
"\bowner_id\x18\b \x01(\x03R\bowner_id\x12&\n" +
|
||||||
"\x0eowner_identity\x18\t \x01(\tR\x0eowner_identity\"\xc9\x01\n" +
|
"\x0eowner_identity\x18\t \x01(\tR\x0eowner_identity\"\x86\x02\n" +
|
||||||
"\rRegisterReply\x12\x0e\n" +
|
"\rRegisterReply\x12\x0e\n" +
|
||||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||||
"\bidentity\x18\x02 \x01(\tR\bidentity\x12\x14\n" +
|
"\bidentity\x18\x02 \x01(\tR\bidentity\x12\x14\n" +
|
||||||
"\x05token\x18\x04 \x01(\tR\x05token\x12;\n" +
|
"\x05token\x18\x04 \x01(\tR\x05token\x12;\n" +
|
||||||
"\x06extend\x18\x05 \x03(\v2#.passport.RegisterReply.ExtendEntryR\x06extend\x1a9\n" +
|
"\x06extend\x18\x05 \x03(\v2#.passport.RegisterReply.ExtendEntryR\x06extend\x12;\n" +
|
||||||
|
"\rverify_status\x18\x06 \x01(\v2\x16.passport.VerifyStatusR\fverifyStatus\x1a9\n" +
|
||||||
"\vExtendEntry\x12\x10\n" +
|
"\vExtendEntry\x12\x10\n" +
|
||||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x012\x85\x01\n" +
|
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x012\x85\x01\n" +
|
||||||
|
@ -242,18 +251,20 @@ var file_register_proto_goTypes = []any{
|
||||||
(*RegisterRequest)(nil), // 0: passport.RegisterRequest
|
(*RegisterRequest)(nil), // 0: passport.RegisterRequest
|
||||||
(*RegisterReply)(nil), // 1: passport.RegisterReply
|
(*RegisterReply)(nil), // 1: passport.RegisterReply
|
||||||
nil, // 2: passport.RegisterReply.ExtendEntry
|
nil, // 2: passport.RegisterReply.ExtendEntry
|
||||||
|
(*VerifyStatus)(nil), // 3: passport.VerifyStatus
|
||||||
}
|
}
|
||||||
var file_register_proto_depIdxs = []int32{
|
var file_register_proto_depIdxs = []int32{
|
||||||
2, // 0: passport.RegisterReply.extend:type_name -> passport.RegisterReply.ExtendEntry
|
2, // 0: passport.RegisterReply.extend:type_name -> passport.RegisterReply.ExtendEntry
|
||||||
0, // 1: passport.Register.Pwd:input_type -> passport.RegisterRequest
|
3, // 1: passport.RegisterReply.verify_status:type_name -> passport.VerifyStatus
|
||||||
0, // 2: passport.Register.Code:input_type -> passport.RegisterRequest
|
0, // 2: passport.Register.Pwd:input_type -> passport.RegisterRequest
|
||||||
1, // 3: passport.Register.Pwd:output_type -> passport.RegisterReply
|
0, // 3: passport.Register.Code:input_type -> passport.RegisterRequest
|
||||||
1, // 4: passport.Register.Code:output_type -> passport.RegisterReply
|
1, // 4: passport.Register.Pwd:output_type -> passport.RegisterReply
|
||||||
3, // [3:5] is the sub-list for method output_type
|
1, // 5: passport.Register.Code:output_type -> passport.RegisterReply
|
||||||
1, // [1:3] is the sub-list for method input_type
|
4, // [4:6] is the sub-list for method output_type
|
||||||
1, // [1:1] is the sub-list for extension type_name
|
2, // [2:4] is the sub-list for method input_type
|
||||||
1, // [1:1] is the sub-list for extension extendee
|
2, // [2:2] is the sub-list for extension type_name
|
||||||
0, // [0:1] is the sub-list for field type_name
|
2, // [2:2] is the sub-list for extension extendee
|
||||||
|
0, // [0:2] is the sub-list for field type_name
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_register_proto_init() }
|
func init() { file_register_proto_init() }
|
||||||
|
@ -261,6 +272,7 @@ func file_register_proto_init() {
|
||||||
if File_register_proto != nil {
|
if File_register_proto != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
file_blocks_proto_init()
|
||||||
type x struct{}
|
type x struct{}
|
||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
|
|
|
@ -39,6 +39,17 @@ export type StatusReply = {
|
||||||
timeseq?: number;
|
timeseq?: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type VerifyStatus = {
|
||||||
|
/** 邮箱是否已验证 */
|
||||||
|
emailVerify?: boolean;
|
||||||
|
/** 手机是否已验证 */
|
||||||
|
phoneVerify?: boolean;
|
||||||
|
/** 头像是否已验证 */
|
||||||
|
photoVerify?: boolean;
|
||||||
|
/** 实名是否已验证 */
|
||||||
|
kycVerify?: boolean;
|
||||||
|
};
|
||||||
|
|
||||||
export type Empty = {
|
export type Empty = {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -267,6 +278,8 @@ export type LoginReply = {
|
||||||
token?: string;
|
token?: string;
|
||||||
/** 扩展字段 */
|
/** 扩展字段 */
|
||||||
extend?: { [key: string]: string };
|
extend?: { [key: string]: string };
|
||||||
|
/** 用户验证状态 */
|
||||||
|
verifyStatus?: VerifyStatus;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Passport-通行证模块-登录 */
|
/** Passport-通行证模块-登录 */
|
||||||
|
@ -308,6 +321,8 @@ export type RegisterReply = {
|
||||||
token?: string;
|
token?: string;
|
||||||
/** 扩展字段 */
|
/** 扩展字段 */
|
||||||
extend?: { [key: string]: string };
|
extend?: { [key: string]: string };
|
||||||
|
/** 用户验证状态 */
|
||||||
|
verifyStatus?: VerifyStatus;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Passport-通行证模块-注册 */
|
/** Passport-通行证模块-注册 */
|
||||||
|
|
Loading…
Reference in New Issue