This commit is contained in:
kunfei committed 2023-02-19 19:59:54 +08:00
1 parent 5c33b2ae79
commit 83ac432b37
3 files changed
+15 -5

No files matched your search

@@ -12,6 +12,9 @@ interface DictRuleDao {
@get:Query("select * from dictRules")
val all: List<DictRule>
@get:Query("select * from dictRules where enabled = 1")
val enabled: List<DictRule>
@Upsert
fun upsert(vararg dictRule: DictRule)
@@ -10,6 +10,7 @@ import androidx.room.PrimaryKey
data class DictRule(
@PrimaryKey
val name: String,
val urlRule: String,
val showRule: String
var urlRule: String,
var showRule: String,
var enabled: Boolean
)