Merge branch 'design'

This commit is contained in:
guozhigq
2024-10-20 22:59:18 +08:00
36 changed files with 1353 additions and 640 deletions

View File

@ -144,6 +144,7 @@ class EpisodeItem {
this.link,
this.longTitle,
this.pubTime,
this.pubdate,
this.pv,
this.releaseDate,
this.rights,
@ -155,6 +156,7 @@ class EpisodeItem {
this.subtitle,
this.title,
this.vid,
this.stat,
});
int? aid;
@ -173,6 +175,7 @@ class EpisodeItem {
String? link;
String? longTitle;
int? pubTime;
int? pubdate;
int? pv;
String? releaseDate;
Map? rights;
@ -184,6 +187,7 @@ class EpisodeItem {
String? subtitle;
String? title;
String? vid;
String? stat;
EpisodeItem.fromJson(Map<String, dynamic> json) {
aid = json['aid'];
@ -202,6 +206,7 @@ class EpisodeItem {
link = json['link'];
longTitle = json['long_title'];
pubTime = json['pub_time'];
pubdate = json['pub_time'];
pv = json['pv'];
releaseDate = json['release_date'];
rights = json['rights'];
@ -211,7 +216,7 @@ class EpisodeItem {
skip = json['skip'];
status = json['status'];
subtitle = json['subtitle'];
title = json['title'];
title = json['long_title'];
vid = json['vid'];
}
}

View File

@ -101,6 +101,7 @@ class ReplyReplyData {
this.page,
this.config,
this.replies,
this.root,
this.topReplies,
this.upper,
});
@ -108,6 +109,7 @@ class ReplyReplyData {
ReplyPage? page;
ReplyConfig? config;
late List<ReplyItemModel>? replies;
ReplyItemModel? root;
late List<ReplyItemModel>? topReplies;
ReplyUpper? upper;
@ -120,6 +122,9 @@ class ReplyReplyData {
(item) => ReplyItemModel.fromJson(item, json['upper']['mid']))
.toList()
: [];
root = json['root'] != null
? ReplyItemModel.fromJson(json['root'], false)
: null;
topReplies = json['top_replies'] != null
? json['top_replies']
.map<ReplyItemModel>((item) => ReplyItemModel.fromJson(

View File

@ -377,6 +377,7 @@ class Part {
int? page;
String? from;
String? pagePart;
String? title;
int? duration;
String? vid;
String? weblink;
@ -389,6 +390,7 @@ class Part {
this.page,
this.from,
this.pagePart,
this.title,
this.duration,
this.vid,
this.weblink,
@ -406,6 +408,7 @@ class Part {
page = json["page"];
from = json["from"];
pagePart = json["part"];
title = json["part"];
duration = json["duration"];
vid = json["vid"];
weblink = json["weblink"];
@ -649,6 +652,9 @@ class EpisodeItem {
Part? page;
String? bvid;
String? cover;
int? pubdate;
int? duration;
Stat? stat;
EpisodeItem.fromJson(Map<String, dynamic> json) {
seasonId = json['season_id'];
@ -661,6 +667,9 @@ class EpisodeItem {
page = Part.fromJson(json['page']);
bvid = json['bvid'];
cover = json['arc']['pic'];
pubdate = json['arc']['pubdate'];
duration = json['arc']['duration'];
stat = Stat.fromJson(json['arc']['stat']);
}
}