优化日志模块:重构操作日志记录与查询功能,支持批量操作日志记录,完善日志查询接口,增加软删除操作类型

This commit is contained in:
2026-01-16 16:55:32 +08:00
committed by 张斌
parent cc940c27b7
commit f0e6bdd37c
8 changed files with 260 additions and 300 deletions

View File

@@ -8,6 +8,7 @@ package mongo
import (
"context"
"fmt"
"gitee.com/red-future---jilin-g/common/log/consts"
"os"
"os/signal"
"strings"
@@ -244,7 +245,7 @@ func (m *DataSourceManager) GetAllDataSourceNames() []string {
func init() {
logPool = grpool.New(1)
serverName = g.Cfg().MustGet(context.TODO(), "server.name").String()
logRedisKey = fmt.Sprintf("log:%s", serverName)
LogRedisKey = fmt.Sprintf(consts.StreamKey, serverName)
ctx := context.Background()