mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: dynamic: use dynRed
*to get full count Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
12234
lib/grpc/app/dynamic/v1/dynamic.pb.dart
Normal file
12234
lib/grpc/app/dynamic/v1/dynamic.pb.dart
Normal file
File diff suppressed because it is too large
Load Diff
178
lib/grpc/app/dynamic/v1/dynamic.pbenum.dart
Normal file
178
lib/grpc/app/dynamic/v1/dynamic.pbenum.dart
Normal file
@@ -0,0 +1,178 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: bilibili/app/dynamic/v1/dynamic.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
class BgType extends $pb.ProtobufEnum {
|
||||
static const BgType bg_type_default = BgType._(0, _omitEnumNames ? '' : 'bg_type_default');
|
||||
static const BgType bg_type_face = BgType._(1, _omitEnumNames ? '' : 'bg_type_face');
|
||||
|
||||
static const $core.List<BgType> values = <BgType> [
|
||||
bg_type_default,
|
||||
bg_type_face,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, BgType> _byValue = $pb.ProtobufEnum.initByValue(values);
|
||||
static BgType? valueOf($core.int value) => _byValue[value];
|
||||
|
||||
const BgType._($core.int v, $core.String n) : super(v, n);
|
||||
}
|
||||
|
||||
class CornerType extends $pb.ProtobufEnum {
|
||||
static const CornerType corner_type_none = CornerType._(0, _omitEnumNames ? '' : 'corner_type_none');
|
||||
static const CornerType corner_type_text = CornerType._(1, _omitEnumNames ? '' : 'corner_type_text');
|
||||
static const CornerType corner_type_animation = CornerType._(2, _omitEnumNames ? '' : 'corner_type_animation');
|
||||
|
||||
static const $core.List<CornerType> values = <CornerType> [
|
||||
corner_type_none,
|
||||
corner_type_text,
|
||||
corner_type_animation,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, CornerType> _byValue = $pb.ProtobufEnum.initByValue(values);
|
||||
static CornerType? valueOf($core.int value) => _byValue[value];
|
||||
|
||||
const CornerType._($core.int v, $core.String n) : super(v, n);
|
||||
}
|
||||
|
||||
/// 折叠分类
|
||||
class FoldType extends $pb.ProtobufEnum {
|
||||
static const FoldType FoldTypeZero = FoldType._(0, _omitEnumNames ? '' : 'FoldTypeZero');
|
||||
static const FoldType FoldTypePublish = FoldType._(1, _omitEnumNames ? '' : 'FoldTypePublish');
|
||||
static const FoldType FoldTypeFrequent = FoldType._(2, _omitEnumNames ? '' : 'FoldTypeFrequent');
|
||||
static const FoldType FoldTypeUnite = FoldType._(3, _omitEnumNames ? '' : 'FoldTypeUnite');
|
||||
static const FoldType FoldTypeLimit = FoldType._(4, _omitEnumNames ? '' : 'FoldTypeLimit');
|
||||
|
||||
static const $core.List<FoldType> values = <FoldType> [
|
||||
FoldTypeZero,
|
||||
FoldTypePublish,
|
||||
FoldTypeFrequent,
|
||||
FoldTypeUnite,
|
||||
FoldTypeLimit,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, FoldType> _byValue = $pb.ProtobufEnum.initByValue(values);
|
||||
static FoldType? valueOf($core.int value) => _byValue[value];
|
||||
|
||||
const FoldType._($core.int v, $core.String n) : super(v, n);
|
||||
}
|
||||
|
||||
/// 播放器类型
|
||||
class MediaType extends $pb.ProtobufEnum {
|
||||
static const MediaType MediaTypeNone = MediaType._(0, _omitEnumNames ? '' : 'MediaTypeNone');
|
||||
static const MediaType MediaTypeUGC = MediaType._(1, _omitEnumNames ? '' : 'MediaTypeUGC');
|
||||
static const MediaType MediaTypePGC = MediaType._(2, _omitEnumNames ? '' : 'MediaTypePGC');
|
||||
static const MediaType MediaTypeLive = MediaType._(3, _omitEnumNames ? '' : 'MediaTypeLive');
|
||||
static const MediaType MediaTypeVCS = MediaType._(4, _omitEnumNames ? '' : 'MediaTypeVCS');
|
||||
|
||||
static const $core.List<MediaType> values = <MediaType> [
|
||||
MediaTypeNone,
|
||||
MediaTypeUGC,
|
||||
MediaTypePGC,
|
||||
MediaTypeLive,
|
||||
MediaTypeVCS,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, MediaType> _byValue = $pb.ProtobufEnum.initByValue(values);
|
||||
static MediaType? valueOf($core.int value) => _byValue[value];
|
||||
|
||||
const MediaType._($core.int v, $core.String n) : super(v, n);
|
||||
}
|
||||
|
||||
/// 关注状态
|
||||
class RelationStatus extends $pb.ProtobufEnum {
|
||||
static const RelationStatus relation_status_none = RelationStatus._(0, _omitEnumNames ? '' : 'relation_status_none');
|
||||
static const RelationStatus relation_status_nofollow = RelationStatus._(1, _omitEnumNames ? '' : 'relation_status_nofollow');
|
||||
static const RelationStatus relation_status_follow = RelationStatus._(2, _omitEnumNames ? '' : 'relation_status_follow');
|
||||
static const RelationStatus relation_status_followed = RelationStatus._(3, _omitEnumNames ? '' : 'relation_status_followed');
|
||||
static const RelationStatus relation_status_mutual_concern = RelationStatus._(4, _omitEnumNames ? '' : 'relation_status_mutual_concern');
|
||||
static const RelationStatus relation_status_special = RelationStatus._(5, _omitEnumNames ? '' : 'relation_status_special');
|
||||
|
||||
static const $core.List<RelationStatus> values = <RelationStatus> [
|
||||
relation_status_none,
|
||||
relation_status_nofollow,
|
||||
relation_status_follow,
|
||||
relation_status_followed,
|
||||
relation_status_mutual_concern,
|
||||
relation_status_special,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, RelationStatus> _byValue = $pb.ProtobufEnum.initByValue(values);
|
||||
static RelationStatus? valueOf($core.int value) => _byValue[value];
|
||||
|
||||
const RelationStatus._($core.int v, $core.String n) : super(v, n);
|
||||
}
|
||||
|
||||
class StyleType extends $pb.ProtobufEnum {
|
||||
static const StyleType STYLE_TYPE_NONE = StyleType._(0, _omitEnumNames ? '' : 'STYLE_TYPE_NONE');
|
||||
static const StyleType STYLE_TYPE_LIVE = StyleType._(1, _omitEnumNames ? '' : 'STYLE_TYPE_LIVE');
|
||||
static const StyleType STYLE_TYPE_DYN_UP = StyleType._(2, _omitEnumNames ? '' : 'STYLE_TYPE_DYN_UP');
|
||||
|
||||
static const $core.List<StyleType> values = <StyleType> [
|
||||
STYLE_TYPE_NONE,
|
||||
STYLE_TYPE_LIVE,
|
||||
STYLE_TYPE_DYN_UP,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, StyleType> _byValue = $pb.ProtobufEnum.initByValue(values);
|
||||
static StyleType? valueOf($core.int value) => _byValue[value];
|
||||
|
||||
const StyleType._($core.int v, $core.String n) : super(v, n);
|
||||
}
|
||||
|
||||
/// 入口联播页类型
|
||||
class SVideoType extends $pb.ProtobufEnum {
|
||||
static const SVideoType TypeNone = SVideoType._(0, _omitEnumNames ? '' : 'TypeNone');
|
||||
static const SVideoType TypeDynamic = SVideoType._(1, _omitEnumNames ? '' : 'TypeDynamic');
|
||||
static const SVideoType TypePopularIndex = SVideoType._(2, _omitEnumNames ? '' : 'TypePopularIndex');
|
||||
static const SVideoType TypePopularHotword = SVideoType._(3, _omitEnumNames ? '' : 'TypePopularHotword');
|
||||
|
||||
static const $core.List<SVideoType> values = <SVideoType> [
|
||||
TypeNone,
|
||||
TypeDynamic,
|
||||
TypePopularIndex,
|
||||
TypePopularHotword,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, SVideoType> _byValue = $pb.ProtobufEnum.initByValue(values);
|
||||
static SVideoType? valueOf($core.int value) => _byValue[value];
|
||||
|
||||
const SVideoType._($core.int v, $core.String n) : super(v, n);
|
||||
}
|
||||
|
||||
/// 番剧类型
|
||||
class VideoSubType extends $pb.ProtobufEnum {
|
||||
static const VideoSubType VideoSubTypeNone = VideoSubType._(0, _omitEnumNames ? '' : 'VideoSubTypeNone');
|
||||
static const VideoSubType VideoSubTypeBangumi = VideoSubType._(1, _omitEnumNames ? '' : 'VideoSubTypeBangumi');
|
||||
static const VideoSubType VideoSubTypeMovie = VideoSubType._(2, _omitEnumNames ? '' : 'VideoSubTypeMovie');
|
||||
static const VideoSubType VideoSubTypeDocumentary = VideoSubType._(3, _omitEnumNames ? '' : 'VideoSubTypeDocumentary');
|
||||
static const VideoSubType VideoSubTypeDomestic = VideoSubType._(4, _omitEnumNames ? '' : 'VideoSubTypeDomestic');
|
||||
static const VideoSubType VideoSubTypeTeleplay = VideoSubType._(5, _omitEnumNames ? '' : 'VideoSubTypeTeleplay');
|
||||
|
||||
static const $core.List<VideoSubType> values = <VideoSubType> [
|
||||
VideoSubTypeNone,
|
||||
VideoSubTypeBangumi,
|
||||
VideoSubTypeMovie,
|
||||
VideoSubTypeDocumentary,
|
||||
VideoSubTypeDomestic,
|
||||
VideoSubTypeTeleplay,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, VideoSubType> _byValue = $pb.ProtobufEnum.initByValue(values);
|
||||
static VideoSubType? valueOf($core.int value) => _byValue[value];
|
||||
|
||||
const VideoSubType._($core.int v, $core.String n) : super(v, n);
|
||||
}
|
||||
|
||||
|
||||
const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
299
lib/grpc/app/dynamic/v1/dynamic.pbgrpc.dart
Normal file
299
lib/grpc/app/dynamic/v1/dynamic.pbgrpc.dart
Normal file
@@ -0,0 +1,299 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: bilibili/app/dynamic/v1/dynamic.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
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 'dynamic.pb.dart' as $0;
|
||||
|
||||
export 'dynamic.pb.dart';
|
||||
|
||||
@$pb.GrpcServiceName('bilibili.app.dynamic.v1.Dynamic')
|
||||
class DynamicClient extends $grpc.Client {
|
||||
static final _$dynVideo = $grpc.ClientMethod<$0.DynVideoReq, $0.DynVideoReqReply>(
|
||||
'/bilibili.app.dynamic.v1.Dynamic/DynVideo',
|
||||
($0.DynVideoReq value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $0.DynVideoReqReply.fromBuffer(value));
|
||||
static final _$dynDetails = $grpc.ClientMethod<$0.DynDetailsReq, $0.DynDetailsReply>(
|
||||
'/bilibili.app.dynamic.v1.Dynamic/DynDetails',
|
||||
($0.DynDetailsReq value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $0.DynDetailsReply.fromBuffer(value));
|
||||
static final _$sVideo = $grpc.ClientMethod<$0.SVideoReq, $0.SVideoReply>(
|
||||
'/bilibili.app.dynamic.v1.Dynamic/SVideo',
|
||||
($0.SVideoReq value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $0.SVideoReply.fromBuffer(value));
|
||||
static final _$dynTab = $grpc.ClientMethod<$0.DynTabReq, $0.DynTabReply>(
|
||||
'/bilibili.app.dynamic.v1.Dynamic/DynTab',
|
||||
($0.DynTabReq value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $0.DynTabReply.fromBuffer(value));
|
||||
static final _$dynOurCitySwitch = $grpc.ClientMethod<$0.DynOurCitySwitchReq, $0.NoReply>(
|
||||
'/bilibili.app.dynamic.v1.Dynamic/DynOurCitySwitch',
|
||||
($0.DynOurCitySwitchReq value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $0.NoReply.fromBuffer(value));
|
||||
static final _$dynOurCity = $grpc.ClientMethod<$0.DynOurCityReq, $0.DynOurCityReply>(
|
||||
'/bilibili.app.dynamic.v1.Dynamic/DynOurCity',
|
||||
($0.DynOurCityReq value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $0.DynOurCityReply.fromBuffer(value));
|
||||
static final _$dynVideoPersonal = $grpc.ClientMethod<$0.DynVideoPersonalReq, $0.DynVideoPersonalReply>(
|
||||
'/bilibili.app.dynamic.v1.Dynamic/DynVideoPersonal',
|
||||
($0.DynVideoPersonalReq value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $0.DynVideoPersonalReply.fromBuffer(value));
|
||||
static final _$dynUpdOffset = $grpc.ClientMethod<$0.DynUpdOffsetReq, $0.NoReply>(
|
||||
'/bilibili.app.dynamic.v1.Dynamic/DynUpdOffset',
|
||||
($0.DynUpdOffsetReq value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $0.NoReply.fromBuffer(value));
|
||||
static final _$dynRed = $grpc.ClientMethod<$0.DynRedReq, $0.DynRedReply>(
|
||||
'/bilibili.app.dynamic.v1.Dynamic/DynRed',
|
||||
($0.DynRedReq value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $0.DynRedReply.fromBuffer(value));
|
||||
static final _$dynMixUpListViewMore = $grpc.ClientMethod<$0.NoReq, $0.DynMixUpListViewMoreReply>(
|
||||
'/bilibili.app.dynamic.v1.Dynamic/DynMixUpListViewMore',
|
||||
($0.NoReq value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $0.DynMixUpListViewMoreReply.fromBuffer(value));
|
||||
static final _$dynMixUpListSearch = $grpc.ClientMethod<$0.DynMixUpListSearchReq, $0.DynMixUpListSearchReply>(
|
||||
'/bilibili.app.dynamic.v1.Dynamic/DynMixUpListSearch',
|
||||
($0.DynMixUpListSearchReq value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $0.DynMixUpListSearchReply.fromBuffer(value));
|
||||
static final _$ourCityClickReport = $grpc.ClientMethod<$0.OurCityClickReportReq, $0.OurCityClickReportReply>(
|
||||
'/bilibili.app.dynamic.v1.Dynamic/OurCityClickReport',
|
||||
($0.OurCityClickReportReq value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $0.OurCityClickReportReply.fromBuffer(value));
|
||||
static final _$geoCoder = $grpc.ClientMethod<$0.GeoCoderReq, $0.GeoCoderReply>(
|
||||
'/bilibili.app.dynamic.v1.Dynamic/GeoCoder',
|
||||
($0.GeoCoderReq value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $0.GeoCoderReply.fromBuffer(value));
|
||||
|
||||
DynamicClient($grpc.ClientChannel channel,
|
||||
{$grpc.CallOptions? options,
|
||||
$core.Iterable<$grpc.ClientInterceptor>? interceptors})
|
||||
: super(channel, options: options,
|
||||
interceptors: interceptors);
|
||||
|
||||
$grpc.ResponseFuture<$0.DynVideoReqReply> dynVideo($0.DynVideoReq request, {$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$dynVideo, request, options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseFuture<$0.DynDetailsReply> dynDetails($0.DynDetailsReq request, {$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$dynDetails, request, options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseFuture<$0.SVideoReply> sVideo($0.SVideoReq request, {$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$sVideo, request, options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseFuture<$0.DynTabReply> dynTab($0.DynTabReq request, {$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$dynTab, request, options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseFuture<$0.NoReply> dynOurCitySwitch($0.DynOurCitySwitchReq request, {$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$dynOurCitySwitch, request, options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseFuture<$0.DynOurCityReply> dynOurCity($0.DynOurCityReq request, {$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$dynOurCity, request, options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseFuture<$0.DynVideoPersonalReply> dynVideoPersonal($0.DynVideoPersonalReq request, {$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$dynVideoPersonal, request, options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseFuture<$0.NoReply> dynUpdOffset($0.DynUpdOffsetReq request, {$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$dynUpdOffset, request, options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseFuture<$0.DynRedReply> dynRed($0.DynRedReq request, {$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$dynRed, request, options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseFuture<$0.DynMixUpListViewMoreReply> dynMixUpListViewMore($0.NoReq request, {$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$dynMixUpListViewMore, request, options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseFuture<$0.DynMixUpListSearchReply> dynMixUpListSearch($0.DynMixUpListSearchReq request, {$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$dynMixUpListSearch, request, options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseFuture<$0.OurCityClickReportReply> ourCityClickReport($0.OurCityClickReportReq request, {$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$ourCityClickReport, request, options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseFuture<$0.GeoCoderReply> geoCoder($0.GeoCoderReq request, {$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$geoCoder, request, options: options);
|
||||
}
|
||||
}
|
||||
|
||||
@$pb.GrpcServiceName('bilibili.app.dynamic.v1.Dynamic')
|
||||
abstract class DynamicServiceBase extends $grpc.Service {
|
||||
$core.String get $name => 'bilibili.app.dynamic.v1.Dynamic';
|
||||
|
||||
DynamicServiceBase() {
|
||||
$addMethod($grpc.ServiceMethod<$0.DynVideoReq, $0.DynVideoReqReply>(
|
||||
'DynVideo',
|
||||
dynVideo_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $0.DynVideoReq.fromBuffer(value),
|
||||
($0.DynVideoReqReply value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$0.DynDetailsReq, $0.DynDetailsReply>(
|
||||
'DynDetails',
|
||||
dynDetails_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $0.DynDetailsReq.fromBuffer(value),
|
||||
($0.DynDetailsReply value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$0.SVideoReq, $0.SVideoReply>(
|
||||
'SVideo',
|
||||
sVideo_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $0.SVideoReq.fromBuffer(value),
|
||||
($0.SVideoReply value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$0.DynTabReq, $0.DynTabReply>(
|
||||
'DynTab',
|
||||
dynTab_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $0.DynTabReq.fromBuffer(value),
|
||||
($0.DynTabReply value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$0.DynOurCitySwitchReq, $0.NoReply>(
|
||||
'DynOurCitySwitch',
|
||||
dynOurCitySwitch_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $0.DynOurCitySwitchReq.fromBuffer(value),
|
||||
($0.NoReply value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$0.DynOurCityReq, $0.DynOurCityReply>(
|
||||
'DynOurCity',
|
||||
dynOurCity_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $0.DynOurCityReq.fromBuffer(value),
|
||||
($0.DynOurCityReply value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$0.DynVideoPersonalReq, $0.DynVideoPersonalReply>(
|
||||
'DynVideoPersonal',
|
||||
dynVideoPersonal_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $0.DynVideoPersonalReq.fromBuffer(value),
|
||||
($0.DynVideoPersonalReply value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$0.DynUpdOffsetReq, $0.NoReply>(
|
||||
'DynUpdOffset',
|
||||
dynUpdOffset_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $0.DynUpdOffsetReq.fromBuffer(value),
|
||||
($0.NoReply value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$0.DynRedReq, $0.DynRedReply>(
|
||||
'DynRed',
|
||||
dynRed_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $0.DynRedReq.fromBuffer(value),
|
||||
($0.DynRedReply value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$0.NoReq, $0.DynMixUpListViewMoreReply>(
|
||||
'DynMixUpListViewMore',
|
||||
dynMixUpListViewMore_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $0.NoReq.fromBuffer(value),
|
||||
($0.DynMixUpListViewMoreReply value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$0.DynMixUpListSearchReq, $0.DynMixUpListSearchReply>(
|
||||
'DynMixUpListSearch',
|
||||
dynMixUpListSearch_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $0.DynMixUpListSearchReq.fromBuffer(value),
|
||||
($0.DynMixUpListSearchReply value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$0.OurCityClickReportReq, $0.OurCityClickReportReply>(
|
||||
'OurCityClickReport',
|
||||
ourCityClickReport_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $0.OurCityClickReportReq.fromBuffer(value),
|
||||
($0.OurCityClickReportReply value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$0.GeoCoderReq, $0.GeoCoderReply>(
|
||||
'GeoCoder',
|
||||
geoCoder_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $0.GeoCoderReq.fromBuffer(value),
|
||||
($0.GeoCoderReply value) => value.writeToBuffer()));
|
||||
}
|
||||
|
||||
$async.Future<$0.DynVideoReqReply> dynVideo_Pre($grpc.ServiceCall call, $async.Future<$0.DynVideoReq> request) async {
|
||||
return dynVideo(call, await request);
|
||||
}
|
||||
|
||||
$async.Future<$0.DynDetailsReply> dynDetails_Pre($grpc.ServiceCall call, $async.Future<$0.DynDetailsReq> request) async {
|
||||
return dynDetails(call, await request);
|
||||
}
|
||||
|
||||
$async.Future<$0.SVideoReply> sVideo_Pre($grpc.ServiceCall call, $async.Future<$0.SVideoReq> request) async {
|
||||
return sVideo(call, await request);
|
||||
}
|
||||
|
||||
$async.Future<$0.DynTabReply> dynTab_Pre($grpc.ServiceCall call, $async.Future<$0.DynTabReq> request) async {
|
||||
return dynTab(call, await request);
|
||||
}
|
||||
|
||||
$async.Future<$0.NoReply> dynOurCitySwitch_Pre($grpc.ServiceCall call, $async.Future<$0.DynOurCitySwitchReq> request) async {
|
||||
return dynOurCitySwitch(call, await request);
|
||||
}
|
||||
|
||||
$async.Future<$0.DynOurCityReply> dynOurCity_Pre($grpc.ServiceCall call, $async.Future<$0.DynOurCityReq> request) async {
|
||||
return dynOurCity(call, await request);
|
||||
}
|
||||
|
||||
$async.Future<$0.DynVideoPersonalReply> dynVideoPersonal_Pre($grpc.ServiceCall call, $async.Future<$0.DynVideoPersonalReq> request) async {
|
||||
return dynVideoPersonal(call, await request);
|
||||
}
|
||||
|
||||
$async.Future<$0.NoReply> dynUpdOffset_Pre($grpc.ServiceCall call, $async.Future<$0.DynUpdOffsetReq> request) async {
|
||||
return dynUpdOffset(call, await request);
|
||||
}
|
||||
|
||||
$async.Future<$0.DynRedReply> dynRed_Pre($grpc.ServiceCall call, $async.Future<$0.DynRedReq> request) async {
|
||||
return dynRed(call, await request);
|
||||
}
|
||||
|
||||
$async.Future<$0.DynMixUpListViewMoreReply> dynMixUpListViewMore_Pre($grpc.ServiceCall call, $async.Future<$0.NoReq> request) async {
|
||||
return dynMixUpListViewMore(call, await request);
|
||||
}
|
||||
|
||||
$async.Future<$0.DynMixUpListSearchReply> dynMixUpListSearch_Pre($grpc.ServiceCall call, $async.Future<$0.DynMixUpListSearchReq> request) async {
|
||||
return dynMixUpListSearch(call, await request);
|
||||
}
|
||||
|
||||
$async.Future<$0.OurCityClickReportReply> ourCityClickReport_Pre($grpc.ServiceCall call, $async.Future<$0.OurCityClickReportReq> request) async {
|
||||
return ourCityClickReport(call, await request);
|
||||
}
|
||||
|
||||
$async.Future<$0.GeoCoderReply> geoCoder_Pre($grpc.ServiceCall call, $async.Future<$0.GeoCoderReq> request) async {
|
||||
return geoCoder(call, await request);
|
||||
}
|
||||
|
||||
$async.Future<$0.DynVideoReqReply> dynVideo($grpc.ServiceCall call, $0.DynVideoReq request);
|
||||
$async.Future<$0.DynDetailsReply> dynDetails($grpc.ServiceCall call, $0.DynDetailsReq request);
|
||||
$async.Future<$0.SVideoReply> sVideo($grpc.ServiceCall call, $0.SVideoReq request);
|
||||
$async.Future<$0.DynTabReply> dynTab($grpc.ServiceCall call, $0.DynTabReq request);
|
||||
$async.Future<$0.NoReply> dynOurCitySwitch($grpc.ServiceCall call, $0.DynOurCitySwitchReq request);
|
||||
$async.Future<$0.DynOurCityReply> dynOurCity($grpc.ServiceCall call, $0.DynOurCityReq request);
|
||||
$async.Future<$0.DynVideoPersonalReply> dynVideoPersonal($grpc.ServiceCall call, $0.DynVideoPersonalReq request);
|
||||
$async.Future<$0.NoReply> dynUpdOffset($grpc.ServiceCall call, $0.DynUpdOffsetReq request);
|
||||
$async.Future<$0.DynRedReply> dynRed($grpc.ServiceCall call, $0.DynRedReq request);
|
||||
$async.Future<$0.DynMixUpListViewMoreReply> dynMixUpListViewMore($grpc.ServiceCall call, $0.NoReq request);
|
||||
$async.Future<$0.DynMixUpListSearchReply> dynMixUpListSearch($grpc.ServiceCall call, $0.DynMixUpListSearchReq request);
|
||||
$async.Future<$0.OurCityClickReportReply> ourCityClickReport($grpc.ServiceCall call, $0.OurCityClickReportReq request);
|
||||
$async.Future<$0.GeoCoderReply> geoCoder($grpc.ServiceCall call, $0.GeoCoderReq request);
|
||||
}
|
||||
1893
lib/grpc/app/dynamic/v1/dynamic.pbjson.dart
Normal file
1893
lib/grpc/app/dynamic/v1/dynamic.pbjson.dart
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,5 @@
|
||||
import 'package:PiliPalaX/grpc/app/dynamic/v2/dynamic.pbgrpc.dart';
|
||||
import 'package:PiliPalaX/grpc/app/dynamic/v1/dynamic.pbgrpc.dart' as v1;
|
||||
import 'package:PiliPalaX/grpc/app/dynamic/v2/dynamic.pbgrpc.dart' as v2;
|
||||
import 'package:PiliPalaX/grpc/app/main/community/reply/v1/reply.pbgrpc.dart';
|
||||
import 'package:PiliPalaX/grpc/app/playeronline/v1/playeronline.pbgrpc.dart';
|
||||
import 'package:PiliPalaX/grpc/app/show/popular/v1/popular.pbgrpc.dart';
|
||||
@@ -9,7 +10,8 @@ class GrpcClient {
|
||||
PlayerOnlineClient? _playerOnlineClient;
|
||||
PopularClient? _popularClient;
|
||||
ReplyClient? _replyClient;
|
||||
DynamicClient? _dynamicClient;
|
||||
v2.DynamicClient? _dynamicClientV2;
|
||||
v1.DynamicClient? _dynamicClientV1;
|
||||
|
||||
GrpcClient._internal() {
|
||||
_channel = ClientChannel(
|
||||
@@ -39,9 +41,14 @@ class GrpcClient {
|
||||
return _replyClient!;
|
||||
}
|
||||
|
||||
DynamicClient get dynamicClient {
|
||||
_dynamicClient ??= DynamicClient(_channel!);
|
||||
return _dynamicClient!;
|
||||
v2.DynamicClient get dynamicClientV2 {
|
||||
_dynamicClientV2 ??= v2.DynamicClient(_channel!);
|
||||
return _dynamicClientV2!;
|
||||
}
|
||||
|
||||
v1.DynamicClient get dynamicClientV1 {
|
||||
_dynamicClientV1 ??= v1.DynamicClient(_channel!);
|
||||
return _dynamicClientV1!;
|
||||
}
|
||||
|
||||
Future<void> shutdown() async {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:PiliPalaX/common/constants.dart';
|
||||
import 'package:PiliPalaX/grpc/app/dynamic/v1/dynamic.pb.dart';
|
||||
import 'package:PiliPalaX/grpc/app/dynamic/v2/dynamic.pb.dart';
|
||||
import 'package:PiliPalaX/grpc/app/main/community/reply/v1/reply.pb.dart';
|
||||
import 'package:PiliPalaX/grpc/app/playeronline/v1/playeronline.pbgrpc.dart';
|
||||
@@ -231,9 +232,18 @@ class GrpcRepo {
|
||||
..localTime = 8
|
||||
..page = Int64(page)
|
||||
..from = 'space';
|
||||
final DynSpaceRsp response = await GrpcClient.instance.dynamicClient
|
||||
final DynSpaceRsp response = await GrpcClient.instance.dynamicClientV2
|
||||
.dynSpace(request, options: options);
|
||||
return {'status': true, 'data': response};
|
||||
});
|
||||
}
|
||||
|
||||
static Future dynRed() async {
|
||||
return await _request(() async {
|
||||
final request = DynRedReq()..tabOffset.add(TabOffset(tab: 1));
|
||||
final DynRedReply response = await GrpcClient.instance.dynamicClientV1
|
||||
.dynRed(request, options: options);
|
||||
return {'status': true, 'data': response.dynRedItem.count.toInt()};
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:PiliPalaX/grpc/grpc_repo.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:hive/hive.dart';
|
||||
@@ -89,10 +91,15 @@ class MainController extends GetxController {
|
||||
// int dynamicItemIndex =
|
||||
// navigationBars.indexWhere((item) => item['label'] == "动态");
|
||||
// if (dynamicItemIndex == -1) return;
|
||||
var res = await CommonHttp.unReadDynamic();
|
||||
var data = res['data'];
|
||||
navigationBars[1]['count'] =
|
||||
data == null ? 0 : data.length; // 修改 count 属性为新的值
|
||||
// var res = await CommonHttp.unReadDynamic();
|
||||
// var data = res['data'];
|
||||
// navigationBars[1]['count'] =
|
||||
// data == null ? 0 : data.length; // 修改 count 属性为新的值
|
||||
await GrpcRepo.dynRed().then((res) {
|
||||
if (res['status']) {
|
||||
navigationBars[1]['count'] = res['data'];
|
||||
}
|
||||
});
|
||||
navigationBars.refresh();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user