From 522739a24658c38f85226db658b760d672741c55 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 29 Jun 2019 18:38:56 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/data/AppDatabase.kt | 1 + .../java/io/legado/app/data/dao/BookChapterDao.kt | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 app/src/main/java/io/legado/app/data/dao/BookChapterDao.kt diff --git a/app/src/main/java/io/legado/app/data/AppDatabase.kt b/app/src/main/java/io/legado/app/data/AppDatabase.kt index 78a646041..e54d6c663 100644 --- a/app/src/main/java/io/legado/app/data/AppDatabase.kt +++ b/app/src/main/java/io/legado/app/data/AppDatabase.kt @@ -50,6 +50,7 @@ abstract class AppDatabase : RoomDatabase() { abstract fun bookDao(): BookDao abstract fun bookGroupDao(): BookGroupDao abstract fun bookSourceDao(): BookSourceDao + abstract fun bookChapterDao(): BookChapterDao abstract fun replaceRuleDao(): ReplaceRuleDao abstract fun searchBookDao(): SearchBookDao abstract fun searchKeywordDao(): SearchKeywordDao diff --git a/app/src/main/java/io/legado/app/data/dao/BookChapterDao.kt b/app/src/main/java/io/legado/app/data/dao/BookChapterDao.kt new file mode 100644 index 000000000..ad45e6290 --- /dev/null +++ b/app/src/main/java/io/legado/app/data/dao/BookChapterDao.kt @@ -0,0 +1,13 @@ +package io.legado.app.data.dao + +import androidx.room.Insert +import androidx.room.OnConflictStrategy +import io.legado.app.data.entities.BookChapter + +interface BookChapterDao { + + + @Insert(onConflict = OnConflictStrategy.REPLACE) + fun insert(vararg bookChapter: BookChapter) + +} \ No newline at end of file