From f496392b24eb9c9a38498cbbf03159ef5aa037d1 Mon Sep 17 00:00:00 2001
From: tj <1378534974@qq.com>
Date: 星期一, 21 四月 2025 15:38:08 +0800
Subject: [PATCH] 1.好友邀请-我的邀请记录:列表样式重写,图片显示 2.已登录的用户点击应用图标之后直接登录
---
app/src/main/java/com/example/firstapp/database/entity/KeywordConfig.kt | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/app/src/main/java/com/example/firstapp/database/entity/KeywordConfig.kt b/app/src/main/java/com/example/firstapp/database/entity/KeywordConfig.kt
index 2a3e3a2..c7cfca8 100644
--- a/app/src/main/java/com/example/firstapp/database/entity/KeywordConfig.kt
+++ b/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)
+ )
+ }
+}
--
Gitblit v1.9.3