优化
This commit is contained in:
@@ -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
|
||||
)
|
||||
Reference in New Issue
Block a user