189 lines
6.2 KiB
Dart
189 lines
6.2 KiB
Dart
|
|
// This is a generated file - do not edit.
|
|||
|
|
//
|
|||
|
|
// Generated from info.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 'info.pb.dart' as $0;
|
|||
|
|
|
|||
|
|
export 'info.pb.dart';
|
|||
|
|
|
|||
|
|
/// Passport(会员通行证)模块-数据
|
|||
|
|
/// *此模块需要Token验证
|
|||
|
|
@$pb.GrpcServiceName('passport.Info')
|
|||
|
|
class InfoClient 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 = [
|
|||
|
|
'',
|
|||
|
|
];
|
|||
|
|
|
|||
|
|
InfoClient(super.channel, {super.options, super.interceptors});
|
|||
|
|
|
|||
|
|
/// 绑定资料
|
|||
|
|
$grpc.ResponseFuture<$1.StatusReply> bind(
|
|||
|
|
$0.BindRequest request, {
|
|||
|
|
$grpc.CallOptions? options,
|
|||
|
|
}) {
|
|||
|
|
return $createUnaryCall(_$bind, request, options: options);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// 获取会员的所有信息数据
|
|||
|
|
$grpc.ResponseFuture<$0.GetDataReply> getData(
|
|||
|
|
$1.Empty request, {
|
|||
|
|
$grpc.CallOptions? options,
|
|||
|
|
}) {
|
|||
|
|
return $createUnaryCall(_$getData, request, options: options);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// 更新会员的信息数据
|
|||
|
|
/// 字段值为空或是0,将不更新此数据
|
|||
|
|
$grpc.ResponseFuture<$1.StatusReply> setData(
|
|||
|
|
$0.SetDataRequest request, {
|
|||
|
|
$grpc.CallOptions? options,
|
|||
|
|
}) {
|
|||
|
|
return $createUnaryCall(_$setData, request, options: options);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// 更新会员的密码
|
|||
|
|
$grpc.ResponseFuture<$1.StatusReply> setPassword(
|
|||
|
|
$0.SetPasswordRequest request, {
|
|||
|
|
$grpc.CallOptions? options,
|
|||
|
|
}) {
|
|||
|
|
return $createUnaryCall(_$setPassword, request, options: options);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// 获取会员的相关统计数据
|
|||
|
|
$grpc.ResponseFuture<$0.StatisticsReply> statistics(
|
|||
|
|
$0.StatisticsRequest request, {
|
|||
|
|
$grpc.CallOptions? options,
|
|||
|
|
}) {
|
|||
|
|
return $createUnaryCall(_$statistics, request, options: options);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// method descriptors
|
|||
|
|
|
|||
|
|
static final _$bind = $grpc.ClientMethod<$0.BindRequest, $1.StatusReply>(
|
|||
|
|
'/passport.Info/Bind',
|
|||
|
|
($0.BindRequest value) => value.writeToBuffer(),
|
|||
|
|
$1.StatusReply.fromBuffer);
|
|||
|
|
static final _$getData = $grpc.ClientMethod<$1.Empty, $0.GetDataReply>(
|
|||
|
|
'/passport.Info/GetData',
|
|||
|
|
($1.Empty value) => value.writeToBuffer(),
|
|||
|
|
$0.GetDataReply.fromBuffer);
|
|||
|
|
static final _$setData =
|
|||
|
|
$grpc.ClientMethod<$0.SetDataRequest, $1.StatusReply>(
|
|||
|
|
'/passport.Info/SetData',
|
|||
|
|
($0.SetDataRequest value) => value.writeToBuffer(),
|
|||
|
|
$1.StatusReply.fromBuffer);
|
|||
|
|
static final _$setPassword =
|
|||
|
|
$grpc.ClientMethod<$0.SetPasswordRequest, $1.StatusReply>(
|
|||
|
|
'/passport.Info/SetPassword',
|
|||
|
|
($0.SetPasswordRequest value) => value.writeToBuffer(),
|
|||
|
|
$1.StatusReply.fromBuffer);
|
|||
|
|
static final _$statistics =
|
|||
|
|
$grpc.ClientMethod<$0.StatisticsRequest, $0.StatisticsReply>(
|
|||
|
|
'/passport.Info/Statistics',
|
|||
|
|
($0.StatisticsRequest value) => value.writeToBuffer(),
|
|||
|
|
$0.StatisticsReply.fromBuffer);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
@$pb.GrpcServiceName('passport.Info')
|
|||
|
|
abstract class InfoServiceBase extends $grpc.Service {
|
|||
|
|
$core.String get $name => 'passport.Info';
|
|||
|
|
|
|||
|
|
InfoServiceBase() {
|
|||
|
|
$addMethod($grpc.ServiceMethod<$0.BindRequest, $1.StatusReply>(
|
|||
|
|
'Bind',
|
|||
|
|
bind_Pre,
|
|||
|
|
false,
|
|||
|
|
false,
|
|||
|
|
($core.List<$core.int> value) => $0.BindRequest.fromBuffer(value),
|
|||
|
|
($1.StatusReply value) => value.writeToBuffer()));
|
|||
|
|
$addMethod($grpc.ServiceMethod<$1.Empty, $0.GetDataReply>(
|
|||
|
|
'GetData',
|
|||
|
|
getData_Pre,
|
|||
|
|
false,
|
|||
|
|
false,
|
|||
|
|
($core.List<$core.int> value) => $1.Empty.fromBuffer(value),
|
|||
|
|
($0.GetDataReply value) => value.writeToBuffer()));
|
|||
|
|
$addMethod($grpc.ServiceMethod<$0.SetDataRequest, $1.StatusReply>(
|
|||
|
|
'SetData',
|
|||
|
|
setData_Pre,
|
|||
|
|
false,
|
|||
|
|
false,
|
|||
|
|
($core.List<$core.int> value) => $0.SetDataRequest.fromBuffer(value),
|
|||
|
|
($1.StatusReply value) => value.writeToBuffer()));
|
|||
|
|
$addMethod($grpc.ServiceMethod<$0.SetPasswordRequest, $1.StatusReply>(
|
|||
|
|
'SetPassword',
|
|||
|
|
setPassword_Pre,
|
|||
|
|
false,
|
|||
|
|
false,
|
|||
|
|
($core.List<$core.int> value) =>
|
|||
|
|
$0.SetPasswordRequest.fromBuffer(value),
|
|||
|
|
($1.StatusReply value) => value.writeToBuffer()));
|
|||
|
|
$addMethod($grpc.ServiceMethod<$0.StatisticsRequest, $0.StatisticsReply>(
|
|||
|
|
'Statistics',
|
|||
|
|
statistics_Pre,
|
|||
|
|
false,
|
|||
|
|
false,
|
|||
|
|
($core.List<$core.int> value) => $0.StatisticsRequest.fromBuffer(value),
|
|||
|
|
($0.StatisticsReply value) => value.writeToBuffer()));
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
$async.Future<$1.StatusReply> bind_Pre(
|
|||
|
|
$grpc.ServiceCall $call, $async.Future<$0.BindRequest> $request) async {
|
|||
|
|
return bind($call, await $request);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
$async.Future<$1.StatusReply> bind(
|
|||
|
|
$grpc.ServiceCall call, $0.BindRequest request);
|
|||
|
|
|
|||
|
|
$async.Future<$0.GetDataReply> getData_Pre(
|
|||
|
|
$grpc.ServiceCall $call, $async.Future<$1.Empty> $request) async {
|
|||
|
|
return getData($call, await $request);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
$async.Future<$0.GetDataReply> getData(
|
|||
|
|
$grpc.ServiceCall call, $1.Empty request);
|
|||
|
|
|
|||
|
|
$async.Future<$1.StatusReply> setData_Pre($grpc.ServiceCall $call,
|
|||
|
|
$async.Future<$0.SetDataRequest> $request) async {
|
|||
|
|
return setData($call, await $request);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
$async.Future<$1.StatusReply> setData(
|
|||
|
|
$grpc.ServiceCall call, $0.SetDataRequest request);
|
|||
|
|
|
|||
|
|
$async.Future<$1.StatusReply> setPassword_Pre($grpc.ServiceCall $call,
|
|||
|
|
$async.Future<$0.SetPasswordRequest> $request) async {
|
|||
|
|
return setPassword($call, await $request);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
$async.Future<$1.StatusReply> setPassword(
|
|||
|
|
$grpc.ServiceCall call, $0.SetPasswordRequest request);
|
|||
|
|
|
|||
|
|
$async.Future<$0.StatisticsReply> statistics_Pre($grpc.ServiceCall $call,
|
|||
|
|
$async.Future<$0.StatisticsRequest> $request) async {
|
|||
|
|
return statistics($call, await $request);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
$async.Future<$0.StatisticsReply> statistics(
|
|||
|
|
$grpc.ServiceCall call, $0.StatisticsRequest request);
|
|||
|
|
}
|