feat:增加回到顶部功能
This commit is contained in:
@@ -51,3 +51,24 @@ class Moment {
|
||||
|
||||
Map<String, dynamic> toJson() => _$MomentToJson(this);
|
||||
}
|
||||
|
||||
@JsonSerializable()
|
||||
class PageMoment {
|
||||
final List<Moment> records;
|
||||
final int total;
|
||||
final int size;
|
||||
final int current;
|
||||
final int pages;
|
||||
|
||||
PageMoment({
|
||||
required this.records,
|
||||
required this.total,
|
||||
required this.size,
|
||||
required this.current,
|
||||
required this.pages,
|
||||
});
|
||||
|
||||
factory PageMoment.fromJson(Map<String, dynamic> json) => _$PageMomentFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$PageMomentToJson(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user