发现页面

This commit is contained in:
2022-10-20 14:33:16 +08:00
parent 42ba10ec61
commit 36b860752a
25 changed files with 2150 additions and 19 deletions

View File

@@ -0,0 +1,23 @@
class PageModel {
PageModel({
required this.current,
required this.totalPage,
required this.perPage,
required this.hasMore,
required this.total,
});
final int current;
final int totalPage;
final int perPage;
final bool hasMore;
final int total;
factory PageModel.fromJson(Map<String, dynamic> json) => PageModel(
current: json['current'],
totalPage: json['total_page'],
perPage: json['per_page'],
hasMore: json['has_more'],
total: json['total'],
);
}