feat: 首页推荐视频缓存

This commit is contained in:
guozhigq
2023-05-17 10:27:54 +08:00
parent 83fac74630
commit 75ed91c29d
17 changed files with 526 additions and 14 deletions

View File

@ -1,3 +1,8 @@
import 'package:hive/hive.dart';
part 'stat.g.dart';
@HiveType(typeId: 1)
class UserStat {
UserStat({
this.following,
@ -5,8 +10,11 @@ class UserStat {
this.dynamicCount,
});
@HiveField(0)
int? following;
@HiveField(1)
int? follower;
@HiveField(2)
int? dynamicCount;
UserStat.fromJson(Map<String, dynamic> json) {