From d919ea2c534f102e04855c2ee9872e62ec7382d6 Mon Sep 17 00:00:00 2001 From: kevin Date: Fri, 7 Aug 2026 19:10:49 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=91=E9=81=93=E7=AD=9B=E9=80=89=EF=BC=9Ate?= =?UTF-8?q?xt=5Fmessage=20=E8=A1=A8=E5=A2=9E=E5=8A=A0=20(channel=5Fid,=20c?= =?UTF-8?q?reated=5Fat)=20=E5=A4=8D=E5=90=88=E7=B4=A2=E5=BC=95=EF=BC=8C?= =?UTF-8?q?=E4=B8=BB=E9=A1=B5=E5=A2=9E=E5=8A=A0=E9=A2=91=E9=81=93=E7=AD=9B?= =?UTF-8?q?=E9=80=89=E8=BE=93=E5=85=A5=E6=A1=86=EF=BC=8C=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E7=AB=AF=E7=AD=9B=E9=80=89+=E9=98=B2=E6=8A=96=E9=87=8D?= =?UTF-8?q?=E8=BD=BD=EF=BC=8C=E7=89=88=E6=9C=AC=E5=8F=B7=20backend=201.1.0?= =?UTF-8?q?=20/=20frontend=200.2.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/store/db.go | 6 ++--- internal/web/web.go | 2 +- meshmap_frontend/src/App.vue | 40 +++++++++++++++++++++++++++++---- meshmap_frontend/src/version.ts | 2 +- 4 files changed, 41 insertions(+), 9 deletions(-) diff --git a/internal/store/db.go b/internal/store/db.go index 65ce66f..0e53d1a 100644 --- a/internal/store/db.go +++ b/internal/store/db.go @@ -439,7 +439,7 @@ type TextMessageRecord struct { Text *string `gorm:"column:text"` PayloadHex *string `gorm:"column:payload_hex"` Topic string `gorm:"column:topic;not null"` - ChannelID *string `gorm:"column:channel_id"` + ChannelID *string `gorm:"column:channel_id;index:idx_text_message_channel_id_created_at,priority:1"` GatewayID *string `gorm:"column:gateway_id"` PacketID *int64 `gorm:"column:packet_id;index:idx_text_message_packet_id"` PacketTo *string `gorm:"column:packet_to"` @@ -458,7 +458,7 @@ type TextMessageRecord struct { MQTTRemoteHost *string `gorm:"column:mqtt_remote_host"` MQTTRemotePort *string `gorm:"column:mqtt_remote_port"` ContentJSON string `gorm:"column:content_json;not null"` - CreatedAt time.Time `gorm:"column:created_at;autoCreateTime;index:idx_text_message_from_num_created_at,priority:2;index:idx_text_message_created_at"` + CreatedAt time.Time `gorm:"column:created_at;autoCreateTime;index:idx_text_message_from_num_created_at,priority:2;index:idx_text_message_created_at;index:idx_text_message_channel_id_created_at,priority:2"` } func (TextMessageRecord) TableName() string { @@ -707,7 +707,7 @@ func (s *Store) migrate() error { model any indexes []string }{ - {label: "text_message", model: &TextMessageRecord{}, indexes: []string{"idx_text_message_from_num_created_at", "idx_text_message_created_at", "idx_text_message_packet_id"}}, + {label: "text_message", model: &TextMessageRecord{}, indexes: []string{"idx_text_message_from_num_created_at", "idx_text_message_created_at", "idx_text_message_packet_id", "idx_text_message_channel_id_created_at"}}, {label: "bot_direct_messages", model: &BotDirectMessageRecord{}, indexes: []string{"idx_bot_dm_bot_peer", "idx_bot_dm_bot_created_at"}}, {label: "llm_message_queue", model: &LLMMessageQueueRecord{}, indexes: []string{"idx_llm_queue_bot_created"}}, } { diff --git a/internal/web/web.go b/internal/web/web.go index e830e21..37eb908 100644 --- a/internal/web/web.go +++ b/internal/web/web.go @@ -84,7 +84,7 @@ func NewRouter(cfg configpkg.WebConfig, consoleLog bool, store *storepkg.Store, return r } -const BackendVersion = "1.0.0" +const BackendVersion = "1.1.0" var CommitVersion = "dev" diff --git a/meshmap_frontend/src/App.vue b/meshmap_frontend/src/App.vue index 339a12c..533ea45 100644 --- a/meshmap_frontend/src/App.vue +++ b/meshmap_frontend/src/App.vue @@ -1,5 +1,5 @@ @@ -739,6 +757,20 @@ onBeforeUnmount(() => { @click="nodeFilter = ''" >清除 +
+ + +
签到列表 使用帮助 管理 diff --git a/meshmap_frontend/src/version.ts b/meshmap_frontend/src/version.ts index cb9e0be..2b17820 100644 --- a/meshmap_frontend/src/version.ts +++ b/meshmap_frontend/src/version.ts @@ -1 +1 @@ -export const FRONTEND_VERSION = '0.1.2' +export const FRONTEND_VERSION = '0.2.0'