276 lines
9.6 KiB
Dart
276 lines
9.6 KiB
Dart
// This is a generated file - do not edit.
|
|
//
|
|
// Generated from wallet.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:async' as $async;
|
|
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';
|
|
|
|
@$pb.GrpcServiceName('wallet.Basic')
|
|
class BasicClient extends $grpc.Client {
|
|
/// The hostname for this service.
|
|
static const $core.String defaultHost = '';
|
|
|
|
/// OAuth scopes needed for the client.
|
|
static const $core.List<$core.String> oauthScopes = [
|
|
'',
|
|
];
|
|
|
|
BasicClient(super.channel, {super.options, super.interceptors});
|
|
|
|
/// 获取钱包信息
|
|
$grpc.ResponseFuture<$0.GetWalletReply> getWallet(
|
|
$0.GetWalletRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$getWallet, request, options: options);
|
|
}
|
|
|
|
/// 设置支付密码
|
|
$grpc.ResponseFuture<$1.StatusReply> setPayPassword(
|
|
$0.SetPayPasswordRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$setPayPassword, request, options: options);
|
|
}
|
|
|
|
/// 绑定微信或支付宝账户
|
|
$grpc.ResponseFuture<$1.StatusReply> bindPaymentId(
|
|
$0.BindPaymentIDRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$bindPaymentId, request, options: options);
|
|
}
|
|
|
|
/// 查询交易记录
|
|
$grpc.ResponseFuture<$0.TransactionsReply> transactions(
|
|
$0.TransactionsRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$transactions, request, options: options);
|
|
}
|
|
|
|
/// 添加银行卡
|
|
$grpc.ResponseFuture<$1.StatusReply> addBankCard(
|
|
$0.AddBankCardRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$addBankCard, request, options: options);
|
|
}
|
|
|
|
/// 获取用户银行卡列表
|
|
$grpc.ResponseFuture<$0.GetBankCardReply> getBankCard(
|
|
$0.FinanceEmpty request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$getBankCard, request, options: options);
|
|
}
|
|
|
|
/// 删除银行卡
|
|
$grpc.ResponseFuture<$1.StatusReply> rmBankCard(
|
|
$0.RmBankCardRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$rmBankCard, request, options: options);
|
|
}
|
|
|
|
/// 申请提现
|
|
$grpc.ResponseFuture<$1.StatusReply> applyCash(
|
|
$0.ApplyCashRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$applyCash, request, options: options);
|
|
}
|
|
|
|
// method descriptors
|
|
|
|
static final _$getWallet =
|
|
$grpc.ClientMethod<$0.GetWalletRequest, $0.GetWalletReply>(
|
|
'/wallet.Basic/GetWallet',
|
|
($0.GetWalletRequest value) => value.writeToBuffer(),
|
|
$0.GetWalletReply.fromBuffer);
|
|
static final _$setPayPassword =
|
|
$grpc.ClientMethod<$0.SetPayPasswordRequest, $1.StatusReply>(
|
|
'/wallet.Basic/SetPayPassword',
|
|
($0.SetPayPasswordRequest value) => value.writeToBuffer(),
|
|
$1.StatusReply.fromBuffer);
|
|
static final _$bindPaymentId =
|
|
$grpc.ClientMethod<$0.BindPaymentIDRequest, $1.StatusReply>(
|
|
'/wallet.Basic/BindPaymentId',
|
|
($0.BindPaymentIDRequest value) => value.writeToBuffer(),
|
|
$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, $1.StatusReply>(
|
|
'/wallet.Basic/AddBankCard',
|
|
($0.AddBankCardRequest value) => value.writeToBuffer(),
|
|
$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, $1.StatusReply>(
|
|
'/wallet.Basic/RmBankCard',
|
|
($0.RmBankCardRequest value) => value.writeToBuffer(),
|
|
$1.StatusReply.fromBuffer);
|
|
static final _$applyCash =
|
|
$grpc.ClientMethod<$0.ApplyCashRequest, $1.StatusReply>(
|
|
'/wallet.Basic/ApplyCash',
|
|
($0.ApplyCashRequest value) => value.writeToBuffer(),
|
|
$1.StatusReply.fromBuffer);
|
|
}
|
|
|
|
@$pb.GrpcServiceName('wallet.Basic')
|
|
abstract class BasicServiceBase extends $grpc.Service {
|
|
$core.String get $name => 'wallet.Basic';
|
|
|
|
BasicServiceBase() {
|
|
$addMethod($grpc.ServiceMethod<$0.GetWalletRequest, $0.GetWalletReply>(
|
|
'GetWallet',
|
|
getWallet_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.GetWalletRequest.fromBuffer(value),
|
|
($0.GetWalletReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.SetPayPasswordRequest, $1.StatusReply>(
|
|
'SetPayPassword',
|
|
setPayPassword_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) =>
|
|
$0.SetPayPasswordRequest.fromBuffer(value),
|
|
($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),
|
|
($1.StatusReply value) => value.writeToBuffer()));
|
|
$addMethod(
|
|
$grpc.ServiceMethod<$0.TransactionsRequest, $0.TransactionsReply>(
|
|
'Transactions',
|
|
transactions_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) =>
|
|
$0.TransactionsRequest.fromBuffer(value),
|
|
($0.TransactionsReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.AddBankCardRequest, $1.StatusReply>(
|
|
'AddBankCard',
|
|
addBankCard_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) =>
|
|
$0.AddBankCardRequest.fromBuffer(value),
|
|
($1.StatusReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.FinanceEmpty, $0.GetBankCardReply>(
|
|
'GetBankCard',
|
|
getBankCard_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.FinanceEmpty.fromBuffer(value),
|
|
($0.GetBankCardReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.RmBankCardRequest, $1.StatusReply>(
|
|
'RmBankCard',
|
|
rmBankCard_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.RmBankCardRequest.fromBuffer(value),
|
|
($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),
|
|
($1.StatusReply value) => value.writeToBuffer()));
|
|
}
|
|
|
|
$async.Future<$0.GetWalletReply> getWallet_Pre($grpc.ServiceCall $call,
|
|
$async.Future<$0.GetWalletRequest> $request) async {
|
|
return getWallet($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.GetWalletReply> getWallet(
|
|
$grpc.ServiceCall call, $0.GetWalletRequest request);
|
|
|
|
$async.Future<$1.StatusReply> setPayPassword_Pre($grpc.ServiceCall $call,
|
|
$async.Future<$0.SetPayPasswordRequest> $request) async {
|
|
return setPayPassword($call, await $request);
|
|
}
|
|
|
|
$async.Future<$1.StatusReply> setPayPassword(
|
|
$grpc.ServiceCall call, $0.SetPayPasswordRequest request);
|
|
|
|
$async.Future<$1.StatusReply> bindPaymentId_Pre($grpc.ServiceCall $call,
|
|
$async.Future<$0.BindPaymentIDRequest> $request) async {
|
|
return bindPaymentId($call, await $request);
|
|
}
|
|
|
|
$async.Future<$1.StatusReply> bindPaymentId(
|
|
$grpc.ServiceCall call, $0.BindPaymentIDRequest request);
|
|
|
|
$async.Future<$0.TransactionsReply> transactions_Pre($grpc.ServiceCall $call,
|
|
$async.Future<$0.TransactionsRequest> $request) async {
|
|
return transactions($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.TransactionsReply> transactions(
|
|
$grpc.ServiceCall call, $0.TransactionsRequest request);
|
|
|
|
$async.Future<$1.StatusReply> addBankCard_Pre($grpc.ServiceCall $call,
|
|
$async.Future<$0.AddBankCardRequest> $request) async {
|
|
return addBankCard($call, await $request);
|
|
}
|
|
|
|
$async.Future<$1.StatusReply> addBankCard(
|
|
$grpc.ServiceCall call, $0.AddBankCardRequest request);
|
|
|
|
$async.Future<$0.GetBankCardReply> getBankCard_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$0.FinanceEmpty> $request) async {
|
|
return getBankCard($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.GetBankCardReply> getBankCard(
|
|
$grpc.ServiceCall call, $0.FinanceEmpty request);
|
|
|
|
$async.Future<$1.StatusReply> rmBankCard_Pre($grpc.ServiceCall $call,
|
|
$async.Future<$0.RmBankCardRequest> $request) async {
|
|
return rmBankCard($call, await $request);
|
|
}
|
|
|
|
$async.Future<$1.StatusReply> rmBankCard(
|
|
$grpc.ServiceCall call, $0.RmBankCardRequest request);
|
|
|
|
$async.Future<$1.StatusReply> applyCash_Pre($grpc.ServiceCall $call,
|
|
$async.Future<$0.ApplyCashRequest> $request) async {
|
|
return applyCash($call, await $request);
|
|
}
|
|
|
|
$async.Future<$1.StatusReply> applyCash(
|
|
$grpc.ServiceCall call, $0.ApplyCashRequest request);
|
|
}
|