214 lines
		
	
	
		
			7.1 KiB
		
	
	
	
		
			Dart
		
	
	
	
			
		
		
	
	
			214 lines
		
	
	
		
			7.1 KiB
		
	
	
	
		
			Dart
		
	
	
	
| // This is a generated file - do not edit.
 | ||
| //
 | ||
| // Generated from account.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 'account.pb.dart' as $1;
 | ||
| import 'blocks.pb.dart' as $0;
 | ||
| 
 | ||
| export 'account.pb.dart';
 | ||
| 
 | ||
| /// Passport(会员通行证)模块-数据
 | ||
| @$pb.GrpcServiceName('passport.Account')
 | ||
| class AccountClient 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 = [
 | ||
|     '',
 | ||
|   ];
 | ||
| 
 | ||
|   AccountClient(super.channel, {super.options, super.interceptors});
 | ||
| 
 | ||
|   /// 通过会员所有信息
 | ||
|   $grpc.ResponseFuture<$1.GetFullReply> get(
 | ||
|     $0.Empty request, {
 | ||
|     $grpc.CallOptions? options,
 | ||
|   }) {
 | ||
|     return $createUnaryCall(_$get, request, options: options);
 | ||
|   }
 | ||
| 
 | ||
|   /// 更新会员的信息数据,字段值为空或是0,将不更新此数据
 | ||
|   $grpc.ResponseFuture<$0.StatusReply> setData(
 | ||
|     $1.SetDataRequest request, {
 | ||
|     $grpc.CallOptions? options,
 | ||
|   }) {
 | ||
|     return $createUnaryCall(_$setData, request, options: options);
 | ||
|   }
 | ||
| 
 | ||
|   /// 更新会员的密码
 | ||
|   $grpc.ResponseFuture<$0.StatusReply> setPassword(
 | ||
|     $1.SetPasswordRequest request, {
 | ||
|     $grpc.CallOptions? options,
 | ||
|   }) {
 | ||
|     return $createUnaryCall(_$setPassword, request, options: options);
 | ||
|   }
 | ||
| 
 | ||
|   /// 新增标签
 | ||
|   $grpc.ResponseFuture<$0.StatusReply> tagCreate(
 | ||
|     $1.TagItem request, {
 | ||
|     $grpc.CallOptions? options,
 | ||
|   }) {
 | ||
|     return $createUnaryCall(_$tagCreate, request, options: options);
 | ||
|   }
 | ||
| 
 | ||
|   /// 删除标签
 | ||
|   $grpc.ResponseFuture<$0.StatusReply> tagRemove(
 | ||
|     $0.IdentRequest request, {
 | ||
|     $grpc.CallOptions? options,
 | ||
|   }) {
 | ||
|     return $createUnaryCall(_$tagRemove, request, options: options);
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取会员的相关统计数据
 | ||
|   $grpc.ResponseFuture<$1.StatisticsReply> statistics(
 | ||
|     $1.StatisticsRequest request, {
 | ||
|     $grpc.CallOptions? options,
 | ||
|   }) {
 | ||
|     return $createUnaryCall(_$statistics, request, options: options);
 | ||
|   }
 | ||
| 
 | ||
|   // method descriptors
 | ||
| 
 | ||
|   static final _$get = $grpc.ClientMethod<$0.Empty, $1.GetFullReply>(
 | ||
|       '/passport.Account/Get',
 | ||
|       ($0.Empty value) => value.writeToBuffer(),
 | ||
|       $1.GetFullReply.fromBuffer);
 | ||
|   static final _$setData =
 | ||
|       $grpc.ClientMethod<$1.SetDataRequest, $0.StatusReply>(
 | ||
|           '/passport.Account/SetData',
 | ||
|           ($1.SetDataRequest value) => value.writeToBuffer(),
 | ||
|           $0.StatusReply.fromBuffer);
 | ||
|   static final _$setPassword =
 | ||
|       $grpc.ClientMethod<$1.SetPasswordRequest, $0.StatusReply>(
 | ||
|           '/passport.Account/SetPassword',
 | ||
|           ($1.SetPasswordRequest value) => value.writeToBuffer(),
 | ||
|           $0.StatusReply.fromBuffer);
 | ||
|   static final _$tagCreate = $grpc.ClientMethod<$1.TagItem, $0.StatusReply>(
 | ||
|       '/passport.Account/TagCreate',
 | ||
|       ($1.TagItem value) => value.writeToBuffer(),
 | ||
|       $0.StatusReply.fromBuffer);
 | ||
|   static final _$tagRemove =
 | ||
|       $grpc.ClientMethod<$0.IdentRequest, $0.StatusReply>(
 | ||
|           '/passport.Account/TagRemove',
 | ||
|           ($0.IdentRequest value) => value.writeToBuffer(),
 | ||
|           $0.StatusReply.fromBuffer);
 | ||
|   static final _$statistics =
 | ||
|       $grpc.ClientMethod<$1.StatisticsRequest, $1.StatisticsReply>(
 | ||
|           '/passport.Account/Statistics',
 | ||
|           ($1.StatisticsRequest value) => value.writeToBuffer(),
 | ||
|           $1.StatisticsReply.fromBuffer);
 | ||
| }
 | ||
| 
 | ||
| @$pb.GrpcServiceName('passport.Account')
 | ||
