优化结构
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"database/sql"
|
||||
"errors"
|
||||
"kra/internal/biz/system"
|
||||
datasystem "kra/internal/data/system"
|
||||
"log/slog"
|
||||
"reflect"
|
||||
"strings"
|
||||
@@ -13,6 +14,10 @@ import (
|
||||
"gorm.io/gorm/schema"
|
||||
)
|
||||
|
||||
// dataAccessLogPO is the infrastructure-side write model used by GORM
|
||||
// callbacks. The system module owns the query repository for the same table.
|
||||
type dataAccessLogPO = datasystem.DataAccessLogPO
|
||||
|
||||
// registerDataScopeCallbacks installs the global GORM data-scope engine.
|
||||
// System tables are deliberately excluded: their access is controlled by
|
||||
// Casbin, while ownership columns on business tables are row-level scope.
|
||||
|
||||
Reference in New Issue
Block a user