新增征信员工HTML样本并改造Mock解析
This commit is contained in:
24
bin/generate_credit_staff_html.py
Normal file
24
bin/generate_credit_staff_html.py
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/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())
|
||||
Reference in New Issue
Block a user