| abstract class AccountServiceBase extends $grpc.Service {
 | ||
|   $core.String get $name => 'passport.Account';
 | ||
| 
 | ||
|   AccountServiceBase() {
 | ||
|     $addMethod($grpc.ServiceMethod<$0.Empty, $1.GetFullReply>(
 | ||
|         'Get',
 | ||
|         get_Pre,
 | ||
|         false,
 | ||
|         false,
 | ||
|         ($core.List<$core.int> value) => $0.Empty.fromBuffer(value),
 | ||
|         ($1.GetFullReply value) => value.writeToBuffer()));
 | ||
|     $addMethod($grpc.ServiceMethod<$1.SetDataRequest, $0.StatusReply>(
 | ||
|         'SetData',
 | ||
|         setData_Pre,
 | ||
|         false,
 | ||
|         false,
 | ||
|         ($core.List<$core.int> value) => $1.SetDataRequest.fromBuffer(value),
 | ||
|         ($0.StatusReply value) => value.writeToBuffer()));
 | ||
|     $addMethod($grpc.ServiceMethod<$1.SetPasswordRequest, $0.StatusReply>(
 | ||
|         'SetPassword',
 | ||
|         setPassword_Pre,
 | ||
|         false,
 | ||
|         false,
 | ||
|         ($core.List<$core.int> value) =>
 | ||
|             $1.SetPasswordRequest.fromBuffer(value),
 | ||
|         ($0.StatusReply value) => value.writeToBuffer()));
 | ||
|     $addMethod($grpc.ServiceMethod<$1.TagItem, $0.StatusReply>(
 | ||
|         'TagCreate',
 | ||
|         tagCreate_Pre,
 | ||
|         false,
 | ||
|         false,
 | ||
|         ($core.List<$core.int> value) => $1.TagItem.fromBuffer(value),
 | ||
|         ($0.StatusReply value) => value.writeToBuffer()));
 | ||
|     $addMethod($grpc.ServiceMethod<$0.IdentRequest, $0.StatusReply>(
 | ||
|         'TagRemove',
 | ||
|         tagRemove_Pre,
 | ||
|         false,
 | ||
|         false,
 | ||
|         ($core.List<$core.int> value) => $0.IdentRequest.fromBuffer(value),
 | ||
|         ($0.StatusReply value) => value.writeToBuffer()));
 | ||
|     $addMethod($grpc.ServiceMethod<$1.StatisticsRequest, $1.StatisticsReply>(
 | ||
|         'Statistics',
 | ||
|         statistics_Pre,
 | ||
|         false,
 | ||
|         false,
 | ||
|         ($core.List<$core.int> value) => $1.StatisticsRequest.fromBuffer(value),
 | ||
|         ($1.StatisticsReply value) => value.writeToBuffer()));
 | ||
|   }
 | ||
| 
 | ||
|   $async.Future<$1.GetFullReply> get_Pre(
 | ||
|       $grpc.ServiceCall $call, $async.Future<$0.Empty> $request) async {
 | ||
|     return get($call, await $request);
 | ||
|   }
 | ||
| 
 | ||
|   $async.Future<$1.GetFullReply> get($grpc.ServiceCall call, $0.Empty request);
 | ||
| 
 | ||
|   $async.Future<$0.StatusReply> setData_Pre($grpc.ServiceCall $call,
 | ||
|       $async.Future<$1.SetDataRequest> $request) async {
 | ||
|     return setData($call, await $request);
 | ||
|   }
 | ||
| 
 | ||
|   $async.Future<$0.StatusReply> setData(
 | ||
|       $grpc.ServiceCall call, $1.SetDataRequest request);
 | ||
| 
 | ||
|   $async.Future<$0.StatusReply> setPassword_Pre($grpc.ServiceCall $call,
 | ||
|       $async.Future<$1.SetPasswordRequest> $request) async {
 | ||
|     return setPassword($call, await $request);
 | ||
|   }
 | ||
| 
 | ||
|   $async.Future<$0.StatusReply> setPassword(
 | ||
|       $grpc.ServiceCall call, $1.SetPasswordRequest request);
 | ||
| 
 | ||
|   $async.Future<$0.StatusReply> tagCreate_Pre(
 | ||
|       $grpc.ServiceCall $call, $async.Future<$1.TagItem> $request) async {
 | ||
|     return tagCreate($call, await $request);
 | ||
|   }
 | ||
| 
 | ||
|   $async.Future<$0.StatusReply> tagCreate(
 | ||
|       $grpc.ServiceCall call, $1.TagItem request);
 | ||
| 
 | ||
|   $async.Future<$0.StatusReply> tagRemove_Pre(
 | ||
|       $grpc.ServiceCall $call, $async.Future<$0.IdentRequest> $request) async {
 | ||
|     return tagRemove($call, await $request);
 | ||
|   }
 | ||
| 
 | ||
|   $async.Future<$0.StatusReply> tagRemove(
 | ||
|       $grpc.ServiceCall call, $0.IdentRequest request);
 | ||
| 
 | ||
|   $async.Future<$1.StatisticsReply> statistics_Pre($grpc.ServiceCall $call,
 | ||
|       $async.Future<$1.StatisticsRequest> $request) async {
 | ||
|     return statistics($call, await $request);
 | ||
|   }
 | ||
| 
 | ||
|   $async.Future<$1.StatisticsReply> statistics(
 | ||
|       $grpc.ServiceCall call, $1.StatisticsRequest request);
 | ||
| }
 |