From 661a264fef5d1a23ba850c9f65ac79c0127b3d1d Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期二, 01 四月 2025 15:59:10 +0800
Subject: [PATCH] fix : 样式
---
app/src/main/java/com/example/firstapp/database/dao/ReminderDao.kt | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/app/src/main/java/com/example/firstapp/database/dao/ReminderDao.kt b/app/src/main/java/com/example/firstapp/database/dao/ReminderDao.kt
index 59d5af1..e0cd71f 100644
--- a/app/src/main/java/com/example/firstapp/database/dao/ReminderDao.kt
+++ b/app/src/main/java/com/example/firstapp/database/dao/ReminderDao.kt
@@ -15,4 +15,7 @@
@Delete
fun delete(reminder: Reminder)
+
+ @Query("SELECT * FROM reminders WHERE type = :type")
+ fun getByType(type: String): List<Reminder>
}
\ No newline at end of file
--
Gitblit v1.9.3