You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
687 B
36 lines
687 B
|
|
|
|
import 'package:huixiang/generated/json/page.g.dart'; |
|
import 'package:json_annotation/json_annotation.dart'; |
|
|
|
|
|
@JsonSerializable() |
|
class PageInfo<D> { |
|
PageInfo({ |
|
this.pageNum, |
|
this.current, |
|
this.pageSize, |
|
this.size, |
|
this.pages, |
|
this.hasPreviousPage, |
|
this.hasNextPage, |
|
this.total, |
|
this.list, |
|
this.records, |
|
}); |
|
|
|
int? pageNum; |
|
dynamic current; |
|
int? pageSize; |
|
dynamic size; |
|
dynamic pages; |
|
bool? hasPreviousPage; |
|
bool? hasNextPage; |
|
String? total; |
|
List<D>? list; |
|
List<D>? records; |
|
|
|
factory PageInfo.fromJson(Map<String, dynamic> json) => $PageInfoFromJson<D>(json); |
|
Map<String, dynamic> toJson() => $PageInfoToJson(this); |
|
|
|
}
|
|
|