auto updated.
This commit is contained in:
parent
10e5d9ea7b
commit
633c7f8aa5
|
@ -38,6 +38,7 @@ class GetFullReply extends $pb.GeneratedMessage {
|
|||
$core.int? score,
|
||||
$core.int? level,
|
||||
$core.Iterable<$core.MapEntry<$core.String, $core.bool>>? verify,
|
||||
$core.Iterable<TagItem>? tags,
|
||||
}) {
|
||||
final result = create();
|
||||
if (identity != null) result.identity = identity;
|
||||
|
@ -58,6 +59,7 @@ class GetFullReply extends $pb.GeneratedMessage {
|
|||
if (score != null) result.score = score;
|
||||
if (level != null) result.level = level;
|
||||
if (verify != null) result.verify.addEntries(verify);
|
||||
if (tags != null) result.tags.addAll(tags);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -96,6 +98,8 @@ class GetFullReply extends $pb.GeneratedMessage {
|
|||
keyFieldType: $pb.PbFieldType.OS,
|
||||
valueFieldType: $pb.PbFieldType.OB,
|
||||
packageName: const $pb.PackageName('passport'))
|
||||
..pc<TagItem>(19, _omitFieldNames ? '' : 'tags', $pb.PbFieldType.PM,
|
||||
subBuilder: TagItem.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
|
@ -274,6 +278,75 @@ class GetFullReply extends $pb.GeneratedMessage {
|
|||
|
||||
@$pb.TagNumber(18)
|
||||
$pb.PbMap<$core.String, $core.bool> get verify => $_getMap(17);
|
||||
|
||||
@$pb.TagNumber(19)
|
||||
$pb.PbList<TagItem> get tags => $_getList(18);
|
||||
}
|
||||
|
||||
class TagItem extends $pb.GeneratedMessage {
|
||||
factory TagItem({
|
||||
$core.String? key,
|
||||
$core.String? title,
|
||||
}) {
|
||||
final result = create();
|
||||
if (key != null) result.key = key;
|
||||
if (title != null) result.title = title;
|
||||
return result;
|
||||
}
|
||||
|
||||
TagItem._();
|
||||
|
||||
factory TagItem.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory TagItem.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'TagItem',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'passport'),
|
||||
createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'key')
|
||||
..aOS(2, _omitFieldNames ? '' : 'title')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
TagItem clone() => TagItem()..mergeFromMessage(this);
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
TagItem copyWith(void Function(TagItem) updates) =>
|
||||
super.copyWith((message) => updates(message as TagItem)) as TagItem;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static TagItem create() => TagItem._();
|
||||
@$core.override
|
||||
TagItem createEmptyInstance() => create();
|
||||
static $pb.PbList<TagItem> createRepeated() => $pb.PbList<TagItem>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static TagItem getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<TagItem>(create);
|
||||
static TagItem? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get key => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set key($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasKey() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearKey() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get title => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set title($core.String value) => $_setString(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasTitle() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearTitle() => $_clearField(2);
|
||||
}
|
||||
|
||||
class SetDataRequest extends $pb.GeneratedMessage {
|
||||
|
|
|
@ -43,6 +43,14 @@ const GetFullReply$json = {
|
|||
'6': '.passport.GetFullReply.VerifyEntry',
|
||||
'10': 'verify'
|
||||
},
|
||||
{
|
||||
'1': 'tags',
|
||||
'3': 19,
|
||||
'4': 3,
|
||||
'5': 11,
|
||||
'6': '.passport.TagItem',
|
||||
'10': 'tags'
|
||||
},
|
||||
],
|
||||
'3': [GetFullReply_VerifyEntry$json],
|
||||
};
|
||||
|
@ -67,8 +75,22 @@ final $typed_data.Uint8List getFullReplyDescriptor = $convert.base64Decode(
|
|||
'VSCHByb3ZpbmNlEhIKBGNpdHkYDCABKAVSBGNpdHkSEgoEYXJlYRgNIAEoBVIEYXJlYRISCgRz'
|
||||
'aWduGA4gASgJUgRzaWduEhQKBWNvdmVyGA8gASgJUgVjb3ZlchIUCgVzY29yZRgQIAEoBVIFc2'
|
||||
'NvcmUSFAoFbGV2ZWwYESABKAVSBWxldmVsEjoKBnZlcmlmeRgSIAMoCzIiLnBhc3Nwb3J0Lkdl'
|
||||
'dEZ1bGxSZXBseS5WZXJpZnlFbnRyeVIGdmVyaWZ5GjkKC1ZlcmlmeUVudHJ5EhAKA2tleRgBIA'
|
||||
'EoCVIDa2V5EhQKBXZhbHVlGAIgASgIUgV2YWx1ZToCOAE=');
|
||||
'dEZ1bGxSZXBseS5WZXJpZnlFbnRyeVIGdmVyaWZ5EiUKBHRhZ3MYEyADKAsyES5wYXNzcG9ydC'
|
||||
'5UYWdJdGVtUgR0YWdzGjkKC1ZlcmlmeUVudHJ5EhAKA2tleRgBIAEoCVIDa2V5EhQKBXZhbHVl'
|
||||
'GAIgASgIUgV2YWx1ZToCOAE=');
|
||||
|
||||
@$core.Deprecated('Use tagItemDescriptor instead')
|
||||
const TagItem$json = {
|
||||
'1': 'TagItem',
|
||||
'2': [
|
||||
{'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
|
||||
{'1': 'title', '3': 2, '4': 1, '5': 9, '10': 'title'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `TagItem`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List tagItemDescriptor = $convert.base64Decode(
|
||||
'CgdUYWdJdGVtEhAKA2tleRgBIAEoCVIDa2V5EhQKBXRpdGxlGAIgASgJUgV0aXRsZQ==');
|
||||
|
||||
@$core.Deprecated('Use setDataRequestDescriptor instead')
|
||||
const SetDataRequest$json = {
|
||||
|
|
|
@ -0,0 +1,259 @@
|
|||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from login.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:fixnum/fixnum.dart' as $fixnum;
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
class LoginByPwdRequest extends $pb.GeneratedMessage {
|
||||
factory LoginByPwdRequest({
|
||||
$core.String? account,
|
||||
$core.String? password,
|
||||
}) {
|
||||
final result = create();
|
||||
if (account != null) result.account = account;
|
||||
if (password != null) result.password = password;
|
||||
return result;
|
||||
}
|
||||
|
||||
LoginByPwdRequest._();
|
||||
|
||||
factory LoginByPwdRequest.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory LoginByPwdRequest.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'LoginByPwdRequest',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'passport'),
|
||||
createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'account')
|
||||
..aOS(2, _omitFieldNames ? '' : 'password')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
LoginByPwdRequest clone() => LoginByPwdRequest()..mergeFromMessage(this);
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
LoginByPwdRequest copyWith(void Function(LoginByPwdRequest) updates) =>
|
||||
super.copyWith((message) => updates(message as LoginByPwdRequest))
|
||||
as LoginByPwdRequest;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static LoginByPwdRequest create() => LoginByPwdRequest._();
|
||||
@$core.override
|
||||
LoginByPwdRequest createEmptyInstance() => create();
|
||||
static $pb.PbList<LoginByPwdRequest> createRepeated() =>
|
||||
$pb.PbList<LoginByPwdRequest>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static LoginByPwdRequest getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<LoginByPwdRequest>(create);
|
||||
static LoginByPwdRequest? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get account => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set account($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasAccount() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearAccount() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get password => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set password($core.String value) => $_setString(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasPassword() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearPassword() => $_clearField(2);
|
||||
}
|
||||
|
||||
class LoginByCodeRequest extends $pb.GeneratedMessage {
|
||||
factory LoginByCodeRequest({
|
||||
$core.String? country,
|
||||
$core.String? phone,
|
||||
$core.String? code,
|
||||
}) {
|
||||
final result = create();
|
||||
if (country != null) result.country = country;
|
||||
if (phone != null) result.phone = phone;
|
||||
if (code != null) result.code = code;
|
||||
return result;
|
||||
}
|
||||
|
||||
LoginByCodeRequest._();
|
||||
|
||||
factory LoginByCodeRequest.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory LoginByCodeRequest.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'LoginByCodeRequest',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'passport'),
|
||||
createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'country')
|
||||
..aOS(2, _omitFieldNames ? '' : 'phone')
|
||||
..aOS(3, _omitFieldNames ? '' : 'code')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
LoginByCodeRequest clone() => LoginByCodeRequest()..mergeFromMessage(this);
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
LoginByCodeRequest copyWith(void Function(LoginByCodeRequest) updates) =>
|
||||
super.copyWith((message) => updates(message as LoginByCodeRequest))
|
||||
as LoginByCodeRequest;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static LoginByCodeRequest create() => LoginByCodeRequest._();
|
||||
@$core.override
|
||||
LoginByCodeRequest createEmptyInstance() => create();
|
||||
static $pb.PbList<LoginByCodeRequest> createRepeated() =>
|
||||
$pb.PbList<LoginByCodeRequest>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static LoginByCodeRequest getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<LoginByCodeRequest>(create);
|
||||
static LoginByCodeRequest? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get country => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set country($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasCountry() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearCountry() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get phone => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set phone($core.String value) => $_setString(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasPhone() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearPhone() => $_clearField(2);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$core.String get code => $_getSZ(2);
|
||||
@$pb.TagNumber(3)
|
||||
set code($core.String value) => $_setString(2, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasCode() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearCode() => $_clearField(3);
|
||||
}
|
||||
|
||||
class LoginReply extends $pb.GeneratedMessage {
|
||||
factory LoginReply({
|
||||
$fixnum.Int64? id,
|
||||
$core.String? identity,
|
||||
$core.String? token,
|
||||
$core.Iterable<$core.MapEntry<$core.String, $core.String>>? extend,
|
||||
}) {
|
||||
final result = create();
|
||||
if (id != null) result.id = id;
|
||||
if (identity != null) result.identity = identity;
|
||||
if (token != null) result.token = token;
|
||||
if (extend != null) result.extend.addEntries(extend);
|
||||
return result;
|
||||
}
|
||||
|
||||
LoginReply._();
|
||||
|
||||
factory LoginReply.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory LoginReply.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'LoginReply',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'passport'),
|
||||
createEmptyInstance: create)
|
||||
..aInt64(1, _omitFieldNames ? '' : 'id')
|
||||
..aOS(2, _omitFieldNames ? '' : 'identity')
|
||||
..aOS(3, _omitFieldNames ? '' : 'token')
|
||||
..m<$core.String, $core.String>(4, _omitFieldNames ? '' : 'extend',
|
||||
entryClassName: 'LoginReply.ExtendEntry',
|
||||
keyFieldType: $pb.PbFieldType.OS,
|
||||
valueFieldType: $pb.PbFieldType.OS,
|
||||
packageName: const $pb.PackageName('passport'))
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
LoginReply clone() => LoginReply()..mergeFromMessage(this);
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
LoginReply copyWith(void Function(LoginReply) updates) =>
|
||||
super.copyWith((message) => updates(message as LoginReply)) as LoginReply;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static LoginReply create() => LoginReply._();
|
||||
@$core.override
|
||||
LoginReply createEmptyInstance() => create();
|
||||
static $pb.PbList<LoginReply> createRepeated() => $pb.PbList<LoginReply>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static LoginReply getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<LoginReply>(create);
|
||||
static LoginReply? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$fixnum.Int64 get id => $_getI64(0);
|
||||
@$pb.TagNumber(1)
|
||||
set id($fixnum.Int64 value) => $_setInt64(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasId() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearId() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get identity => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set identity($core.String value) => $_setString(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasIdentity() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearIdentity() => $_clearField(2);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$core.String get token => $_getSZ(2);
|
||||
@$pb.TagNumber(3)
|
||||
set token($core.String value) => $_setString(2, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasToken() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearToken() => $_clearField(3);
|
||||
|
||||
@$pb.TagNumber(4)
|
||||
$pb.PbMap<$core.String, $core.String> get extend => $_getMap(3);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
|
@ -40,6 +40,10 @@
|
|||
verify: {
|
||||
"": false
|
||||
}, // map<string,bool>, 数据
|
||||
tags: [{
|
||||
key: "", // type<string>
|
||||
title: "", // type<string>
|
||||
}], // list<TagItem>
|
||||
}
|
||||
```
|
||||
## /passport.Account/SetData
|
||||
|
|
|
@ -134,6 +134,13 @@
|
|||
"type": "boolean"
|
||||
},
|
||||
"title": "数据"
|
||||
},
|
||||
"tags": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/passportTagItem"
|
||||
}
|
||||
}
|
||||
},
|
||||
"title": "获取会员的完整信息"
|
||||
|
@ -222,6 +229,17 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"passportTagItem": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"key": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"protobufAny": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
|
@ -42,6 +42,7 @@ type GetFullReply struct {
|
|||
Score int32 `protobuf:"varint,16,opt,name=score,proto3" json:"score,omitempty"` // 积分
|
||||
Level int32 `protobuf:"varint,17,opt,name=level,proto3" json:"level,omitempty"` // 等级
|
||||
Verify map[string]bool `protobuf:"bytes,18,rep,name=verify,proto3" json:"verify,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` // 数据
|
||||
Tags []*TagItem `protobuf:"bytes,19,rep,name=tags,proto3" json:"tags,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
@ -202,6 +203,65 @@ func (x *GetFullReply) GetVerify() map[string]bool {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (x *GetFullReply) GetTags() []*TagItem {
|
||||
if x != nil {
|
||||
return x.Tags
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type TagItem struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
||||
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *TagItem) Reset() {
|
||||
*x = TagItem{}
|
||||
mi := &file_account_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *TagItem) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*TagItem) ProtoMessage() {}
|
||||
|
||||
func (x *TagItem) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_account_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 TagItem.ProtoReflect.Descriptor instead.
|
||||
func (*TagItem) Descriptor() ([]byte, []int) {
|
||||
return file_account_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *TagItem) GetKey() string {
|
||||
if x != nil {
|
||||
return x.Key
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *TagItem) GetTitle() string {
|
||||
if x != nil {
|
||||
return x.Title
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type SetDataRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Nickname string `protobuf:"bytes,1,opt,name=nickname,proto3" json:"nickname,omitempty"` //昵称
|
||||
|
@ -218,7 +278,7 @@ type SetDataRequest struct {
|
|||
|
||||
func (x *SetDataRequest) Reset() {
|
||||
*x = SetDataRequest{}
|
||||
mi := &file_account_proto_msgTypes[1]
|
||||
mi := &file_account_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
@ -230,7 +290,7 @@ func (x *SetDataRequest) String() string {
|
|||
func (*SetDataRequest) ProtoMessage() {}
|
||||
|
||||
func (x *SetDataRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_account_proto_msgTypes[1]
|
||||
mi := &file_account_proto_msgTypes[2]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
|
@ -243,7 +303,7 @@ func (x *SetDataRequest) ProtoReflect() protoreflect.Message {
|
|||
|
||||
// Deprecated: Use SetDataRequest.ProtoReflect.Descriptor instead.
|
||||
func (*SetDataRequest) Descriptor() ([]byte, []int) {
|
||||
return file_account_proto_rawDescGZIP(), []int{1}
|
||||
return file_account_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *SetDataRequest) GetNickname() string {
|
||||
|
@ -312,7 +372,7 @@ type SetPasswordRequest struct {
|
|||
|
||||
func (x *SetPasswordRequest) Reset() {
|
||||
*x = SetPasswordRequest{}
|
||||
mi := &file_account_proto_msgTypes[2]
|
||||
mi := &file_account_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
@ -324,7 +384,7 @@ func (x *SetPasswordRequest) String() string {
|
|||
func (*SetPasswordRequest) ProtoMessage() {}
|
||||
|
||||
func (x *SetPasswordRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_account_proto_msgTypes[2]
|
||||
mi := &file_account_proto_msgTypes[3]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
|
@ -337,7 +397,7 @@ func (x *SetPasswordRequest) ProtoReflect() protoreflect.Message {
|
|||
|
||||
// Deprecated: Use SetPasswordRequest.ProtoReflect.Descriptor instead.
|
||||
func (*SetPasswordRequest) Descriptor() ([]byte, []int) {
|
||||
return file_account_proto_rawDescGZIP(), []int{2}
|
||||
return file_account_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *SetPasswordRequest) GetOldPassword() string {
|
||||
|
@ -363,7 +423,7 @@ type StatisticsRequest struct {
|
|||
|
||||
func (x *StatisticsRequest) Reset() {
|
||||
*x = StatisticsRequest{}
|
||||
mi := &file_account_proto_msgTypes[3]
|
||||
mi := &file_account_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
@ -375,7 +435,7 @@ func (x *StatisticsRequest) String() string {
|
|||
func (*StatisticsRequest) ProtoMessage() {}
|
||||
|
||||
func (x *StatisticsRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_account_proto_msgTypes[3]
|
||||
mi := &file_account_proto_msgTypes[4]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
|
@ -388,7 +448,7 @@ func (x *StatisticsRequest) ProtoReflect() protoreflect.Message {
|
|||
|
||||
// Deprecated: Use StatisticsRequest.ProtoReflect.Descriptor instead.
|
||||
func (*StatisticsRequest) Descriptor() ([]byte, []int) {
|
||||
return file_account_proto_rawDescGZIP(), []int{3}
|
||||
return file_account_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *StatisticsRequest) GetField() []string {
|
||||
|
@ -407,7 +467,7 @@ type StatisticsReply struct {
|
|||
|
||||
func (x *StatisticsReply) Reset() {
|
||||
*x = StatisticsReply{}
|
||||
mi := &file_account_proto_msgTypes[4]
|
||||
mi := &file_account_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
@ -419,7 +479,7 @@ func (x *StatisticsReply) String() string {
|
|||
func (*StatisticsReply) ProtoMessage() {}
|
||||
|
||||
func (x *StatisticsReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_account_proto_msgTypes[4]
|
||||
mi := &file_account_proto_msgTypes[5]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
|
@ -432,7 +492,7 @@ func (x *StatisticsReply) ProtoReflect() protoreflect.Message {
|
|||
|
||||
// Deprecated: Use StatisticsReply.ProtoReflect.Descriptor instead.
|
||||
func (*StatisticsReply) Descriptor() ([]byte, []int) {
|
||||
return file_account_proto_rawDescGZIP(), []int{4}
|
||||
return file_account_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *StatisticsReply) GetData() map[string]int64 {
|
||||
|
@ -446,7 +506,7 @@ var File_account_proto protoreflect.FileDescriptor
|
|||
|
||||
const file_account_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\raccount.proto\x12\bpassport\x1a\fblocks.proto\"\x95\x04\n" +
|
||||
"\raccount.proto\x12\bpassport\x1a\fblocks.proto\"\xbc\x04\n" +
|
||||
"\fGetFullReply\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\aaccount\x18\x02 \x01(\tR\aaccount\x12\x14\n" +
|
||||
|
@ -466,10 +526,14 @@ const file_account_proto_rawDesc = "" +
|
|||
"\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" +
|
||||
"\x06verify\x18\x12 \x03(\v2\".passport.GetFullReply.VerifyEntryR\x06verify\x1a9\n" +
|
||||
"\x06verify\x18\x12 \x03(\v2\".passport.GetFullReply.VerifyEntryR\x06verify\x12%\n" +
|
||||
"\x04tags\x18\x13 \x03(\v2\x11.passport.TagItemR\x04tags\x1a9\n" +
|
||||
"\vVerifyEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\bR\x05value:\x028\x01\"\xca\x01\n" +
|
||||
"\x05value\x18\x02 \x01(\bR\x05value:\x028\x01\"1\n" +
|
||||
"\aTagItem\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05title\x18\x02 \x01(\tR\x05title\"\xca\x01\n" +
|
||||
"\x0eSetDataRequest\x12\x1a\n" +
|
||||
"\bnickname\x18\x01 \x01(\tR\bnickname\x12\x16\n" +
|
||||
"\x06avatar\x18\x02 \x01(\tR\x06avatar\x12\x1a\n" +
|
||||
|
@ -509,34 +573,36 @@ func file_account_proto_rawDescGZIP() []byte {
|
|||
return file_account_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_account_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||
var file_account_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
||||
var file_account_proto_goTypes = []any{
|
||||
(*GetFullReply)(nil), // 0: passport.GetFullReply
|
||||
(*SetDataRequest)(nil), // 1: passport.SetDataRequest
|
||||
(*SetPasswordRequest)(nil), // 2: passport.SetPasswordRequest
|
||||
(*StatisticsRequest)(nil), // 3: passport.StatisticsRequest
|
||||
(*StatisticsReply)(nil), // 4: passport.StatisticsReply
|
||||
nil, // 5: passport.GetFullReply.VerifyEntry
|
||||
nil, // 6: passport.StatisticsReply.DataEntry
|
||||
(*Empty)(nil), // 7: passport.Empty
|
||||
(*StatusReply)(nil), // 8: passport.StatusReply
|
||||
(*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.GetFullReply.VerifyEntry
|
||||
nil, // 7: passport.StatisticsReply.DataEntry
|
||||
(*Empty)(nil), // 8: passport.Empty
|
||||
(*StatusReply)(nil), // 9: passport.StatusReply
|
||||
}
|
||||
var file_account_proto_depIdxs = []int32{
|
||||
5, // 0: passport.GetFullReply.verify:type_name -> passport.GetFullReply.VerifyEntry
|
||||
6, // 1: passport.StatisticsReply.Data:type_name -> passport.StatisticsReply.DataEntry
|
||||
7, // 2: passport.Account.Get:input_type -> passport.Empty
|
||||
1, // 3: passport.Account.SetData:input_type -> passport.SetDataRequest
|
||||
2, // 4: passport.Account.SetPassword:input_type -> passport.SetPasswordRequest
|
||||
3, // 5: passport.Account.Statistics:input_type -> passport.StatisticsRequest
|
||||
0, // 6: passport.Account.Get:output_type -> passport.GetFullReply
|
||||
8, // 7: passport.Account.SetData:output_type -> passport.StatusReply
|
||||
8, // 8: passport.Account.SetPassword:output_type -> passport.StatusReply
|
||||
4, // 9: passport.Account.Statistics:output_type -> passport.StatisticsReply
|
||||
6, // [6:10] is the sub-list for method output_type
|
||||
2, // [2:6] is the sub-list for method input_type
|
||||
2, // [2:2] is the sub-list for extension type_name
|
||||
2, // [2:2] is the sub-list for extension extendee
|
||||
0, // [0:2] is the sub-list for field type_name
|
||||
6, // 0: passport.GetFullReply.verify:type_name -> passport.GetFullReply.VerifyEntry
|
||||
1, // 1: passport.GetFullReply.tags:type_name -> passport.TagItem
|
||||
7, // 2: passport.StatisticsReply.Data:type_name -> passport.StatisticsReply.DataEntry
|
||||
8, // 3: passport.Account.Get:input_type -> passport.Empty
|
||||
2, // 4: passport.Account.SetData:input_type -> passport.SetDataRequest
|
||||
3, // 5: passport.Account.SetPassword:input_type -> passport.SetPasswordRequest
|
||||
4, // 6: passport.Account.Statistics:input_type -> passport.StatisticsRequest
|
||||
0, // 7: passport.Account.Get:output_type -> passport.GetFullReply
|
||||
9, // 8: passport.Account.SetData:output_type -> passport.StatusReply
|
||||
9, // 9: passport.Account.SetPassword:output_type -> passport.StatusReply
|
||||
5, // 10: passport.Account.Statistics:output_type -> passport.StatisticsReply
|
||||
7, // [7:11] is the sub-list for method output_type
|
||||
3, // [3:7] is the sub-list for method input_type
|
||||
3, // [3:3] is the sub-list for extension type_name
|
||||
3, // [3:3] is the sub-list for extension extendee
|
||||
0, // [0:3] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_account_proto_init() }
|
||||
|
@ -551,7 +617,7 @@ func file_account_proto_init() {
|
|||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_account_proto_rawDesc), len(file_account_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 7,
|
||||
NumMessages: 8,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
|
|
|
@ -80,6 +80,12 @@ export type GetFullReply = {
|
|||
level?: number;
|
||||
/** 数据 */
|
||||
verify?: { [key: string]: boolean };
|
||||
tags?: TagItem[];
|
||||
};
|
||||
|
||||
export type TagItem = {
|
||||
key?: string;
|
||||
title?: string;
|
||||
};
|
||||
|
||||
export type SetDataRequest = {
|
||||
|
|
Loading…
Reference in New Issue