25 lines
754 B
Python
25 lines
754 B
Python
#!/usr/bin/env python3
|
|
from pathlib import Path
|
|
import sys
|
|
|
|
|
|
PROJECT_ROOT = Path(__file__).resolve().parents[1]
|
|
MOCK_ROOT = PROJECT_ROOT / "lsfx-mock-server"
|
|
if str(MOCK_ROOT) not in sys.path:
|
|
sys.path.insert(0, str(MOCK_ROOT))
|
|
|
|
from services.staff_credit_html_export_service import StaffCreditHtmlExportService
|
|
from services.staff_identity_repository import StaffIdentityRepository
|
|
|
|
|
|
def main() -> int:
|
|
output_dir = PROJECT_ROOT / "assets" / "征信解析员工样本"
|
|
service = StaffCreditHtmlExportService(StaffIdentityRepository())
|
|
generated_files = service.export(output_dir)
|
|
print(f"已生成 {len(generated_files)} 个员工征信 HTML 到: {output_dir}")
|
|
return 0
|
|
|
|
|
|
if __name__ == "__main__":
|
|
raise SystemExit(main())
|