feat: 管理端登录日志与操作审计 (#18)

This commit is contained in:
ila
2026-09-10 20:37:46 +08:00
parent 1e77f1026b
commit 850c78e2aa
22 changed files with 904 additions and 41 deletions
+2 -1
View File
@@ -12,12 +12,13 @@ def main():
"migrate": ["go", "run", "./cmd/lexgo", "migrate"],
"bootstrap": ["go", "run", "./cmd/lexgo", "bootstrap"],
"serve": ["go", "run", "./cmd/lexgo", "serve"],
"audit-cleanup": ["go", "run", "./cmd/lexgo", "audit-cleanup"],
"build": ["go", "build", "./cmd/lexgo"],
"test": ["go", "test", "./...", "-count=1"],
"test-integration": ["go", "test", "./...", "-count=1", "-v"],
}
if len(sys.argv) != 2 or sys.argv[1] not in commands:
raise SystemExit("Usage: python scripts/server.py migrate|bootstrap|serve|build|test|test-integration")
raise SystemExit("Usage: python scripts/server.py migrate|bootstrap|serve|audit-cleanup|build|test|test-integration")
env = dict(os.environ)
config = ROOT / ".env.local"
if config.exists():