feat: align ids to int64

This commit is contained in:
2026-01-08 09:57:04 +08:00
parent a1de16bc01
commit d98f41f1ac
39 changed files with 298 additions and 339 deletions

View File

@@ -3,17 +3,13 @@ package services
import (
"context"
"quyun/v2/pkg/consts"
"github.com/sirupsen/logrus"
"github.com/spf13/cast"
)
// @provider
type audit struct{}
func (s *audit) Log(ctx context.Context, action, targetID, detail string) {
operatorID := cast.ToInt64(ctx.Value(consts.CtxKeyUser))
func (s *audit) Log(ctx context.Context, operatorID int64, action, targetID, detail string) {
logrus.WithFields(logrus.Fields{
"audit": true,
"operator": operatorID,