优化HTTP请求处理和模块租户检查逻辑:支持GET请求参数转换,简化日志消费者配置,改进RPC调用方式

This commit is contained in:
2026-03-02 14:22:08 +08:00
committed by 张斌
parent dd2cba70f6
commit 62dab53108
4 changed files with 50 additions and 13 deletions

View File

@@ -15,7 +15,8 @@ type operationLog struct{}
// OperationLog 操作日志服务
var OperationLog = &operationLog{}
func (s *operationLog) AddOperationLog(ctx context.Context, msg map[string]interface{}) error {
func (s *operationLog) AddOperationLog(ctx context.Context, msgData any) error {
msg := gconv.MapStrStr(msgData)
serviceName := gconv.String(msg["service_name"])
collection := gconv.String(msg["collection"])
collectionId := gconv.Strings(msg["collection_id"])