From cfd16294b5fd77997e637c8e192ff2692b078e95 Mon Sep 17 00:00:00 2001
From: Symb0x76 <9667434@qq.com>
Date: Mon, 20 Oct 2025 09:25:48 +0800
Subject: [PATCH] feat(fts) : Auto update index using webhook
---
internal/chatlog/http/static/index.htm | 117 ++++++
internal/chatlog/webhook/webhook.go | 4 +
internal/model/avatar.go | 8 +-
internal/model/intimacy.go | 18 +-
internal/model/stats.go | 18 +-
internal/tray/tray.go | 8 +-
internal/tray/tray_other.go | 2 +-
.../wechatdb/repository/index_incremental.go | 90 +++++
internal/wechatdb/wechatdb.go | 7 +
internal/whisper/types.go | 24 +-
internal/whisper/whispercpp.go | 382 +++++++++---------
pkg/util/net.go | 1 -
12 files changed, 448 insertions(+), 231 deletions(-)
create mode 100644 internal/wechatdb/repository/index_incremental.go
diff --git a/internal/chatlog/http/static/index.htm b/internal/chatlog/http/static/index.htm
index dcbf709..63aec13 100644
--- a/internal/chatlog/http/static/index.htm
+++ b/internal/chatlog/http/static/index.htm
@@ -272,6 +272,18 @@
animation: dots 1.5s steps(5, end) infinite;
}
+ .search-index-status {
+ display: none;
+ margin-bottom: 16px;
+ padding: 12px 14px;
+ border-radius: 6px;
+ border: 1px solid #ffe1a3;
+ background-color: #fff8e5;
+ color: #8a6d3b;
+ font-size: 14px;
+ line-height: 1.5;
+ }
+
@keyframes dots {
0%,
20% {
@@ -854,6 +866,14 @@
>
+
+ 正在检查全文索引状态...
+