feat: 用户投稿

This commit is contained in:
guozhigq
2023-07-20 09:55:05 +08:00
parent 04c90830bb
commit 023e8013a5
13 changed files with 508 additions and 21 deletions

View File

@ -12,6 +12,7 @@ class GStrorage {
static late final Box userInfo;
static late final Box hotKeyword;
static late final Box historyword;
static late final Box localCache;
static Future<void> init() async {
final dir = await getApplicationDocumentsDirectory();
@ -28,6 +29,8 @@ class GStrorage {
hotKeyword = await Hive.openBox('hotKeyword');
// 搜索历史
historyword = await Hive.openBox('historyWord');
// 本地缓存
localCache = await Hive.openBox('localCache');
}
static regAdapter() {