mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: 补充根评论结构;增加跳转至评论详情页;
This commit is contained in:
@@ -44,6 +44,7 @@ class ReplyReplyData {
|
||||
this.replies,
|
||||
this.topReplies,
|
||||
this.upper,
|
||||
this.root,
|
||||
});
|
||||
|
||||
ReplyPage? page;
|
||||
@@ -51,6 +52,7 @@ class ReplyReplyData {
|
||||
late List<ReplyItemModel>? replies;
|
||||
late List<ReplyItemModel>? topReplies;
|
||||
ReplyUpper? upper;
|
||||
ReplyItemModel? root;
|
||||
|
||||
ReplyReplyData.fromJson(Map<String, dynamic> json) {
|
||||
page = ReplyPage.fromJson(json['page']);
|
||||
@@ -67,5 +69,6 @@ class ReplyReplyData {
|
||||
isTopStatus: true)))
|
||||
: <ReplyItemModel>[];
|
||||
upper = ReplyUpper.fromJson(json['upper']);
|
||||
root = ReplyItemModel.fromJson(json['root'], json['upper']['mid']);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user