|
|
@ -1,11 +1,7 @@ |
|
|
|
package io.legado.app.data.dao |
|
|
|
package io.legado.app.data.dao |
|
|
|
|
|
|
|
|
|
|
|
import androidx.room.Dao |
|
|
|
import androidx.room.* |
|
|
|
import androidx.room.Insert |
|
|
|
|
|
|
|
import androidx.room.OnConflictStrategy |
|
|
|
|
|
|
|
import androidx.room.Query |
|
|
|
|
|
|
|
import io.legado.app.data.entities.TxtTocRule |
|
|
|
import io.legado.app.data.entities.TxtTocRule |
|
|
|
import retrofit2.http.DELETE |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Dao |
|
|
|
@Dao |
|
|
|
interface TxtTocRuleDao { |
|
|
|
interface TxtTocRuleDao { |
|
|
@ -19,6 +15,6 @@ interface TxtTocRuleDao { |
|
|
|
@Insert(onConflict = OnConflictStrategy.REPLACE) |
|
|
|
@Insert(onConflict = OnConflictStrategy.REPLACE) |
|
|
|
fun insert(vararg rule: TxtTocRule) |
|
|
|
fun insert(vararg rule: TxtTocRule) |
|
|
|
|
|
|
|
|
|
|
|
@DELETE |
|
|
|
@Delete |
|
|
|
fun delete(vararg rule: TxtTocRule) |
|
|
|
fun delete(vararg rule: TxtTocRule) |
|
|
|
} |
|
|
|
} |