handle relation url

Closes #1566

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-15 18:25:15 +08:00
parent 32ce2b87db
commit c9de79532a
31 changed files with 634 additions and 393 deletions

View File

@@ -2,10 +2,9 @@ import 'package:PiliPlus/models_new/follow/list.dart';
class FollowData {
late List<FollowItemModel> list;
int? reVersion;
int? total;
FollowData({required this.list, this.reVersion, this.total});
FollowData({required this.list, this.total});
factory FollowData.fromJson(Map<String, dynamic> json) => FollowData(
list:
@@ -13,7 +12,6 @@ class FollowData {
?.map((e) => FollowItemModel.fromJson(e as Map<String, dynamic>))
.toList() ??
<FollowItemModel>[],
reVersion: json['re_version'] as int?,
total: json['total'] as int?,
);
}