cloudroam
2025-02-25 0fce8fea0b83afb02b5d8780160787e87b8ceedb
app/src/main/java/com/example/firstapp/database/entity/KeywordConfig.kt
@@ -8,4 +8,13 @@
    val type: String,
    val keyword: String,
    val isEnable: Boolean
)
){
    fun toEntity(): KeywordEntity {
        return KeywordEntity(
            id = id,          // 确保与@Entity类字段匹配
            type = type,
            keyword = keyword,
            isEnabled = isEnable  // 注意字段名是否一致(isEnabled vs isEnable)
        )
    }
}