mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-22 18:16:54 +08:00
pgc review sort
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -11,3 +11,12 @@ enum PgcReviewType {
|
||||
required this.api,
|
||||
});
|
||||
}
|
||||
|
||||
enum PgcReviewSortType {
|
||||
def('默认', 0),
|
||||
latest('最新', 1);
|
||||
|
||||
final int sort;
|
||||
final String label;
|
||||
const PgcReviewSortType(this.label, this.sort);
|
||||
}
|
||||
|
||||
@@ -12,6 +12,6 @@ class PgcReviewData {
|
||||
?.map((e) => PgcReviewItemModel.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
next: json['next'] as String?,
|
||||
count: json['count'] as int?,
|
||||
count: json['count'] ?? json['total'],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user