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'