This commit is contained in:
kunfei
2023-02-19 19:59:54 +08:00
parent 5c33b2ae79
commit 83ac432b37
3 changed files with 15 additions and 5 deletions
@@ -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
)