epub阅读添加搜索

This commit is contained in:
DelLevin-Home
2026-07-01 05:03:58 +08:00
parent 0af1af7f1a
commit d5bec0fe9b
7 changed files with 573 additions and 9 deletions

View File

@@ -134,6 +134,17 @@ class ReaderDao {
return db.delete('book_annotations', where: 'id = ?', whereArgs: [id]);
}
/// 更新批注感悟
Future<int> updateAnnotationNote(int id, String note) async {
final db = await _db.database;
return db.update(
'book_annotations',
{'reader_note': note, 'updated_at': DateTime.now().toIso8601String()},
where: 'id = ?',
whereArgs: [id],
);
}
// ─── bookmarks ──────────────────────────────────────────────────
/// 获取某本书的所有书签