clean up models

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-04-05 12:10:18 +08:00
parent b897103af0
commit 279f21857d
308 changed files with 156 additions and 6243 deletions

View File

@@ -5,11 +5,6 @@ class PgcReviewItemModel {
Author? author;
String? title;
String? content;
int? ctime;
int? mediaId;
int? mid;
int? mtime;
String? progress;
String? pushTimeStr;
int? reviewId;
late int score;
@@ -20,11 +15,6 @@ class PgcReviewItemModel {
this.author,
this.title,
this.content,
this.ctime,
this.mediaId,
this.mid,
this.mtime,
this.progress,
this.pushTimeStr,
this.reviewId,
required this.score,
@@ -40,11 +30,6 @@ class PgcReviewItemModel {
: Author.fromJson(json['author'] as Map<String, dynamic>),
title: json['title'] as String?,
content: json['content'] as String?,
ctime: json['ctime'] as int?,
mediaId: json['media_id'] as int?,
mid: json['mid'] as int?,
mtime: json['mtime'] as int?,
progress: json['progress'] as String?,
pushTimeStr: json['push_time_str'] as String?,
reviewId: json['review_id'] as int?,
score: json['score'] == null ? 0 : json['score'] ~/ 2,