优化HTTP请求处理和模块租户检查逻辑:支持GET请求参数转换,简化日志消费者配置,改进RPC调用方式
This commit is contained in:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user