From 2167ea58d1c297b0536d5cab6517707f1892b95f Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期五, 21 二月 2025 09:34:00 +0800
Subject: [PATCH] 登录;注册;关键字接口对接

---
 app/src/main/java/com/example/firstapp/App.kt |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/app/src/main/java/com/example/firstapp/App.kt b/app/src/main/java/com/example/firstapp/App.kt
index 93f6053..f46c3a9 100644
--- a/app/src/main/java/com/example/firstapp/App.kt
+++ b/app/src/main/java/com/example/firstapp/App.kt
@@ -23,7 +23,9 @@
 import com.hjq.language.OnLanguageListener
 import com.example.firstapp.core.Core
 import com.example.firstapp.database.repository.CodeRepository
+import com.example.firstapp.database.repository.KeywordRepository
 import com.example.firstapp.database.repository.MsgRepository
+import com.example.firstapp.database.service.RetrofitClient
 import com.example.firstapp.receiver.CactusReceiver
 import com.example.firstapp.service.BluetoothScanService
 import com.example.firstapp.service.HttpServerService
@@ -65,6 +67,7 @@
     val database by lazy { AppDatabase.getInstance(this) }
     val msgRepository by lazy { MsgRepository(database.msgDao()) }
     val codeRepository by lazy { CodeRepository(database.codeDao()) }
+    val keywordRepository by lazy { KeywordRepository(RetrofitClient.apiService,database.keywordDao()) }
 
     companion object {
         const val TAG: String = "SmsForwarder"

--
Gitblit v1.9.3