aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/service/TelegramServiceImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server/src/main/java/com/juick/service/TelegramServiceImpl.java')
-rw-r--r--juick-server/src/main/java/com/juick/service/TelegramServiceImpl.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/juick-server/src/main/java/com/juick/service/TelegramServiceImpl.java b/juick-server/src/main/java/com/juick/service/TelegramServiceImpl.java
index 89954944..a698e2e8 100644
--- a/juick-server/src/main/java/com/juick/service/TelegramServiceImpl.java
+++ b/juick-server/src/main/java/com/juick/service/TelegramServiceImpl.java
@@ -49,6 +49,12 @@ public class TelegramServiceImpl extends BaseJdbcService implements TelegramServ
tgID, tgName, UUID.randomUUID().toString()) > 0;
}
+ @Transactional
+ @Override
+ public boolean deleteTelegramUser(Integer uid) {
+ return getJdbcTemplate().update("DELETE FROM telegram WHERE user_id=?", uid) > 0;
+ }
+
@Transactional(readOnly = true)
@Override
public List<Long> getSubscribers(final int uid) {