feat: 完成三角色工作台及金租对公Skills全流程演示
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
"""Create the sanitized multi-table leasing demo database."""
|
||||
import argparse
|
||||
import json
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
sys.path.insert(0, str(ROOT / "backend"))
|
||||
|
||||
from services.business_demo_database import DEFAULT_PATH, build_business_demo_database, database_summary
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="生成兴邦金租脱敏多表业务演示库")
|
||||
parser.add_argument("--database", type=Path, default=DEFAULT_PATH)
|
||||
parser.add_argument("--force", action="store_true", help="重新生成指定演示库")
|
||||
args = parser.parse_args()
|
||||
path = build_business_demo_database(args.database, force=args.force)
|
||||
print(json.dumps(database_summary(path), ensure_ascii=False, indent=2))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user