This commit is contained in:
2026-03-07 17:24:59 +08:00
parent 4418ebecac
commit b0ec8ab4bd
417 changed files with 42546 additions and 2 deletions

View File

@@ -0,0 +1,39 @@
import 'package:get/get.dart';
import 'package:hive/hive.dart';
part 'local_favorite.g.dart';
@HiveType(typeId: 6)
class LocalFavorite {
LocalFavorite({
required this.id,
required this.objId,
required this.title,
required this.cover,
required this.type,
required this.updateTime,
});
@HiveField(0)
String id;
String get hiveId => "${type}_$objId";
@HiveField(1)
int objId;
@HiveField(2)
String title;
@HiveField(3)
String cover;
/// 类型对应app_constant漫画或小说
@HiveField(4)
int type;
@HiveField(5)
DateTime updateTime;
//是否被选中
Rx<bool> isChecked = false.obs;
}