From 2b39ca24ac506790f4a30d08093a9421a1be9db0 Mon Sep 17 00:00:00 2001 From: yanweidong Date: Thu, 9 Oct 2025 10:44:41 +0800 Subject: [PATCH] updated --- dart/cloud/blocks.pb.dart | 48 ++++++++++++---- dart/cloud/blocks.pbjson.dart | 10 ++-- dart/cms/blocks.pb.dart | 37 ++++-------- dart/cms/blocks.pbjson.dart | 10 ++-- dart/feedback/feedback.pb.dart | 48 ++++++++++++---- dart/feedback/feedback.pbjson.dart | 10 ++-- dart/initial/check.pb.dart | 38 ++++++------ dart/initial/check.pbjson.dart | 11 ++-- dart/passport/blocks.pb.dart | 48 ++++++++++++---- dart/passport/blocks.pbjson.dart | 10 ++-- dart/wallet/blocks.pb.dart | 48 ++++++++++++---- dart/wallet/blocks.pbjson.dart | 10 ++-- dart/wallet/wallet.pb.dart | 54 ----------------- dart/wallet/wallet.pbgrpc.dart | 71 +++++++++++------------ dart/wallet/wallet.pbjson.dart | 12 ---- docs/cloud/album.md | 32 ++++++++--- docs/cloud/bookmark.md | 16 ++++-- docs/cloud/cloud.swagger.json | 11 +++- docs/cloud/disk.md | 36 +++++++++--- docs/cloud/note.md | 28 ++++++--- docs/cloud/private.md | 20 +++++-- docs/cloud/share.md | 12 +++- docs/cms/category.md | 9 +-- docs/cms/cms.swagger.json | 16 ++---- docs/cms/pages.md | 9 +-- docs/cms/post.md | 42 +++++--------- docs/cms/tags.md | 9 +-- docs/feedback/feedback.md | 12 +++- docs/feedback/feedback.swagger.json | 11 +++- docs/initial/check.md | 4 +- docs/initial/initial.swagger.json | 14 ++--- docs/passport/account.md | 16 ++++-- docs/passport/forget.md | 4 +- docs/passport/kyc.md | 8 ++- docs/passport/passport.swagger.json | 11 +++- docs/wallet/index.html | 54 +++++++---------- docs/wallet/wallet.swagger.json | 21 ++++--- golang/cloud/blocks.pb.go | 32 ++++++++--- golang/cms/blocks.pb.go | 42 ++++++-------- golang/feedback/feedback.pb.go | 32 ++++++++--- golang/initial/check.pb.go | 36 ++++++------ golang/passport/blocks.pb.go | 32 ++++++++--- golnag/wallet/alipay.pb.go | 2 +- golnag/wallet/blocks.pb.go | 34 ++++++++--- golnag/wallet/payment.pb.go | 2 +- golnag/wallet/wallet.pb.go | 89 +++++++---------------------- golnag/wallet/wallet_grpc.pb.go | 50 ++++++++-------- golnag/wallet/wechat.pb.go | 2 +- typescript/cloud/index.ts | 6 +- typescript/cms/index.ts | 7 +-- typescript/feedback/index.ts | 6 +- typescript/initial/index.ts | 6 +- typescript/passport/index.ts | 6 +- typescript/wallet/index.ts | 11 ++-- 54 files changed, 689 insertions(+), 566 deletions(-) diff --git a/dart/cloud/blocks.pb.dart b/dart/cloud/blocks.pb.dart index 1c36b5a..6080dbe 100644 --- a/dart/cloud/blocks.pb.dart +++ b/dart/cloud/blocks.pb.dart @@ -543,11 +543,15 @@ class CloudBase extends $pb.GeneratedMessage { /// 状态回复 class StatusReply extends $pb.GeneratedMessage { factory StatusReply({ - $core.String? data, + $core.int? code, + $core.String? message, + $core.String? details, $fixnum.Int64? timeseq, }) { final result = create(); - if (data != null) result.data = data; + if (code != null) result.code = code; + if (message != null) result.message = message; + if (details != null) result.details = details; if (timeseq != null) result.timeseq = timeseq; return result; } @@ -565,8 +569,10 @@ class StatusReply extends $pb.GeneratedMessage { _omitMessageNames ? '' : 'StatusReply', package: const $pb.PackageName(_omitMessageNames ? '' : 'cloud'), createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'data') - ..aInt64(2, _omitFieldNames ? '' : 'timeseq') + ..a<$core.int>(1, _omitFieldNames ? '' : 'code', $pb.PbFieldType.O3) + ..aOS(2, _omitFieldNames ? '' : 'message') + ..aOS(3, _omitFieldNames ? '' : 'details') + ..aInt64(4, _omitFieldNames ? '' : 'timeseq') ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @@ -590,22 +596,40 @@ class StatusReply extends $pb.GeneratedMessage { static StatusReply? _defaultInstance; @$pb.TagNumber(1) - $core.String get data => $_getSZ(0); + $core.int get code => $_getIZ(0); @$pb.TagNumber(1) - set data($core.String value) => $_setString(0, value); + set code($core.int value) => $_setSignedInt32(0, value); @$pb.TagNumber(1) - $core.bool hasData() => $_has(0); + $core.bool hasCode() => $_has(0); @$pb.TagNumber(1) - void clearData() => $_clearField(1); + void clearCode() => $_clearField(1); @$pb.TagNumber(2) - $fixnum.Int64 get timeseq => $_getI64(1); + $core.String get message => $_getSZ(1); @$pb.TagNumber(2) - set timeseq($fixnum.Int64 value) => $_setInt64(1, value); + set message($core.String value) => $_setString(1, value); @$pb.TagNumber(2) - $core.bool hasTimeseq() => $_has(1); + $core.bool hasMessage() => $_has(1); @$pb.TagNumber(2) - void clearTimeseq() => $_clearField(2); + void clearMessage() => $_clearField(2); + + @$pb.TagNumber(3) + $core.String get details => $_getSZ(2); + @$pb.TagNumber(3) + set details($core.String value) => $_setString(2, value); + @$pb.TagNumber(3) + $core.bool hasDetails() => $_has(2); + @$pb.TagNumber(3) + void clearDetails() => $_clearField(3); + + @$pb.TagNumber(4) + $fixnum.Int64 get timeseq => $_getI64(3); + @$pb.TagNumber(4) + set timeseq($fixnum.Int64 value) => $_setInt64(3, value); + @$pb.TagNumber(4) + $core.bool hasTimeseq() => $_has(3); + @$pb.TagNumber(4) + void clearTimeseq() => $_clearField(4); } const $core.bool _omitFieldNames = diff --git a/dart/cloud/blocks.pbjson.dart b/dart/cloud/blocks.pbjson.dart index 5236dec..6f145b0 100644 --- a/dart/cloud/blocks.pbjson.dart +++ b/dart/cloud/blocks.pbjson.dart @@ -151,12 +151,14 @@ final $typed_data.Uint8List cloudBaseDescriptor = $convert.base64Decode( const StatusReply$json = { '1': 'StatusReply', '2': [ - {'1': 'data', '3': 1, '4': 1, '5': 9, '10': 'data'}, - {'1': 'timeseq', '3': 2, '4': 1, '5': 3, '10': 'timeseq'}, + {'1': 'code', '3': 1, '4': 1, '5': 5, '10': 'code'}, + {'1': 'message', '3': 2, '4': 1, '5': 9, '10': 'message'}, + {'1': 'details', '3': 3, '4': 1, '5': 9, '10': 'details'}, + {'1': 'timeseq', '3': 4, '4': 1, '5': 3, '10': 'timeseq'}, ], }; /// Descriptor for `StatusReply`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List statusReplyDescriptor = $convert.base64Decode( - 'CgtTdGF0dXNSZXBseRISCgRkYXRhGAEgASgJUgRkYXRhEhgKB3RpbWVzZXEYAiABKANSB3RpbW' - 'VzZXE='); + 'CgtTdGF0dXNSZXBseRISCgRjb2RlGAEgASgFUgRjb2RlEhgKB21lc3NhZ2UYAiABKAlSB21lc3' + 'NhZ2USGAoHZGV0YWlscxgDIAEoCVIHZGV0YWlscxIYCgd0aW1lc2VxGAQgASgDUgd0aW1lc2Vx'); diff --git a/dart/cms/blocks.pb.dart b/dart/cms/blocks.pb.dart index e76c934..64e48f8 100644 --- a/dart/cms/blocks.pb.dart +++ b/dart/cms/blocks.pb.dart @@ -303,21 +303,18 @@ class SearchRequest extends $pb.GeneratedMessage { void clearPageSize() => $_clearField(3); } -/// 标准回执 class StatusReply extends $pb.GeneratedMessage { factory StatusReply({ $core.int? code, - $core.String? identity, $core.String? message, + $core.String? details, $fixnum.Int64? timeseq, - $fixnum.Int64? count, }) { final result = create(); if (code != null) result.code = code; - if (identity != null) result.identity = identity; if (message != null) result.message = message; + if (details != null) result.details = details; if (timeseq != null) result.timeseq = timeseq; - if (count != null) result.count = count; return result; } @@ -335,10 +332,9 @@ class StatusReply extends $pb.GeneratedMessage { package: const $pb.PackageName(_omitMessageNames ? '' : 'cms'), createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'code', $pb.PbFieldType.O3) - ..aOS(2, _omitFieldNames ? '' : 'identity') - ..aOS(3, _omitFieldNames ? '' : 'message') + ..aOS(2, _omitFieldNames ? '' : 'message') + ..aOS(3, _omitFieldNames ? '' : 'details') ..aInt64(4, _omitFieldNames ? '' : 'timeseq') - ..aInt64(5, _omitFieldNames ? '' : 'count') ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @@ -371,22 +367,22 @@ class StatusReply extends $pb.GeneratedMessage { void clearCode() => $_clearField(1); @$pb.TagNumber(2) - $core.String get identity => $_getSZ(1); + $core.String get message => $_getSZ(1); @$pb.TagNumber(2) - set identity($core.String value) => $_setString(1, value); + set message($core.String value) => $_setString(1, value); @$pb.TagNumber(2) - $core.bool hasIdentity() => $_has(1); + $core.bool hasMessage() => $_has(1); @$pb.TagNumber(2) - void clearIdentity() => $_clearField(2); + void clearMessage() => $_clearField(2); @$pb.TagNumber(3) - $core.String get message => $_getSZ(2); + $core.String get details => $_getSZ(2); @$pb.TagNumber(3) - set message($core.String value) => $_setString(2, value); + set details($core.String value) => $_setString(2, value); @$pb.TagNumber(3) - $core.bool hasMessage() => $_has(2); + $core.bool hasDetails() => $_has(2); @$pb.TagNumber(3) - void clearMessage() => $_clearField(3); + void clearDetails() => $_clearField(3); @$pb.TagNumber(4) $fixnum.Int64 get timeseq => $_getI64(3); @@ -396,15 +392,6 @@ class StatusReply extends $pb.GeneratedMessage { $core.bool hasTimeseq() => $_has(3); @$pb.TagNumber(4) void clearTimeseq() => $_clearField(4); - - @$pb.TagNumber(5) - $fixnum.Int64 get count => $_getI64(4); - @$pb.TagNumber(5) - set count($fixnum.Int64 value) => $_setInt64(4, value); - @$pb.TagNumber(5) - $core.bool hasCount() => $_has(4); - @$pb.TagNumber(5) - void clearCount() => $_clearField(5); } /// 空结构请求 diff --git a/dart/cms/blocks.pbjson.dart b/dart/cms/blocks.pbjson.dart index 29aa90f..ec5e41b 100644 --- a/dart/cms/blocks.pbjson.dart +++ b/dart/cms/blocks.pbjson.dart @@ -95,18 +95,16 @@ const StatusReply$json = { '1': 'StatusReply', '2': [ {'1': 'code', '3': 1, '4': 1, '5': 5, '10': 'code'}, - {'1': 'identity', '3': 2, '4': 1, '5': 9, '10': 'identity'}, - {'1': 'message', '3': 3, '4': 1, '5': 9, '10': 'message'}, + {'1': 'message', '3': 2, '4': 1, '5': 9, '10': 'message'}, + {'1': 'details', '3': 3, '4': 1, '5': 9, '10': 'details'}, {'1': 'timeseq', '3': 4, '4': 1, '5': 3, '10': 'timeseq'}, - {'1': 'count', '3': 5, '4': 1, '5': 3, '10': 'count'}, ], }; /// Descriptor for `StatusReply`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List statusReplyDescriptor = $convert.base64Decode( - 'CgtTdGF0dXNSZXBseRISCgRjb2RlGAEgASgFUgRjb2RlEhoKCGlkZW50aXR5GAIgASgJUghpZG' - 'VudGl0eRIYCgdtZXNzYWdlGAMgASgJUgdtZXNzYWdlEhgKB3RpbWVzZXEYBCABKANSB3RpbWVz' - 'ZXESFAoFY291bnQYBSABKANSBWNvdW50'); + 'CgtTdGF0dXNSZXBseRISCgRjb2RlGAEgASgFUgRjb2RlEhgKB21lc3NhZ2UYAiABKAlSB21lc3' + 'NhZ2USGAoHZGV0YWlscxgDIAEoCVIHZGV0YWlscxIYCgd0aW1lc2VxGAQgASgDUgd0aW1lc2Vx'); @$core.Deprecated('Use emptyDescriptor instead') const Empty$json = { diff --git a/dart/feedback/feedback.pb.dart b/dart/feedback/feedback.pb.dart index cfe4201..784b695 100644 --- a/dart/feedback/feedback.pb.dart +++ b/dart/feedback/feedback.pb.dart @@ -1391,11 +1391,15 @@ class IdentRequest extends $pb.GeneratedMessage { class StatusReply extends $pb.GeneratedMessage { factory StatusReply({ - $core.String? data, + $core.int? code, + $core.String? message, + $core.String? details, $fixnum.Int64? timeseq, }) { final result = create(); - if (data != null) result.data = data; + if (code != null) result.code = code; + if (message != null) result.message = message; + if (details != null) result.details = details; if (timeseq != null) result.timeseq = timeseq; return result; } @@ -1413,8 +1417,10 @@ class StatusReply extends $pb.GeneratedMessage { _omitMessageNames ? '' : 'StatusReply', package: const $pb.PackageName(_omitMessageNames ? '' : 'feedback'), createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'data') - ..aInt64(2, _omitFieldNames ? '' : 'timeseq') + ..a<$core.int>(1, _omitFieldNames ? '' : 'code', $pb.PbFieldType.O3) + ..aOS(2, _omitFieldNames ? '' : 'message') + ..aOS(3, _omitFieldNames ? '' : 'details') + ..aInt64(4, _omitFieldNames ? '' : 'timeseq') ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @@ -1438,22 +1444,40 @@ class StatusReply extends $pb.GeneratedMessage { static StatusReply? _defaultInstance; @$pb.TagNumber(1) - $core.String get data => $_getSZ(0); + $core.int get code => $_getIZ(0); @$pb.TagNumber(1) - set data($core.String value) => $_setString(0, value); + set code($core.int value) => $_setSignedInt32(0, value); @$pb.TagNumber(1) - $core.bool hasData() => $_has(0); + $core.bool hasCode() => $_has(0); @$pb.TagNumber(1) - void clearData() => $_clearField(1); + void clearCode() => $_clearField(1); @$pb.TagNumber(2) - $fixnum.Int64 get timeseq => $_getI64(1); + $core.String get message => $_getSZ(1); @$pb.TagNumber(2) - set timeseq($fixnum.Int64 value) => $_setInt64(1, value); + set message($core.String value) => $_setString(1, value); @$pb.TagNumber(2) - $core.bool hasTimeseq() => $_has(1); + $core.bool hasMessage() => $_has(1); @$pb.TagNumber(2) - void clearTimeseq() => $_clearField(2); + void clearMessage() => $_clearField(2); + + @$pb.TagNumber(3) + $core.String get details => $_getSZ(2); + @$pb.TagNumber(3) + set details($core.String value) => $_setString(2, value); + @$pb.TagNumber(3) + $core.bool hasDetails() => $_has(2); + @$pb.TagNumber(3) + void clearDetails() => $_clearField(3); + + @$pb.TagNumber(4) + $fixnum.Int64 get timeseq => $_getI64(3); + @$pb.TagNumber(4) + set timeseq($fixnum.Int64 value) => $_setInt64(3, value); + @$pb.TagNumber(4) + $core.bool hasTimeseq() => $_has(3); + @$pb.TagNumber(4) + void clearTimeseq() => $_clearField(4); } const $core.bool _omitFieldNames = diff --git a/dart/feedback/feedback.pbjson.dart b/dart/feedback/feedback.pbjson.dart index 9678ad5..8ba1122 100644 --- a/dart/feedback/feedback.pbjson.dart +++ b/dart/feedback/feedback.pbjson.dart @@ -322,12 +322,14 @@ final $typed_data.Uint8List identRequestDescriptor = $convert.base64Decode( const StatusReply$json = { '1': 'StatusReply', '2': [ - {'1': 'data', '3': 1, '4': 1, '5': 9, '10': 'data'}, - {'1': 'timeseq', '3': 2, '4': 1, '5': 3, '10': 'timeseq'}, + {'1': 'code', '3': 1, '4': 1, '5': 5, '10': 'code'}, + {'1': 'message', '3': 2, '4': 1, '5': 9, '10': 'message'}, + {'1': 'details', '3': 3, '4': 1, '5': 9, '10': 'details'}, + {'1': 'timeseq', '3': 4, '4': 1, '5': 3, '10': 'timeseq'}, ], }; /// Descriptor for `StatusReply`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List statusReplyDescriptor = $convert.base64Decode( - 'CgtTdGF0dXNSZXBseRISCgRkYXRhGAEgASgJUgRkYXRhEhgKB3RpbWVzZXEYAiABKANSB3RpbW' - 'VzZXE='); + 'CgtTdGF0dXNSZXBseRISCgRjb2RlGAEgASgFUgRjb2RlEhgKB21lc3NhZ2UYAiABKAlSB21lc3' + 'NhZ2USGAoHZGV0YWlscxgDIAEoCVIHZGV0YWlscxIYCgd0aW1lc2VxGAQgASgDUgd0aW1lc2Vx'); diff --git a/dart/initial/check.pb.dart b/dart/initial/check.pb.dart index 94d183d..5c518c3 100644 --- a/dart/initial/check.pb.dart +++ b/dart/initial/check.pb.dart @@ -73,15 +73,15 @@ class Crc extends $pb.GeneratedMessage { class StatusReply extends $pb.GeneratedMessage { factory StatusReply({ - $fixnum.Int64? status, - $core.String? identity, + $core.int? code, $core.String? message, + $core.String? details, $fixnum.Int64? timeseq, }) { final result = create(); - if (status != null) result.status = status; - if (identity != null) result.identity = identity; + if (code != null) result.code = code; if (message != null) result.message = message; + if (details != null) result.details = details; if (timeseq != null) result.timeseq = timeseq; return result; } @@ -99,9 +99,9 @@ class StatusReply extends $pb.GeneratedMessage { _omitMessageNames ? '' : 'StatusReply', package: const $pb.PackageName(_omitMessageNames ? '' : 'initial'), createEmptyInstance: create) - ..aInt64(1, _omitFieldNames ? '' : 'status') - ..aOS(2, _omitFieldNames ? '' : 'identity') - ..aOS(3, _omitFieldNames ? '' : 'message') + ..a<$core.int>(1, _omitFieldNames ? '' : 'code', $pb.PbFieldType.O3) + ..aOS(2, _omitFieldNames ? '' : 'message') + ..aOS(3, _omitFieldNames ? '' : 'details') ..aInt64(4, _omitFieldNames ? '' : 'timeseq') ..hasRequiredFields = false; @@ -126,31 +126,31 @@ class StatusReply extends $pb.GeneratedMessage { static StatusReply? _defaultInstance; @$pb.TagNumber(1) - $fixnum.Int64 get status => $_getI64(0); + $core.int get code => $_getIZ(0); @$pb.TagNumber(1) - set status($fixnum.Int64 value) => $_setInt64(0, value); + set code($core.int value) => $_setSignedInt32(0, value); @$pb.TagNumber(1) - $core.bool hasStatus() => $_has(0); + $core.bool hasCode() => $_has(0); @$pb.TagNumber(1) - void clearStatus() => $_clearField(1); + void clearCode() => $_clearField(1); @$pb.TagNumber(2) - $core.String get identity => $_getSZ(1); + $core.String get message => $_getSZ(1); @$pb.TagNumber(2) - set identity($core.String value) => $_setString(1, value); + set message($core.String value) => $_setString(1, value); @$pb.TagNumber(2) - $core.bool hasIdentity() => $_has(1); + $core.bool hasMessage() => $_has(1); @$pb.TagNumber(2) - void clearIdentity() => $_clearField(2); + void clearMessage() => $_clearField(2); @$pb.TagNumber(3) - $core.String get message => $_getSZ(2); + $core.String get details => $_getSZ(2); @$pb.TagNumber(3) - set message($core.String value) => $_setString(2, value); + set details($core.String value) => $_setString(2, value); @$pb.TagNumber(3) - $core.bool hasMessage() => $_has(2); + $core.bool hasDetails() => $_has(2); @$pb.TagNumber(3) - void clearMessage() => $_clearField(3); + void clearDetails() => $_clearField(3); @$pb.TagNumber(4) $fixnum.Int64 get timeseq => $_getI64(3); diff --git a/dart/initial/check.pbjson.dart b/dart/initial/check.pbjson.dart index 491672f..abf0212 100644 --- a/dart/initial/check.pbjson.dart +++ b/dart/initial/check.pbjson.dart @@ -30,18 +30,17 @@ final $typed_data.Uint8List crcDescriptor = const StatusReply$json = { '1': 'StatusReply', '2': [ - {'1': 'status', '3': 1, '4': 1, '5': 3, '10': 'status'}, - {'1': 'identity', '3': 2, '4': 1, '5': 9, '10': 'identity'}, - {'1': 'message', '3': 3, '4': 1, '5': 9, '10': 'message'}, + {'1': 'code', '3': 1, '4': 1, '5': 5, '10': 'code'}, + {'1': 'message', '3': 2, '4': 1, '5': 9, '10': 'message'}, + {'1': 'details', '3': 3, '4': 1, '5': 9, '10': 'details'}, {'1': 'timeseq', '3': 4, '4': 1, '5': 3, '10': 'timeseq'}, ], }; /// Descriptor for `StatusReply`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List statusReplyDescriptor = $convert.base64Decode( - 'CgtTdGF0dXNSZXBseRIWCgZzdGF0dXMYASABKANSBnN0YXR1cxIaCghpZGVudGl0eRgCIAEoCV' - 'IIaWRlbnRpdHkSGAoHbWVzc2FnZRgDIAEoCVIHbWVzc2FnZRIYCgd0aW1lc2VxGAQgASgDUgd0' - 'aW1lc2Vx'); + 'CgtTdGF0dXNSZXBseRISCgRjb2RlGAEgASgFUgRjb2RlEhgKB21lc3NhZ2UYAiABKAlSB21lc3' + 'NhZ2USGAoHZGV0YWlscxgDIAEoCVIHZGV0YWlscxIYCgd0aW1lc2VxGAQgASgDUgd0aW1lc2Vx'); @$core.Deprecated('Use configRequestDescriptor instead') const ConfigRequest$json = { diff --git a/dart/passport/blocks.pb.dart b/dart/passport/blocks.pb.dart index 1e5017c..ab6b146 100644 --- a/dart/passport/blocks.pb.dart +++ b/dart/passport/blocks.pb.dart @@ -277,11 +277,15 @@ class SearchRequest extends $pb.GeneratedMessage { class StatusReply extends $pb.GeneratedMessage { factory StatusReply({ - $core.String? data, + $core.int? code, + $core.String? message, + $core.String? details, $fixnum.Int64? timeseq, }) { final result = create(); - if (data != null) result.data = data; + if (code != null) result.code = code; + if (message != null) result.message = message; + if (details != null) result.details = details; if (timeseq != null) result.timeseq = timeseq; return result; } @@ -299,8 +303,10 @@ class StatusReply extends $pb.GeneratedMessage { _omitMessageNames ? '' : 'StatusReply', package: const $pb.PackageName(_omitMessageNames ? '' : 'passport'), createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'data') - ..aInt64(2, _omitFieldNames ? '' : 'timeseq') + ..a<$core.int>(1, _omitFieldNames ? '' : 'code', $pb.PbFieldType.O3) + ..aOS(2, _omitFieldNames ? '' : 'message') + ..aOS(3, _omitFieldNames ? '' : 'details') + ..aInt64(4, _omitFieldNames ? '' : 'timeseq') ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @@ -324,22 +330,40 @@ class StatusReply extends $pb.GeneratedMessage { static StatusReply? _defaultInstance; @$pb.TagNumber(1) - $core.String get data => $_getSZ(0); + $core.int get code => $_getIZ(0); @$pb.TagNumber(1) - set data($core.String value) => $_setString(0, value); + set code($core.int value) => $_setSignedInt32(0, value); @$pb.TagNumber(1) - $core.bool hasData() => $_has(0); + $core.bool hasCode() => $_has(0); @$pb.TagNumber(1) - void clearData() => $_clearField(1); + void clearCode() => $_clearField(1); @$pb.TagNumber(2) - $fixnum.Int64 get timeseq => $_getI64(1); + $core.String get message => $_getSZ(1); @$pb.TagNumber(2) - set timeseq($fixnum.Int64 value) => $_setInt64(1, value); + set message($core.String value) => $_setString(1, value); @$pb.TagNumber(2) - $core.bool hasTimeseq() => $_has(1); + $core.bool hasMessage() => $_has(1); @$pb.TagNumber(2) - void clearTimeseq() => $_clearField(2); + void clearMessage() => $_clearField(2); + + @$pb.TagNumber(3) + $core.String get details => $_getSZ(2); + @$pb.TagNumber(3) + set details($core.String value) => $_setString(2, value); + @$pb.TagNumber(3) + $core.bool hasDetails() => $_has(2); + @$pb.TagNumber(3) + void clearDetails() => $_clearField(3); + + @$pb.TagNumber(4) + $fixnum.Int64 get timeseq => $_getI64(3); + @$pb.TagNumber(4) + set timeseq($fixnum.Int64 value) => $_setInt64(3, value); + @$pb.TagNumber(4) + $core.bool hasTimeseq() => $_has(3); + @$pb.TagNumber(4) + void clearTimeseq() => $_clearField(4); } class Empty extends $pb.GeneratedMessage { diff --git a/dart/passport/blocks.pbjson.dart b/dart/passport/blocks.pbjson.dart index 706d1a6..ff90efd 100644 --- a/dart/passport/blocks.pbjson.dart +++ b/dart/passport/blocks.pbjson.dart @@ -91,15 +91,17 @@ final $typed_data.Uint8List searchRequestDescriptor = $convert const StatusReply$json = { '1': 'StatusReply', '2': [ - {'1': 'data', '3': 1, '4': 1, '5': 9, '10': 'data'}, - {'1': 'timeseq', '3': 2, '4': 1, '5': 3, '10': 'timeseq'}, + {'1': 'code', '3': 1, '4': 1, '5': 5, '10': 'code'}, + {'1': 'message', '3': 2, '4': 1, '5': 9, '10': 'message'}, + {'1': 'details', '3': 3, '4': 1, '5': 9, '10': 'details'}, + {'1': 'timeseq', '3': 4, '4': 1, '5': 3, '10': 'timeseq'}, ], }; /// Descriptor for `StatusReply`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List statusReplyDescriptor = $convert.base64Decode( - 'CgtTdGF0dXNSZXBseRISCgRkYXRhGAEgASgJUgRkYXRhEhgKB3RpbWVzZXEYAiABKANSB3RpbW' - 'VzZXE='); + 'CgtTdGF0dXNSZXBseRISCgRjb2RlGAEgASgFUgRjb2RlEhgKB21lc3NhZ2UYAiABKAlSB21lc3' + 'NhZ2USGAoHZGV0YWlscxgDIAEoCVIHZGV0YWlscxIYCgd0aW1lc2VxGAQgASgDUgd0aW1lc2Vx'); @$core.Deprecated('Use emptyDescriptor instead') const Empty$json = { diff --git a/dart/wallet/blocks.pb.dart b/dart/wallet/blocks.pb.dart index 361241b..dab4a48 100644 --- a/dart/wallet/blocks.pb.dart +++ b/dart/wallet/blocks.pb.dart @@ -277,11 +277,15 @@ class SearchRequest extends $pb.GeneratedMessage { class StatusReply extends $pb.GeneratedMessage { factory StatusReply({ - $core.String? data, + $core.int? code, + $core.String? message, + $core.String? details, $fixnum.Int64? timeseq, }) { final result = create(); - if (data != null) result.data = data; + if (code != null) result.code = code; + if (message != null) result.message = message; + if (details != null) result.details = details; if (timeseq != null) result.timeseq = timeseq; return result; } @@ -299,8 +303,10 @@ class StatusReply extends $pb.GeneratedMessage { _omitMessageNames ? '' : 'StatusReply', package: const $pb.PackageName(_omitMessageNames ? '' : 'wallet'), createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'data') - ..aInt64(2, _omitFieldNames ? '' : 'timeseq') + ..a<$core.int>(1, _omitFieldNames ? '' : 'code', $pb.PbFieldType.O3) + ..aOS(2, _omitFieldNames ? '' : 'message') + ..aOS(3, _omitFieldNames ? '' : 'details') + ..aInt64(4, _omitFieldNames ? '' : 'timeseq') ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @@ -324,22 +330,40 @@ class StatusReply extends $pb.GeneratedMessage { static StatusReply? _defaultInstance; @$pb.TagNumber(1) - $core.String get data => $_getSZ(0); + $core.int get code => $_getIZ(0); @$pb.TagNumber(1) - set data($core.String value) => $_setString(0, value); + set code($core.int value) => $_setSignedInt32(0, value); @$pb.TagNumber(1) - $core.bool hasData() => $_has(0); + $core.bool hasCode() => $_has(0); @$pb.TagNumber(1) - void clearData() => $_clearField(1); + void clearCode() => $_clearField(1); @$pb.TagNumber(2) - $fixnum.Int64 get timeseq => $_getI64(1); + $core.String get message => $_getSZ(1); @$pb.TagNumber(2) - set timeseq($fixnum.Int64 value) => $_setInt64(1, value); + set message($core.String value) => $_setString(1, value); @$pb.TagNumber(2) - $core.bool hasTimeseq() => $_has(1); + $core.bool hasMessage() => $_has(1); @$pb.TagNumber(2) - void clearTimeseq() => $_clearField(2); + void clearMessage() => $_clearField(2); + + @$pb.TagNumber(3) + $core.String get details => $_getSZ(2); + @$pb.TagNumber(3) + set details($core.String value) => $_setString(2, value); + @$pb.TagNumber(3) + $core.bool hasDetails() => $_has(2); + @$pb.TagNumber(3) + void clearDetails() => $_clearField(3); + + @$pb.TagNumber(4) + $fixnum.Int64 get timeseq => $_getI64(3); + @$pb.TagNumber(4) + set timeseq($fixnum.Int64 value) => $_setInt64(3, value); + @$pb.TagNumber(4) + $core.bool hasTimeseq() => $_has(3); + @$pb.TagNumber(4) + void clearTimeseq() => $_clearField(4); } class Empty extends $pb.GeneratedMessage { diff --git a/dart/wallet/blocks.pbjson.dart b/dart/wallet/blocks.pbjson.dart index be95a95..42878b8 100644 --- a/dart/wallet/blocks.pbjson.dart +++ b/dart/wallet/blocks.pbjson.dart @@ -91,15 +91,17 @@ final $typed_data.Uint8List searchRequestDescriptor = $convert const StatusReply$json = { '1': 'StatusReply', '2': [ - {'1': 'data', '3': 1, '4': 1, '5': 9, '10': 'data'}, - {'1': 'timeseq', '3': 2, '4': 1, '5': 3, '10': 'timeseq'}, + {'1': 'code', '3': 1, '4': 1, '5': 5, '10': 'code'}, + {'1': 'message', '3': 2, '4': 1, '5': 9, '10': 'message'}, + {'1': 'details', '3': 3, '4': 1, '5': 9, '10': 'details'}, + {'1': 'timeseq', '3': 4, '4': 1, '5': 3, '10': 'timeseq'}, ], }; /// Descriptor for `StatusReply`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List statusReplyDescriptor = $convert.base64Decode( - 'CgtTdGF0dXNSZXBseRISCgRkYXRhGAEgASgJUgRkYXRhEhgKB3RpbWVzZXEYAiABKANSB3RpbW' - 'VzZXE='); + 'CgtTdGF0dXNSZXBseRISCgRjb2RlGAEgASgFUgRjb2RlEhgKB21lc3NhZ2UYAiABKAlSB21lc3' + 'NhZ2USGAoHZGV0YWlscxgDIAEoCVIHZGV0YWlscxIYCgd0aW1lc2VxGAQgASgDUgd0aW1lc2Vx'); @$core.Deprecated('Use emptyDescriptor instead') const Empty$json = { diff --git a/dart/wallet/wallet.pb.dart b/dart/wallet/wallet.pb.dart index 57a8f04..89cfdff 100644 --- a/dart/wallet/wallet.pb.dart +++ b/dart/wallet/wallet.pb.dart @@ -1446,60 +1446,6 @@ class ApplyCashRequest extends $pb.GeneratedMessage { void clearRemark() => $_clearField(3); } -class CodeReply extends $pb.GeneratedMessage { - factory CodeReply({ - $core.int? code, - }) { - final result = create(); - if (code != null) result.code = code; - return result; - } - - CodeReply._(); - - factory CodeReply.fromBuffer($core.List<$core.int> data, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(data, registry); - factory CodeReply.fromJson($core.String json, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'CodeReply', - package: const $pb.PackageName(_omitMessageNames ? '' : 'wallet'), - createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'code', $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - CodeReply clone() => CodeReply()..mergeFromMessage(this); - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - CodeReply copyWith(void Function(CodeReply) updates) => - super.copyWith((message) => updates(message as CodeReply)) as CodeReply; - - @$core.override - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static CodeReply create() => CodeReply._(); - @$core.override - CodeReply createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static CodeReply getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static CodeReply? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get code => $_getIZ(0); - @$pb.TagNumber(1) - set code($core.int value) => $_setSignedInt32(0, value); - @$pb.TagNumber(1) - $core.bool hasCode() => $_has(0); - @$pb.TagNumber(1) - void clearCode() => $_clearField(1); -} - const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); const $core.bool _omitMessageNames = diff --git a/dart/wallet/wallet.pbgrpc.dart b/dart/wallet/wallet.pbgrpc.dart index 440c176..091598b 100644 --- a/dart/wallet/wallet.pbgrpc.dart +++ b/dart/wallet/wallet.pbgrpc.dart @@ -16,6 +16,7 @@ import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; import 'package:protobuf/protobuf.dart' as $pb; +import 'blocks.pb.dart' as $1; import 'wallet.pb.dart' as $0; export 'wallet.pb.dart'; @@ -41,7 +42,7 @@ class BasicClient extends $grpc.Client { } /// 设置支付密码 - $grpc.ResponseFuture<$0.CodeReply> setPayPassword( + $grpc.ResponseFuture<$1.StatusReply> setPayPassword( $0.SetPayPasswordRequest request, { $grpc.CallOptions? options, }) { @@ -49,7 +50,7 @@ class BasicClient extends $grpc.Client { } /// 绑定微信或支付宝账户 - $grpc.ResponseFuture<$0.CodeReply> bindPaymentId( + $grpc.ResponseFuture<$1.StatusReply> bindPaymentId( $0.BindPaymentIDRequest request, { $grpc.CallOptions? options, }) { @@ -65,7 +66,7 @@ class BasicClient extends $grpc.Client { } /// 添加银行卡 - $grpc.ResponseFuture<$0.CodeReply> addBankCard( + $grpc.ResponseFuture<$1.StatusReply> addBankCard( $0.AddBankCardRequest request, { $grpc.CallOptions? options, }) { @@ -81,7 +82,7 @@ class BasicClient extends $grpc.Client { } /// 删除银行卡 - $grpc.ResponseFuture<$0.CodeReply> rmBankCard( + $grpc.ResponseFuture<$1.StatusReply> rmBankCard( $0.RmBankCardRequest request, { $grpc.CallOptions? options, }) { @@ -89,7 +90,7 @@ class BasicClient extends $grpc.Client { } /// 申请提现 - $grpc.ResponseFuture<$0.CodeReply> applyCash( + $grpc.ResponseFuture<$1.StatusReply> applyCash( $0.ApplyCashRequest request, { $grpc.CallOptions? options, }) { @@ -104,40 +105,40 @@ class BasicClient extends $grpc.Client { ($0.GetWalletRequest value) => value.writeToBuffer(), $0.GetWalletReply.fromBuffer); static final _$setPayPassword = - $grpc.ClientMethod<$0.SetPayPasswordRequest, $0.CodeReply>( + $grpc.ClientMethod<$0.SetPayPasswordRequest, $1.StatusReply>( '/wallet.Basic/SetPayPassword', ($0.SetPayPasswordRequest value) => value.writeToBuffer(), - $0.CodeReply.fromBuffer); + $1.StatusReply.fromBuffer); static final _$bindPaymentId = - $grpc.ClientMethod<$0.BindPaymentIDRequest, $0.CodeReply>( + $grpc.ClientMethod<$0.BindPaymentIDRequest, $1.StatusReply>( '/wallet.Basic/BindPaymentId', ($0.BindPaymentIDRequest value) => value.writeToBuffer(), - $0.CodeReply.fromBuffer); + $1.StatusReply.fromBuffer); static final _$transactions = $grpc.ClientMethod<$0.TransactionsRequest, $0.TransactionsReply>( '/wallet.Basic/Transactions', ($0.TransactionsRequest value) => value.writeToBuffer(), $0.TransactionsReply.fromBuffer); static final _$addBankCard = - $grpc.ClientMethod<$0.AddBankCardRequest, $0.CodeReply>( + $grpc.ClientMethod<$0.AddBankCardRequest, $1.StatusReply>( '/wallet.Basic/AddBankCard', ($0.AddBankCardRequest value) => value.writeToBuffer(), - $0.CodeReply.fromBuffer); + $1.StatusReply.fromBuffer); static final _$getBankCard = $grpc.ClientMethod<$0.FinanceEmpty, $0.GetBankCardReply>( '/wallet.Basic/GetBankCard', ($0.FinanceEmpty value) => value.writeToBuffer(), $0.GetBankCardReply.fromBuffer); static final _$rmBankCard = - $grpc.ClientMethod<$0.RmBankCardRequest, $0.CodeReply>( + $grpc.ClientMethod<$0.RmBankCardRequest, $1.StatusReply>( '/wallet.Basic/RmBankCard', ($0.RmBankCardRequest value) => value.writeToBuffer(), - $0.CodeReply.fromBuffer); + $1.StatusReply.fromBuffer); static final _$applyCash = - $grpc.ClientMethod<$0.ApplyCashRequest, $0.CodeReply>( + $grpc.ClientMethod<$0.ApplyCashRequest, $1.StatusReply>( '/wallet.Basic/ApplyCash', ($0.ApplyCashRequest value) => value.writeToBuffer(), - $0.CodeReply.fromBuffer); + $1.StatusReply.fromBuffer); } @$pb.GrpcServiceName('wallet.Basic') @@ -152,22 +153,22 @@ abstract class BasicServiceBase extends $grpc.Service { false, ($core.List<$core.int> value) => $0.GetWalletRequest.fromBuffer(value), ($0.GetWalletReply value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.SetPayPasswordRequest, $0.CodeReply>( + $addMethod($grpc.ServiceMethod<$0.SetPayPasswordRequest, $1.StatusReply>( 'SetPayPassword', setPayPassword_Pre, false, false, ($core.List<$core.int> value) => $0.SetPayPasswordRequest.fromBuffer(value), - ($0.CodeReply value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.BindPaymentIDRequest, $0.CodeReply>( + ($1.StatusReply value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.BindPaymentIDRequest, $1.StatusReply>( 'BindPaymentId', bindPaymentId_Pre, false, false, ($core.List<$core.int> value) => $0.BindPaymentIDRequest.fromBuffer(value), - ($0.CodeReply value) => value.writeToBuffer())); + ($1.StatusReply value) => value.writeToBuffer())); $addMethod( $grpc.ServiceMethod<$0.TransactionsRequest, $0.TransactionsReply>( 'Transactions', @@ -177,14 +178,14 @@ abstract class BasicServiceBase extends $grpc.Service { ($core.List<$core.int> value) => $0.TransactionsRequest.fromBuffer(value), ($0.TransactionsReply value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.AddBankCardRequest, $0.CodeReply>( + $addMethod($grpc.ServiceMethod<$0.AddBankCardRequest, $1.StatusReply>( 'AddBankCard', addBankCard_Pre, false, false, ($core.List<$core.int> value) => $0.AddBankCardRequest.fromBuffer(value), - ($0.CodeReply value) => value.writeToBuffer())); + ($1.StatusReply value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$0.FinanceEmpty, $0.GetBankCardReply>( 'GetBankCard', getBankCard_Pre, @@ -192,20 +193,20 @@ abstract class BasicServiceBase extends $grpc.Service { false, ($core.List<$core.int> value) => $0.FinanceEmpty.fromBuffer(value), ($0.GetBankCardReply value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.RmBankCardRequest, $0.CodeReply>( + $addMethod($grpc.ServiceMethod<$0.RmBankCardRequest, $1.StatusReply>( 'RmBankCard', rmBankCard_Pre, false, false, ($core.List<$core.int> value) => $0.RmBankCardRequest.fromBuffer(value), - ($0.CodeReply value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.ApplyCashRequest, $0.CodeReply>( + ($1.StatusReply value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.ApplyCashRequest, $1.StatusReply>( 'ApplyCash', applyCash_Pre, false, false, ($core.List<$core.int> value) => $0.ApplyCashRequest.fromBuffer(value), - ($0.CodeReply value) => value.writeToBuffer())); + ($1.StatusReply value) => value.writeToBuffer())); } $async.Future<$0.GetWalletReply> getWallet_Pre($grpc.ServiceCall $call, @@ -216,20 +217,20 @@ abstract class BasicServiceBase extends $grpc.Service { $async.Future<$0.GetWalletReply> getWallet( $grpc.ServiceCall call, $0.GetWalletRequest request); - $async.Future<$0.CodeReply> setPayPassword_Pre($grpc.ServiceCall $call, + $async.Future<$1.StatusReply> setPayPassword_Pre($grpc.ServiceCall $call, $async.Future<$0.SetPayPasswordRequest> $request) async { return setPayPassword($call, await $request); } - $async.Future<$0.CodeReply> setPayPassword( + $async.Future<$1.StatusReply> setPayPassword( $grpc.ServiceCall call, $0.SetPayPasswordRequest request); - $async.Future<$0.CodeReply> bindPaymentId_Pre($grpc.ServiceCall $call, + $async.Future<$1.StatusReply> bindPaymentId_Pre($grpc.ServiceCall $call, $async.Future<$0.BindPaymentIDRequest> $request) async { return bindPaymentId($call, await $request); } - $async.Future<$0.CodeReply> bindPaymentId( + $async.Future<$1.StatusReply> bindPaymentId( $grpc.ServiceCall call, $0.BindPaymentIDRequest request); $async.Future<$0.TransactionsReply> transactions_Pre($grpc.ServiceCall $call, @@ -240,12 +241,12 @@ abstract class BasicServiceBase extends $grpc.Service { $async.Future<$0.TransactionsReply> transactions( $grpc.ServiceCall call, $0.TransactionsRequest request); - $async.Future<$0.CodeReply> addBankCard_Pre($grpc.ServiceCall $call, + $async.Future<$1.StatusReply> addBankCard_Pre($grpc.ServiceCall $call, $async.Future<$0.AddBankCardRequest> $request) async { return addBankCard($call, await $request); } - $async.Future<$0.CodeReply> addBankCard( + $async.Future<$1.StatusReply> addBankCard( $grpc.ServiceCall call, $0.AddBankCardRequest request); $async.Future<$0.GetBankCardReply> getBankCard_Pre( @@ -256,19 +257,19 @@ abstract class BasicServiceBase extends $grpc.Service { $async.Future<$0.GetBankCardReply> getBankCard( $grpc.ServiceCall call, $0.FinanceEmpty request); - $async.Future<$0.CodeReply> rmBankCard_Pre($grpc.ServiceCall $call, + $async.Future<$1.StatusReply> rmBankCard_Pre($grpc.ServiceCall $call, $async.Future<$0.RmBankCardRequest> $request) async { return rmBankCard($call, await $request); } - $async.Future<$0.CodeReply> rmBankCard( + $async.Future<$1.StatusReply> rmBankCard( $grpc.ServiceCall call, $0.RmBankCardRequest request); - $async.Future<$0.CodeReply> applyCash_Pre($grpc.ServiceCall $call, + $async.Future<$1.StatusReply> applyCash_Pre($grpc.ServiceCall $call, $async.Future<$0.ApplyCashRequest> $request) async { return applyCash($call, await $request); } - $async.Future<$0.CodeReply> applyCash( + $async.Future<$1.StatusReply> applyCash( $grpc.ServiceCall call, $0.ApplyCashRequest request); } diff --git a/dart/wallet/wallet.pbjson.dart b/dart/wallet/wallet.pbjson.dart index 2073646..34f4442 100644 --- a/dart/wallet/wallet.pbjson.dart +++ b/dart/wallet/wallet.pbjson.dart @@ -350,15 +350,3 @@ const ApplyCashRequest$json = { final $typed_data.Uint8List applyCashRequestDescriptor = $convert.base64Decode( 'ChBBcHBseUNhc2hSZXF1ZXN0EhgKB2NoYW5uZWwYASABKAVSB2NoYW5uZWwSFgoGYW1vdW50GA' 'IgASgDUgZhbW91bnQSFgoGcmVtYXJrGAMgASgJUgZyZW1hcms='); - -@$core.Deprecated('Use codeReplyDescriptor instead') -const CodeReply$json = { - '1': 'CodeReply', - '2': [ - {'1': 'code', '3': 1, '4': 1, '5': 5, '10': 'code'}, - ], -}; - -/// Descriptor for `CodeReply`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List codeReplyDescriptor = - $convert.base64Decode('CglDb2RlUmVwbHkSEgoEY29kZRgBIAEoBVIEY29kZQ=='); diff --git a/docs/cloud/album.md b/docs/cloud/album.md index 0a72e9b..6dea5b3 100644 --- a/docs/cloud/album.md +++ b/docs/cloud/album.md @@ -35,7 +35,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -127,7 +129,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -147,7 +151,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -219,7 +225,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -265,7 +273,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -357,7 +367,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -377,7 +389,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -449,7 +463,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` diff --git a/docs/cloud/bookmark.md b/docs/cloud/bookmark.md index 834d70a..e35aa3c 100644 --- a/docs/cloud/bookmark.md +++ b/docs/cloud/bookmark.md @@ -32,7 +32,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -89,7 +91,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -108,7 +112,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -163,7 +169,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` diff --git a/docs/cloud/cloud.swagger.json b/docs/cloud/cloud.swagger.json index 436c644..2b204cf 100644 --- a/docs/cloud/cloud.swagger.json +++ b/docs/cloud/cloud.swagger.json @@ -742,7 +742,16 @@ "cloudStatusReply": { "type": "object", "properties": { - "data": { + "code": { + "type": "integer", + "format": "int32", + "title": "状态码" + }, + "message": { + "type": "string", + "title": "状态说明" + }, + "details": { "type": "string", "title": "数据" }, diff --git a/docs/cloud/disk.md b/docs/cloud/disk.md index e9d6525..0960650 100644 --- a/docs/cloud/disk.md +++ b/docs/cloud/disk.md @@ -37,7 +37,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -123,7 +125,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -143,7 +147,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -255,7 +261,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -282,7 +290,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -368,7 +378,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -388,7 +400,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -457,7 +471,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -478,7 +494,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` diff --git a/docs/cloud/note.md b/docs/cloud/note.md index d6e50f3..1eda094 100644 --- a/docs/cloud/note.md +++ b/docs/cloud/note.md @@ -36,7 +36,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -116,7 +118,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -136,7 +140,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -202,7 +208,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -222,7 +230,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -293,7 +303,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -313,7 +325,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` diff --git a/docs/cloud/private.md b/docs/cloud/private.md index 55e4642..8a4fef9 100644 --- a/docs/cloud/private.md +++ b/docs/cloud/private.md @@ -34,7 +34,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -90,7 +92,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -110,7 +114,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -232,7 +238,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -252,7 +260,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` diff --git a/docs/cloud/share.md b/docs/cloud/share.md index 2120a97..e2dd4e8 100644 --- a/docs/cloud/share.md +++ b/docs/cloud/share.md @@ -30,7 +30,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -80,7 +82,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -136,7 +140,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` diff --git a/docs/cms/category.md b/docs/cms/category.md index 219c6ee..d5a0b37 100644 --- a/docs/cms/category.md +++ b/docs/cms/category.md @@ -65,10 +65,9 @@ ```javascript { code: 0, // type, 状态码 - identity: "", // type, 标识码 message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 - count: "0", // type, 数量 } ``` ## /cms.Category/Modify @@ -106,10 +105,9 @@ ```javascript { code: 0, // type, 状态码 - identity: "", // type, 标识码 message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 - count: "0", // type, 数量 } ``` ## /cms.Category/Delete @@ -128,10 +126,9 @@ ```javascript { code: 0, // type, 状态码 - identity: "", // type, 标识码 message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 - count: "0", // type, 数量 } ``` diff --git a/docs/cms/cms.swagger.json b/docs/cms/cms.swagger.json index 218722c..b71b782 100644 --- a/docs/cms/cms.swagger.json +++ b/docs/cms/cms.swagger.json @@ -479,26 +479,20 @@ "format": "int32", "title": "状态码" }, - "identity": { - "type": "string", - "title": "标识码" - }, "message": { "type": "string", "title": "状态说明" }, + "details": { + "type": "string", + "title": "数据" + }, "timeseq": { "type": "string", "format": "int64", "title": "响应时间序列" - }, - "count": { - "type": "string", - "format": "int64", - "title": "数量" } - }, - "title": "标准回执" + } }, "cmsTagsItem": { "type": "object", diff --git a/docs/cms/pages.md b/docs/cms/pages.md index 3e59084..a7cd416 100644 --- a/docs/cms/pages.md +++ b/docs/cms/pages.md @@ -193,10 +193,9 @@ ```javascript { code: 0, // type, 状态码 - identity: "", // type, 标识码 message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 - count: "0", // type, 数量 } ``` ## /cms.Pages/Modify @@ -242,10 +241,9 @@ ```javascript { code: 0, // type, 状态码 - identity: "", // type, 标识码 message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 - count: "0", // type, 数量 } ``` ## /cms.Pages/Delete @@ -265,10 +263,9 @@ ```javascript { code: 0, // type, 状态码 - identity: "", // type, 标识码 message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 - count: "0", // type, 数量 } ``` diff --git a/docs/cms/post.md b/docs/cms/post.md index a57541f..7fbce98 100644 --- a/docs/cms/post.md +++ b/docs/cms/post.md @@ -369,10 +369,9 @@ ```javascript { code: 0, // type, 状态码 - identity: "", // type, 标识码 message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 - count: "0", // type, 数量 } ``` ## /cms.Post/Modify @@ -440,10 +439,9 @@ ```javascript { code: 0, // type, 状态码 - identity: "", // type, 标识码 message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 - count: "0", // type, 数量 } ``` ## /cms.Post/Delete @@ -463,10 +461,9 @@ ```javascript { code: 0, // type, 状态码 - identity: "", // type, 标识码 message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 - count: "0", // type, 数量 } ``` ## /cms.Post/IncrPostLike @@ -486,10 +483,9 @@ ```javascript { code: 0, // type, 状态码 - identity: "", // type, 标识码 message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 - count: "0", // type, 数量 } ``` ## /cms.Post/DescPostLike @@ -509,10 +505,9 @@ ```javascript { code: 0, // type, 状态码 - identity: "", // type, 标识码 message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 - count: "0", // type, 数量 } ``` ## /cms.Post/IncrPostUnlike @@ -532,10 +527,9 @@ ```javascript { code: 0, // type, 状态码 - identity: "", // type, 标识码 message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 - count: "0", // type, 数量 } ``` ## /cms.Post/DescPostUnlike @@ -555,10 +549,9 @@ ```javascript { code: 0, // type, 状态码 - identity: "", // type, 标识码 message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 - count: "0", // type, 数量 } ``` ## /cms.Post/CommentList @@ -626,10 +619,9 @@ ```javascript { code: 0, // type, 状态码 - identity: "", // type, 标识码 message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 - count: "0", // type, 数量 } ``` ## /cms.Post/ModifyComment @@ -661,10 +653,9 @@ ```javascript { code: 0, // type, 状态码 - identity: "", // type, 标识码 message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 - count: "0", // type, 数量 } ``` ## /cms.Post/DeleteComment @@ -684,10 +675,9 @@ ```javascript { code: 0, // type, 状态码 - identity: "", // type, 标识码 message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 - count: "0", // type, 数量 } ``` ## /cms.Post/IncrCommentLike @@ -707,10 +697,9 @@ ```javascript { code: 0, // type, 状态码 - identity: "", // type, 标识码 message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 - count: "0", // type, 数量 } ``` ## /cms.Post/DescCommentLike @@ -730,10 +719,9 @@ ```javascript { code: 0, // type, 状态码 - identity: "", // type, 标识码 message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 - count: "0", // type, 数量 } ``` ## /cms.Post/IncrCommentUnlike @@ -753,10 +741,9 @@ ```javascript { code: 0, // type, 状态码 - identity: "", // type, 标识码 message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 - count: "0", // type, 数量 } ``` ## /cms.Post/DescCommentUnlike @@ -776,10 +763,9 @@ ```javascript { code: 0, // type, 状态码 - identity: "", // type, 标识码 message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 - count: "0", // type, 数量 } ``` diff --git a/docs/cms/tags.md b/docs/cms/tags.md index 4e3670d..9f44d7c 100644 --- a/docs/cms/tags.md +++ b/docs/cms/tags.md @@ -55,10 +55,9 @@ ```javascript { code: 0, // type, 状态码 - identity: "", // type, 标识码 message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 - count: "0", // type, 数量 } ``` ## /cms.Tags/Modify @@ -82,10 +81,9 @@ ```javascript { code: 0, // type, 状态码 - identity: "", // type, 标识码 message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 - count: "0", // type, 数量 } ``` ## /cms.Tags/Delete @@ -105,10 +103,9 @@ ```javascript { code: 0, // type, 状态码 - identity: "", // type, 标识码 message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 - count: "0", // type, 数量 } ``` diff --git a/docs/feedback/feedback.md b/docs/feedback/feedback.md index 11ee804..c1c25ff 100644 --- a/docs/feedback/feedback.md +++ b/docs/feedback/feedback.md @@ -178,7 +178,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -196,7 +198,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -216,7 +220,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` diff --git a/docs/feedback/feedback.swagger.json b/docs/feedback/feedback.swagger.json index 65c07af..1dc3a07 100644 --- a/docs/feedback/feedback.swagger.json +++ b/docs/feedback/feedback.swagger.json @@ -164,7 +164,16 @@ "feedbackStatusReply": { "type": "object", "properties": { - "data": { + "code": { + "type": "integer", + "format": "int32", + "title": "状态码" + }, + "message": { + "type": "string", + "title": "状态说明" + }, + "details": { "type": "string", "title": "数据" }, diff --git a/docs/initial/check.md b/docs/initial/check.md index 59e2f91..d21b275 100644 --- a/docs/initial/check.md +++ b/docs/initial/check.md @@ -21,9 +21,9 @@ ### Reply ```javascript { - status: "0", // type, 状态码 - identity: "", // type, 标识码 + code: 0, // type, 状态码 message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` diff --git a/docs/initial/initial.swagger.json b/docs/initial/initial.swagger.json index dec3bbf..86ba948 100644 --- a/docs/initial/initial.swagger.json +++ b/docs/initial/initial.swagger.json @@ -222,19 +222,19 @@ "initialStatusReply": { "type": "object", "properties": { - "status": { - "type": "string", - "format": "int64", + "code": { + "type": "integer", + "format": "int32", "title": "状态码" }, - "identity": { - "type": "string", - "title": "标识码" - }, "message": { "type": "string", "title": "状态说明" }, + "details": { + "type": "string", + "title": "数据" + }, "timeseq": { "type": "string", "format": "int64", diff --git a/docs/passport/account.md b/docs/passport/account.md index b2647ef..58e06f4 100644 --- a/docs/passport/account.md +++ b/docs/passport/account.md @@ -74,7 +74,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -94,7 +96,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -114,7 +118,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -134,7 +140,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` diff --git a/docs/passport/forget.md b/docs/passport/forget.md index d17c7e6..45d6bfd 100644 --- a/docs/passport/forget.md +++ b/docs/passport/forget.md @@ -21,7 +21,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` diff --git a/docs/passport/kyc.md b/docs/passport/kyc.md index 94faebc..0d0707f 100644 --- a/docs/passport/kyc.md +++ b/docs/passport/kyc.md @@ -21,7 +21,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` @@ -64,7 +66,9 @@ ### Reply ```javascript { - data: "", // type, 数据 + code: 0, // type, 状态码 + message: "", // type, 状态说明 + details: "", // type, 数据 timeseq: "0", // type, 响应时间序列 } ``` diff --git a/docs/passport/passport.swagger.json b/docs/passport/passport.swagger.json index d63edd1..7192992 100644 --- a/docs/passport/passport.swagger.json +++ b/docs/passport/passport.swagger.json @@ -261,7 +261,16 @@ "passportStatusReply": { "type": "object", "properties": { - "data": { + "code": { + "type": "integer", + "format": "int32", + "title": "状态码" + }, + "message": { + "type": "string", + "title": "状态说明" + }, + "details": { "type": "string", "title": "数据" }, diff --git a/docs/wallet/index.html b/docs/wallet/index.html index 04d3623..fde6bc2 100644 --- a/docs/wallet/index.html +++ b/docs/wallet/index.html @@ -331,10 +331,6 @@ MBindPaymentIDRequest -
  • - MCodeReply -
  • -
  • MFinanceEmpty
  • @@ -937,7 +933,21 @@ - data + code + int32 + +

    状态码

    + + + + message + string + +

    状态说明

    + + + + details string

    数据

    @@ -1669,30 +1679,6 @@ -

    CodeReply

    -

    - - - - - - - - - - - - - - - - -
    FieldTypeLabelDescription
    codeint32

    状态码

    - - - - -

    FinanceEmpty

    @@ -2240,14 +2226,14 @@ SetPayPassword SetPayPasswordRequest - CodeReply + StatusReply

    设置支付密码

    BindPaymentId BindPaymentIDRequest - CodeReply + StatusReply

    绑定微信或支付宝账户

    @@ -2261,7 +2247,7 @@ AddBankCard AddBankCardRequest - CodeReply + StatusReply

    添加银行卡

    @@ -2275,14 +2261,14 @@ RmBankCard RmBankCardRequest - CodeReply + StatusReply

    删除银行卡

    ApplyCash ApplyCashRequest - CodeReply + StatusReply

    申请提现

    diff --git a/docs/wallet/wallet.swagger.json b/docs/wallet/wallet.swagger.json index 7319ffe..892caff 100644 --- a/docs/wallet/wallet.swagger.json +++ b/docs/wallet/wallet.swagger.json @@ -142,16 +142,6 @@ } } }, - "walletCodeReply": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "title": "状态码" - } - } - }, "walletGetBankCardReply": { "type": "object", "properties": { @@ -280,7 +270,16 @@ "walletStatusReply": { "type": "object", "properties": { - "data": { + "code": { + "type": "integer", + "format": "int32", + "title": "状态码" + }, + "message": { + "type": "string", + "title": "状态说明" + }, + "details": { "type": "string", "title": "数据" }, diff --git a/golang/cloud/blocks.pb.go b/golang/cloud/blocks.pb.go index d80533f..e1cfbc6 100644 --- a/golang/cloud/blocks.pb.go +++ b/golang/cloud/blocks.pb.go @@ -439,8 +439,10 @@ func (x *CloudBase) GetCloudIdentity() string { // 状态回复 type StatusReply struct { state protoimpl.MessageState `protogen:"open.v1"` - Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // 数据 - Timeseq int64 `protobuf:"varint,2,opt,name=timeseq,proto3" json:"timeseq,omitempty"` // 响应时间序列 + 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 } @@ -475,9 +477,23 @@ func (*StatusReply) Descriptor() ([]byte, []int) { return file_blocks_proto_rawDescGZIP(), []int{8} } -func (x *StatusReply) GetData() string { +func (x *StatusReply) GetCode() int32 { if x != nil { - return x.Data + 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 "" } @@ -523,10 +539,12 @@ const file_blocks_proto_rawDesc = "" + "\x11passport_identity\x18\x02 \x01(\tR\x10passportIdentity\"M\n" + "\tCloudBase\x12\x19\n" + "\bcloud_id\x18\x01 \x01(\x04R\acloudId\x12%\n" + - "\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\";\n" + + "\x0ecloud_identity\x18\x02 \x01(\tR\rcloudIdentity\"o\n" + "\vStatusReply\x12\x12\n" + - "\x04data\x18\x01 \x01(\tR\x04data\x12\x18\n" + - "\atimeseq\x18\x02 \x01(\x03R\atimeseqB\tZ\a.;cloudb\x06proto3" + "\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\atimeseqB\tZ\a.;cloudb\x06proto3" var ( file_blocks_proto_rawDescOnce sync.Once diff --git a/golang/cms/blocks.pb.go b/golang/cms/blocks.pb.go index d96215d..80e350d 100644 --- a/golang/cms/blocks.pb.go +++ b/golang/cms/blocks.pb.go @@ -241,14 +241,12 @@ func (x *SearchRequest) GetPageSize() int64 { return 0 } -// 标准回执 type StatusReply struct { state protoimpl.MessageState `protogen:"open.v1"` - Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 状态码 - Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` // 标识码 - Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` //状态说明 - Timeseq int64 `protobuf:"varint,4,opt,name=timeseq,proto3" json:"timeseq,omitempty"` // 响应时间序列 - Count int64 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"` // 数量 + 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 } @@ -290,13 +288,6 @@ func (x *StatusReply) GetCode() int32 { return 0 } -func (x *StatusReply) GetIdentity() string { - if x != nil { - return x.Identity - } - return "" -} - func (x *StatusReply) GetMessage() string { if x != nil { return x.Message @@ -304,6 +295,13 @@ func (x *StatusReply) GetMessage() string { return "" } +func (x *StatusReply) GetDetails() string { + if x != nil { + return x.Details + } + return "" +} + func (x *StatusReply) GetTimeseq() int64 { if x != nil { return x.Timeseq @@ -311,13 +309,6 @@ func (x *StatusReply) GetTimeseq() int64 { return 0 } -func (x *StatusReply) GetCount() int64 { - if x != nil { - return x.Count - } - return 0 -} - // 空结构请求 type Empty struct { state protoimpl.MessageState `protogen:"open.v1"` @@ -646,13 +637,12 @@ const file_blocks_proto_rawDesc = "" + "\rSearchRequest\x12\x18\n" + "\akeyword\x18\x01 \x01(\tR\akeyword\x12\x18\n" + "\apage_no\x18\x02 \x01(\x03R\apage_no\x12\x1c\n" + - "\tpage_size\x18\x03 \x01(\x03R\tpage_size\"\x87\x01\n" + + "\tpage_size\x18\x03 \x01(\x03R\tpage_size\"o\n" + "\vStatusReply\x12\x12\n" + - "\x04code\x18\x01 \x01(\x05R\x04code\x12\x1a\n" + - "\bidentity\x18\x02 \x01(\tR\bidentity\x12\x18\n" + - "\amessage\x18\x03 \x01(\tR\amessage\x12\x18\n" + - "\atimeseq\x18\x04 \x01(\x03R\atimeseq\x12\x14\n" + - "\x05count\x18\x05 \x01(\x03R\x05count\"\a\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\"\a\n" + "\x05Empty\"\xb1\x02\n" + "\fCategoryItem\x12\x0e\n" + "\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" + diff --git a/golang/feedback/feedback.pb.go b/golang/feedback/feedback.pb.go index 022783a..b12a524 100644 --- a/golang/feedback/feedback.pb.go +++ b/golang/feedback/feedback.pb.go @@ -1051,8 +1051,10 @@ func (x *IdentRequest) GetIdentity() string { type StatusReply struct { state protoimpl.MessageState `protogen:"open.v1"` - Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // 数据 - Timeseq int64 `protobuf:"varint,2,opt,name=timeseq,proto3" json:"timeseq,omitempty"` // 响应时间序列 + 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 } @@ -1087,9 +1089,23 @@ func (*StatusReply) Descriptor() ([]byte, []int) { return file_feedback_proto_rawDescGZIP(), []int{13} } -func (x *StatusReply) GetData() string { +func (x *StatusReply) GetCode() int32 { if x != nil { - return x.Data + 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 "" } @@ -1198,10 +1214,12 @@ const file_feedback_proto_rawDesc = "" + "\x06status\x18\x03 \x01(\x05R\x06status\":\n" + "\fIdentRequest\x12\x0e\n" + "\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" + - "\bidentity\x18\x02 \x01(\tR\bidentity\";\n" + + "\bidentity\x18\x02 \x01(\tR\bidentity\"o\n" + "\vStatusReply\x12\x12\n" + - "\x04data\x18\x01 \x01(\tR\x04data\x12\x18\n" + - "\atimeseq\x18\x02 \x01(\x03R\atimeseq2\xd8\x02\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\atimeseq2\xd8\x02\n" + "\x06Method\x124\n" + "\x04List\x12\x15.feedback.ListRequest\x1a\x13.feedback.ListReply\"\x00\x121\n" + "\x03Get\x12\x14.feedback.GetRequest\x1a\x12.feedback.GetReply\"\x00\x121\n" + diff --git a/golang/initial/check.pb.go b/golang/initial/check.pb.go index 100297f..4a8ede0 100644 --- a/golang/initial/check.pb.go +++ b/golang/initial/check.pb.go @@ -67,10 +67,10 @@ func (x *Crc) GetCode() string { type StatusReply struct { state protoimpl.MessageState `protogen:"open.v1"` - Status int64 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` // 状态码 - Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` // 标识码 - Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` //状态说明 - Timeseq int64 `protobuf:"varint,4,opt,name=timeseq,proto3" json:"timeseq,omitempty"` // 响应时间序列 + 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 } @@ -105,20 +105,13 @@ func (*StatusReply) Descriptor() ([]byte, []int) { return file_check_proto_rawDescGZIP(), []int{1} } -func (x *StatusReply) GetStatus() int64 { +func (x *StatusReply) GetCode() int32 { if x != nil { - return x.Status + return x.Code } return 0 } -func (x *StatusReply) GetIdentity() string { - if x != nil { - return x.Identity - } - return "" -} - func (x *StatusReply) GetMessage() string { if x != nil { return x.Message @@ -126,6 +119,13 @@ func (x *StatusReply) GetMessage() string { return "" } +func (x *StatusReply) GetDetails() string { + if x != nil { + return x.Details + } + return "" +} + func (x *StatusReply) GetTimeseq() int64 { if x != nil { return x.Timeseq @@ -447,11 +447,11 @@ const file_check_proto_rawDesc = "" + "\n" + "\vcheck.proto\x12\ainitial\"\x19\n" + "\x03Crc\x12\x12\n" + - "\x04code\x18\x01 \x01(\tR\x04code\"u\n" + - "\vStatusReply\x12\x16\n" + - "\x06status\x18\x01 \x01(\x03R\x06status\x12\x1a\n" + - "\bidentity\x18\x02 \x01(\tR\bidentity\x12\x18\n" + - "\amessage\x18\x03 \x01(\tR\amessage\x12\x18\n" + + "\x04code\x18\x01 \x01(\tR\x04code\"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\"1\n" + "\rConfigRequest\x12\x10\n" + "\x03app\x18\x01 \x01(\tR\x03app\x12\x0e\n" + diff --git a/golang/passport/blocks.pb.go b/golang/passport/blocks.pb.go index 7ee6638..11c4329 100644 --- a/golang/passport/blocks.pb.go +++ b/golang/passport/blocks.pb.go @@ -223,8 +223,10 @@ func (x *SearchRequest) GetKeyword() string { type StatusReply struct { state protoimpl.MessageState `protogen:"open.v1"` - Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // 数据 - Timeseq int64 `protobuf:"varint,2,opt,name=timeseq,proto3" json:"timeseq,omitempty"` // 响应时间序列 + 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 } @@ -259,9 +261,23 @@ func (*StatusReply) Descriptor() ([]byte, []int) { return file_blocks_proto_rawDescGZIP(), []int{4} } -func (x *StatusReply) GetData() string { +func (x *StatusReply) GetCode() int32 { if x != nil { - return x.Data + 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 "" } @@ -327,10 +343,12 @@ const file_blocks_proto_rawDesc = "" + "\x0eVersionRequest\x12\x18\n" + "\aversion\x18\x01 \x01(\x03R\aversion\")\n" + "\rSearchRequest\x12\x18\n" + - "\akeyword\x18\x01 \x01(\tR\akeyword\";\n" + + "\akeyword\x18\x01 \x01(\tR\akeyword\"o\n" + "\vStatusReply\x12\x12\n" + - "\x04data\x18\x01 \x01(\tR\x04data\x12\x18\n" + - "\atimeseq\x18\x02 \x01(\x03R\atimeseq\"\a\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\"\a\n" + "\x05EmptyB\fZ\n" + ".;passportb\x06proto3" diff --git a/golnag/wallet/alipay.pb.go b/golnag/wallet/alipay.pb.go index 7850225..b6ea28f 100644 --- a/golnag/wallet/alipay.pb.go +++ b/golnag/wallet/alipay.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.9 +// protoc-gen-go v1.36.8 // protoc (unknown) // source: alipay.proto diff --git a/golnag/wallet/blocks.pb.go b/golnag/wallet/blocks.pb.go index 5cb00df..e56af52 100644 --- a/golnag/wallet/blocks.pb.go +++ b/golnag/wallet/blocks.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.9 +// protoc-gen-go v1.36.8 // protoc (unknown) // source: blocks.proto @@ -223,8 +223,10 @@ func (x *SearchRequest) GetKeyword() string { type StatusReply struct { state protoimpl.MessageState `protogen:"open.v1"` - Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // 数据 - Timeseq int64 `protobuf:"varint,2,opt,name=timeseq,proto3" json:"timeseq,omitempty"` // 响应时间序列 + 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 } @@ -259,9 +261,23 @@ func (*StatusReply) Descriptor() ([]byte, []int) { return file_blocks_proto_rawDescGZIP(), []int{4} } -func (x *StatusReply) GetData() string { +func (x *StatusReply) GetCode() int32 { if x != nil { - return x.Data + 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 "" } @@ -327,10 +343,12 @@ const file_blocks_proto_rawDesc = "" + "\x0eVersionRequest\x12\x18\n" + "\aversion\x18\x01 \x01(\x03R\aversion\")\n" + "\rSearchRequest\x12\x18\n" + - "\akeyword\x18\x01 \x01(\tR\akeyword\";\n" + + "\akeyword\x18\x01 \x01(\tR\akeyword\"o\n" + "\vStatusReply\x12\x12\n" + - "\x04data\x18\x01 \x01(\tR\x04data\x12\x18\n" + - "\atimeseq\x18\x02 \x01(\x03R\atimeseq\"\a\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\"\a\n" + "\x05EmptyB\n" + "Z\b.;walletb\x06proto3" diff --git a/golnag/wallet/payment.pb.go b/golnag/wallet/payment.pb.go index 530a2d6..bb0f75f 100644 --- a/golnag/wallet/payment.pb.go +++ b/golnag/wallet/payment.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.9 +// protoc-gen-go v1.36.8 // protoc (unknown) // source: payment.proto diff --git a/golnag/wallet/wallet.pb.go b/golnag/wallet/wallet.pb.go index 229d8ee..298cd8c 100644 --- a/golnag/wallet/wallet.pb.go +++ b/golnag/wallet/wallet.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.9 +// protoc-gen-go v1.36.8 // protoc (unknown) // source: wallet.proto @@ -1081,55 +1081,11 @@ func (x *ApplyCashRequest) GetRemark() string { return "" } -type CodeReply struct { - state protoimpl.MessageState `protogen:"open.v1"` - Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码 - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CodeReply) Reset() { - *x = CodeReply{} - mi := &file_wallet_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CodeReply) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CodeReply) ProtoMessage() {} - -func (x *CodeReply) ProtoReflect() protoreflect.Message { - mi := &file_wallet_proto_msgTypes[15] - 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 CodeReply.ProtoReflect.Descriptor instead. -func (*CodeReply) Descriptor() ([]byte, []int) { - return file_wallet_proto_rawDescGZIP(), []int{15} -} - -func (x *CodeReply) GetCode() int32 { - if x != nil { - return x.Code - } - return 0 -} - var File_wallet_proto protoreflect.FileDescriptor const file_wallet_proto_rawDesc = "" + "\n" + - "\fwallet.proto\x12\x06wallet\"\x92\x02\n" + + "\fwallet.proto\x12\x06wallet\x1a\fblocks.proto\"\x92\x02\n" + "\x10GetWalletRequest\x12)\n" + "\x11is_total_today_in\x18\x01 \x01(\bR\x0eisTotalTodayIn\x12+\n" + "\x12is_total_today_out\x18\x02 \x01(\bR\x0fisTotalTodayOut\x12)\n" + @@ -1227,19 +1183,17 @@ const file_wallet_proto_rawDesc = "" + "\x10ApplyCashRequest\x12\x18\n" + "\achannel\x18\x01 \x01(\x05R\achannel\x12\x16\n" + "\x06amount\x18\x02 \x01(\x03R\x06amount\x12\x16\n" + - "\x06remark\x18\x03 \x01(\tR\x06remark\"\x1f\n" + - "\tCodeReply\x12\x12\n" + - "\x04code\x18\x01 \x01(\x05R\x04code2\x97\x04\n" + + "\x06remark\x18\x03 \x01(\tR\x06remark2\xa1\x04\n" + "\x05Basic\x12?\n" + - "\tGetWallet\x12\x18.wallet.GetWalletRequest\x1a\x16.wallet.GetWalletReply\"\x00\x12D\n" + - "\x0eSetPayPassword\x12\x1d.wallet.SetPayPasswordRequest\x1a\x11.wallet.CodeReply\"\x00\x12B\n" + - "\rBindPaymentId\x12\x1c.wallet.BindPaymentIDRequest\x1a\x11.wallet.CodeReply\"\x00\x12H\n" + - "\fTransactions\x12\x1b.wallet.TransactionsRequest\x1a\x19.wallet.TransactionsReply\"\x00\x12>\n" + - "\vAddBankCard\x12\x1a.wallet.AddBankCardRequest\x1a\x11.wallet.CodeReply\"\x00\x12?\n" + - "\vGetBankCard\x12\x14.wallet.FinanceEmpty\x1a\x18.wallet.GetBankCardReply\"\x00\x12<\n" + + "\tGetWallet\x12\x18.wallet.GetWalletRequest\x1a\x16.wallet.GetWalletReply\"\x00\x12F\n" + + "\x0eSetPayPassword\x12\x1d.wallet.SetPayPasswordRequest\x1a\x13.wallet.StatusReply\"\x00\x12D\n" + + "\rBindPaymentId\x12\x1c.wallet.BindPaymentIDRequest\x1a\x13.wallet.StatusReply\"\x00\x12H\n" + + "\fTransactions\x12\x1b.wallet.TransactionsRequest\x1a\x19.wallet.TransactionsReply\"\x00\x12@\n" + + "\vAddBankCard\x12\x1a.wallet.AddBankCardRequest\x1a\x13.wallet.StatusReply\"\x00\x12?\n" + + "\vGetBankCard\x12\x14.wallet.FinanceEmpty\x1a\x18.wallet.GetBankCardReply\"\x00\x12>\n" + "\n" + - "RmBankCard\x12\x19.wallet.RmBankCardRequest\x1a\x11.wallet.CodeReply\"\x00\x12:\n" + - "\tApplyCash\x12\x18.wallet.ApplyCashRequest\x1a\x11.wallet.CodeReply\"\x00B\n" + + "RmBankCard\x12\x19.wallet.RmBankCardRequest\x1a\x13.wallet.StatusReply\"\x00\x12<\n" + + "\tApplyCash\x12\x18.wallet.ApplyCashRequest\x1a\x13.wallet.StatusReply\"\x00B\n" + "Z\b.;walletb\x06proto3" var ( @@ -1254,7 +1208,7 @@ func file_wallet_proto_rawDescGZIP() []byte { return file_wallet_proto_rawDescData } -var file_wallet_proto_msgTypes = make([]protoimpl.MessageInfo, 17) +var file_wallet_proto_msgTypes = make([]protoimpl.MessageInfo, 16) var file_wallet_proto_goTypes = []any{ (*GetWalletRequest)(nil), // 0: wallet.GetWalletRequest (*GetWalletReply)(nil), // 1: wallet.GetWalletReply @@ -1271,11 +1225,11 @@ var file_wallet_proto_goTypes = []any{ (*GetBankCardReply)(nil), // 12: wallet.GetBankCardReply (*BankCardInfo)(nil), // 13: wallet.BankCardInfo (*ApplyCashRequest)(nil), // 14: wallet.ApplyCashRequest - (*CodeReply)(nil), // 15: wallet.CodeReply - nil, // 16: wallet.GetWalletReply.TotalEntry + nil, // 15: wallet.GetWalletReply.TotalEntry + (*StatusReply)(nil), // 16: wallet.StatusReply } var file_wallet_proto_depIdxs = []int32{ - 16, // 0: wallet.GetWalletReply.total:type_name -> wallet.GetWalletReply.TotalEntry + 15, // 0: wallet.GetWalletReply.total:type_name -> wallet.GetWalletReply.TotalEntry 4, // 1: wallet.TransactionsReply.records:type_name -> wallet.Transaction 4, // 2: wallet.RefundReply.transaction:type_name -> wallet.Transaction 13, // 3: wallet.GetBankCardReply.data:type_name -> wallet.BankCardInfo @@ -1288,13 +1242,13 @@ var file_wallet_proto_depIdxs = []int32{ 11, // 10: wallet.Basic.RmBankCard:input_type -> wallet.RmBankCardRequest 14, // 11: wallet.Basic.ApplyCash:input_type -> wallet.ApplyCashRequest 1, // 12: wallet.Basic.GetWallet:output_type -> wallet.GetWalletReply - 15, // 13: wallet.Basic.SetPayPassword:output_type -> wallet.CodeReply - 15, // 14: wallet.Basic.BindPaymentId:output_type -> wallet.CodeReply + 16, // 13: wallet.Basic.SetPayPassword:output_type -> wallet.StatusReply + 16, // 14: wallet.Basic.BindPaymentId:output_type -> wallet.StatusReply 3, // 15: wallet.Basic.Transactions:output_type -> wallet.TransactionsReply - 15, // 16: wallet.Basic.AddBankCard:output_type -> wallet.CodeReply + 16, // 16: wallet.Basic.AddBankCard:output_type -> wallet.StatusReply 12, // 17: wallet.Basic.GetBankCard:output_type -> wallet.GetBankCardReply - 15, // 18: wallet.Basic.RmBankCard:output_type -> wallet.CodeReply - 15, // 19: wallet.Basic.ApplyCash:output_type -> wallet.CodeReply + 16, // 18: wallet.Basic.RmBankCard:output_type -> wallet.StatusReply + 16, // 19: wallet.Basic.ApplyCash:output_type -> wallet.StatusReply 12, // [12:20] is the sub-list for method output_type 4, // [4:12] is the sub-list for method input_type 4, // [4:4] is the sub-list for extension type_name @@ -1307,13 +1261,14 @@ func file_wallet_proto_init() { if File_wallet_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_wallet_proto_rawDesc), len(file_wallet_proto_rawDesc)), NumEnums: 0, - NumMessages: 17, + NumMessages: 16, NumExtensions: 0, NumServices: 1, }, diff --git a/golnag/wallet/wallet_grpc.pb.go b/golnag/wallet/wallet_grpc.pb.go index 26802b7..6af55bb 100644 --- a/golnag/wallet/wallet_grpc.pb.go +++ b/golnag/wallet/wallet_grpc.pb.go @@ -36,19 +36,19 @@ type BasicClient interface { //获取钱包信息 GetWallet(ctx context.Context, in *GetWalletRequest, opts ...grpc.CallOption) (*GetWalletReply, error) //设置支付密码 - SetPayPassword(ctx context.Context, in *SetPayPasswordRequest, opts ...grpc.CallOption) (*CodeReply, error) + SetPayPassword(ctx context.Context, in *SetPayPasswordRequest, opts ...grpc.CallOption) (*StatusReply, error) //绑定微信或支付宝账户 - BindPaymentId(ctx context.Context, in *BindPaymentIDRequest, opts ...grpc.CallOption) (*CodeReply, error) + BindPaymentId(ctx context.Context, in *BindPaymentIDRequest, opts ...grpc.CallOption) (*StatusReply, error) //查询交易记录 Transactions(ctx context.Context, in *TransactionsRequest, opts ...grpc.CallOption) (*TransactionsReply, error) //添加银行卡 - AddBankCard(ctx context.Context, in *AddBankCardRequest, opts ...grpc.CallOption) (*CodeReply, error) + AddBankCard(ctx context.Context, in *AddBankCardRequest, opts ...grpc.CallOption) (*StatusReply, error) //获取用户银行卡列表 GetBankCard(ctx context.Context, in *FinanceEmpty, opts ...grpc.CallOption) (*GetBankCardReply, error) //删除银行卡 - RmBankCard(ctx context.Context, in *RmBankCardRequest, opts ...grpc.CallOption) (*CodeReply, error) + RmBankCard(ctx context.Context, in *RmBankCardRequest, opts ...grpc.CallOption) (*StatusReply, error) //申请提现 - ApplyCash(ctx context.Context, in *ApplyCashRequest, opts ...grpc.CallOption) (*CodeReply, error) + ApplyCash(ctx context.Context, in *ApplyCashRequest, opts ...grpc.CallOption) (*StatusReply, error) } type basicClient struct { @@ -69,9 +69,9 @@ func (c *basicClient) GetWallet(ctx context.Context, in *GetWalletRequest, opts return out, nil } -func (c *basicClient) SetPayPassword(ctx context.Context, in *SetPayPasswordRequest, opts ...grpc.CallOption) (*CodeReply, error) { +func (c *basicClient) SetPayPassword(ctx context.Context, in *SetPayPasswordRequest, opts ...grpc.CallOption) (*StatusReply, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CodeReply) + out := new(StatusReply) err := c.cc.Invoke(ctx, Basic_SetPayPassword_FullMethodName, in, out, cOpts...) if err != nil { return nil, err @@ -79,9 +79,9 @@ func (c *basicClient) SetPayPassword(ctx context.Context, in *SetPayPasswordRequ return out, nil } -func (c *basicClient) BindPaymentId(ctx context.Context, in *BindPaymentIDRequest, opts ...grpc.CallOption) (*CodeReply, error) { +func (c *basicClient) BindPaymentId(ctx context.Context, in *BindPaymentIDRequest, opts ...grpc.CallOption) (*StatusReply, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CodeReply) + out := new(StatusReply) err := c.cc.Invoke(ctx, Basic_BindPaymentId_FullMethodName, in, out, cOpts...) if err != nil { return nil, err @@ -99,9 +99,9 @@ func (c *basicClient) Transactions(ctx context.Context, in *TransactionsRequest, return out, nil } -func (c *basicClient) AddBankCard(ctx context.Context, in *AddBankCardRequest, opts ...grpc.CallOption) (*CodeReply, error) { +func (c *basicClient) AddBankCard(ctx context.Context, in *AddBankCardRequest, opts ...grpc.CallOption) (*StatusReply, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CodeReply) + out := new(StatusReply) err := c.cc.Invoke(ctx, Basic_AddBankCard_FullMethodName, in, out, cOpts...) if err != nil { return nil, err @@ -119,9 +119,9 @@ func (c *basicClient) GetBankCard(ctx context.Context, in *FinanceEmpty, opts .. return out, nil } -func (c *basicClient) RmBankCard(ctx context.Context, in *RmBankCardRequest, opts ...grpc.CallOption) (*CodeReply, error) { +func (c *basicClient) RmBankCard(ctx context.Context, in *RmBankCardRequest, opts ...grpc.CallOption) (*StatusReply, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CodeReply) + out := new(StatusReply) err := c.cc.Invoke(ctx, Basic_RmBankCard_FullMethodName, in, out, cOpts...) if err != nil { return nil, err @@ -129,9 +129,9 @@ func (c *basicClient) RmBankCard(ctx context.Context, in *RmBankCardRequest, opt return out, nil } -func (c *basicClient) ApplyCash(ctx context.Context, in *ApplyCashRequest, opts ...grpc.CallOption) (*CodeReply, error) { +func (c *basicClient) ApplyCash(ctx context.Context, in *ApplyCashRequest, opts ...grpc.CallOption) (*StatusReply, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CodeReply) + out := new(StatusReply) err := c.cc.Invoke(ctx, Basic_ApplyCash_FullMethodName, in, out, cOpts...) if err != nil { return nil, err @@ -146,19 +146,19 @@ type BasicServer interface { //获取钱包信息 GetWallet(context.Context, *GetWalletRequest) (*GetWalletReply, error) //设置支付密码 - SetPayPassword(context.Context, *SetPayPasswordRequest) (*CodeReply, error) + SetPayPassword(context.Context, *SetPayPasswordRequest) (*StatusReply, error) //绑定微信或支付宝账户 - BindPaymentId(context.Context, *BindPaymentIDRequest) (*CodeReply, error) + BindPaymentId(context.Context, *BindPaymentIDRequest) (*StatusReply, error) //查询交易记录 Transactions(context.Context, *TransactionsRequest) (*TransactionsReply, error) //添加银行卡 - AddBankCard(context.Context, *AddBankCardRequest) (*CodeReply, error) + AddBankCard(context.Context, *AddBankCardRequest) (*StatusReply, error) //获取用户银行卡列表 GetBankCard(context.Context, *FinanceEmpty) (*GetBankCardReply, error) //删除银行卡 - RmBankCard(context.Context, *RmBankCardRequest) (*CodeReply, error) + RmBankCard(context.Context, *RmBankCardRequest) (*StatusReply, error) //申请提现 - ApplyCash(context.Context, *ApplyCashRequest) (*CodeReply, error) + ApplyCash(context.Context, *ApplyCashRequest) (*StatusReply, error) mustEmbedUnimplementedBasicServer() } @@ -172,25 +172,25 @@ type UnimplementedBasicServer struct{} func (UnimplementedBasicServer) GetWallet(context.Context, *GetWalletRequest) (*GetWalletReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetWallet not implemented") } -func (UnimplementedBasicServer) SetPayPassword(context.Context, *SetPayPasswordRequest) (*CodeReply, error) { +func (UnimplementedBasicServer) SetPayPassword(context.Context, *SetPayPasswordRequest) (*StatusReply, error) { return nil, status.Errorf(codes.Unimplemented, "method SetPayPassword not implemented") } -func (UnimplementedBasicServer) BindPaymentId(context.Context, *BindPaymentIDRequest) (*CodeReply, error) { +func (UnimplementedBasicServer) BindPaymentId(context.Context, *BindPaymentIDRequest) (*StatusReply, error) { return nil, status.Errorf(codes.Unimplemented, "method BindPaymentId not implemented") } func (UnimplementedBasicServer) Transactions(context.Context, *TransactionsRequest) (*TransactionsReply, error) { return nil, status.Errorf(codes.Unimplemented, "method Transactions not implemented") } -func (UnimplementedBasicServer) AddBankCard(context.Context, *AddBankCardRequest) (*CodeReply, error) { +func (UnimplementedBasicServer) AddBankCard(context.Context, *AddBankCardRequest) (*StatusReply, error) { return nil, status.Errorf(codes.Unimplemented, "method AddBankCard not implemented") } func (UnimplementedBasicServer) GetBankCard(context.Context, *FinanceEmpty) (*GetBankCardReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetBankCard not implemented") } -func (UnimplementedBasicServer) RmBankCard(context.Context, *RmBankCardRequest) (*CodeReply, error) { +func (UnimplementedBasicServer) RmBankCard(context.Context, *RmBankCardRequest) (*StatusReply, error) { return nil, status.Errorf(codes.Unimplemented, "method RmBankCard not implemented") } -func (UnimplementedBasicServer) ApplyCash(context.Context, *ApplyCashRequest) (*CodeReply, error) { +func (UnimplementedBasicServer) ApplyCash(context.Context, *ApplyCashRequest) (*StatusReply, error) { return nil, status.Errorf(codes.Unimplemented, "method ApplyCash not implemented") } func (UnimplementedBasicServer) mustEmbedUnimplementedBasicServer() {} diff --git a/golnag/wallet/wechat.pb.go b/golnag/wallet/wechat.pb.go index b84343e..8d631a5 100644 --- a/golnag/wallet/wechat.pb.go +++ b/golnag/wallet/wechat.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.9 +// protoc-gen-go v1.36.8 // protoc (unknown) // source: wechat.proto diff --git a/typescript/cloud/index.ts b/typescript/cloud/index.ts index cc0e130..d454d30 100644 --- a/typescript/cloud/index.ts +++ b/typescript/cloud/index.ts @@ -55,8 +55,12 @@ export type CloudBase = { /** 状态回复 */ export type StatusReply = { + /** 状态码 */ + code?: number; + /** 状态说明 */ + message?: string; /** 数据 */ - data?: string; + details?: string; /** 响应时间序列 */ timeseq?: number; }; diff --git a/typescript/cms/index.ts b/typescript/cms/index.ts index 0a9366e..350a733 100644 --- a/typescript/cms/index.ts +++ b/typescript/cms/index.ts @@ -36,18 +36,15 @@ export type SearchRequest = { page_size?: number; }; -/** 标准回执 */ export type StatusReply = { /** 状态码 */ code?: number; - /** 标识码 */ - identity?: string; /** 状态说明 */ message?: string; + /** 数据 */ + details?: string; /** 响应时间序列 */ timeseq?: number; - /** 数量 */ - count?: number; }; /** 空结构请求 */ diff --git a/typescript/feedback/index.ts b/typescript/feedback/index.ts index b01eb91..8cd6243 100644 --- a/typescript/feedback/index.ts +++ b/typescript/feedback/index.ts @@ -164,8 +164,12 @@ export type IdentRequest = { }; export type StatusReply = { + /** 状态码 */ + code?: number; + /** 状态说明 */ + message?: string; /** 数据 */ - data?: string; + details?: string; /** 响应时间序列 */ timeseq?: number; }; diff --git a/typescript/initial/index.ts b/typescript/initial/index.ts index 32890a0..940a131 100644 --- a/typescript/initial/index.ts +++ b/typescript/initial/index.ts @@ -8,11 +8,11 @@ export type Crc = { export type StatusReply = { /** 状态码 */ - status?: number; - /** 标识码 */ - identity?: string; + code?: number; /** 状态说明 */ message?: string; + /** 数据 */ + details?: string; /** 响应时间序列 */ timeseq?: number; }; diff --git a/typescript/passport/index.ts b/typescript/passport/index.ts index fa9459c..3c1ef8d 100644 --- a/typescript/passport/index.ts +++ b/typescript/passport/index.ts @@ -29,8 +29,12 @@ export type SearchRequest = { }; export type StatusReply = { + /** 状态码 */ + code?: number; + /** 状态说明 */ + message?: string; /** 数据 */ - data?: string; + details?: string; /** 响应时间序列 */ timeseq?: number; }; diff --git a/typescript/wallet/index.ts b/typescript/wallet/index.ts index 8e53f4e..e9c6716 100644 --- a/typescript/wallet/index.ts +++ b/typescript/wallet/index.ts @@ -112,8 +112,12 @@ export type SearchRequest = { }; export type StatusReply = { + /** 状态码 */ + code?: number; + /** 状态说明 */ + message?: string; /** 数据 */ - data?: string; + details?: string; /** 响应时间序列 */ timeseq?: number; }; @@ -392,11 +396,6 @@ export type ApplyCashRequest = { remark?: string; }; -export type CodeReply = { - /** 状态码 */ - code?: number; -}; - export interface Basic { }