pgc review sort

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-25 14:59:29 +08:00
parent 86e52eec4c
commit b674d102e3
4 changed files with 79 additions and 6 deletions

View File

@@ -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);
}

View File

@@ -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'],
);
}