kra-oa/internal/data
Yvan e81a641953 优化结构 2026-08-21 11:16:12 +08:00
..
payment 优化结构 2026-08-21 11:16:12 +08:00
repository 优化结构 2026-08-21 10:29:14 +08:00
README.md 优化结构 2026-08-21 10:29:14 +08:00
config_helpers.go 优化结构 2026-08-21 10:29:14 +08:00
config_store.go 优化结构 2026-08-21 10:29:14 +08:00
config_watch.go 优化结构 2026-08-21 10:29:14 +08:00
data.go 优化结构 2026-08-21 10:29:14 +08:00
data_scope.go 优化结构 2026-08-21 10:29:14 +08:00
data_scope_audit.go 优化结构 2026-08-21 10:29:14 +08:00
data_scope_audit_test.go 优化结构 2026-08-21 10:29:14 +08:00
data_scope_record.go 优化结构 2026-08-21 10:29:14 +08:00
data_scope_test.go 优化结构 2026-08-21 10:29:14 +08:00
database.go 优化结构 2026-08-21 10:29:14 +08:00
gorm_logger_test.go 优化结构 2026-08-21 10:29:14 +08:00
initialization_backend.go 优化结构 2026-08-21 10:29:14 +08:00
initialization_backend_test.go 优化结构 2026-08-21 10:29:14 +08:00
integration_config.go 优化结构 2026-08-21 10:29:14 +08:00
integration_config_test.go 优化结构 2026-08-21 10:29:14 +08:00
migrations.go 优化结构 2026-08-21 10:29:14 +08:00
migrations_test.go 优化结构 2026-08-21 10:29:14 +08:00
mongo.go 优化结构 2026-08-21 10:29:14 +08:00
runtime_clients.go 优化结构 2026-08-21 10:29:14 +08:00
websocket_config.go 优化结构 2026-08-21 10:29:14 +08:00
websocket_config_test.go 优化结构 2026-08-21 10:29:14 +08:00

README.md

Data Layer

data owns database clients, persistence models, migrations, configuration watching, and repository implementations.

  • repository/: system repositories and table persistence
  • payment/: payment configuration and payment-order persistence
  • root files: shared database lifecycle, runtime clients, integration-config storage, data-scope auditing, and migration orchestration

Root files intentionally stay in one package because they share Data state and reload locks. Do not split them into packages only to reduce file count.