- 包含4个产业方向的前端项目:智能开发、智能制造、大健康、财经商贸 - 已清理node_modules、.yoyo等大文件,项目大小从2.6GB优化至631MB - 配置完善的.gitignore文件 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
90 lines
2.9 KiB
Python
90 lines
2.9 KiB
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import json
|
|
import re
|
|
|
|
# 读取简历映射数据
|
|
with open('/Users/apple/Documents/cursor/教务系统/frontend/scripts/resume_mapping.json', 'r', encoding='utf-8') as f:
|
|
position_map = json.load(f)
|
|
|
|
# 读取当前的mockData.js文件
|
|
with open('/Users/apple/Documents/cursor/教务系统/frontend/src/data/mockData.js', 'r', encoding='utf-8') as f:
|
|
content = f.read()
|
|
|
|
# 为文旅行业创建新的positions数据
|
|
tourism_positions = []
|
|
|
|
# 选择一些文旅相关的岗位
|
|
tourism_jobs = [
|
|
"民宿管家",
|
|
"民宿客房管家",
|
|
"民宿运营专员",
|
|
"酒店大堂副理",
|
|
"酒店运营专员",
|
|
"酒店餐饮主管",
|
|
"餐厅运营经理",
|
|
"客房经理",
|
|
"景区运营专员",
|
|
"活动策划师",
|
|
"活动执行",
|
|
"文创产品设计师",
|
|
"文创产品策划师",
|
|
"新媒体运营专员",
|
|
"直播助理",
|
|
"社群运营"
|
|
]
|
|
|
|
# 创建文旅行业的完整数据结构
|
|
tourism_industry = {
|
|
"id": "tourism",
|
|
"name": "文旅行业",
|
|
"positions": []
|
|
}
|
|
|
|
for i, job_name in enumerate(tourism_jobs):
|
|
if job_name in position_map:
|
|
resume_data = position_map[job_name]
|
|
position = {
|
|
"id": f"tourism-{i+1}",
|
|
"name": job_name,
|
|
"company": "文旅集团",
|
|
"level": "技术骨干岗" if i % 2 == 0 else "储备干部岗",
|
|
"salary": "8-15K",
|
|
"experience": "1-3年",
|
|
"resume": {
|
|
"personalInfo": {
|
|
"name": f"应聘者{i+1}",
|
|
"phone": "138****8888",
|
|
"email": f"candidate{i+1}@example.com",
|
|
"location": "苏州市"
|
|
},
|
|
"education": {
|
|
"university": "苏州信息职业技术学院",
|
|
"major": "智慧旅游技术应用",
|
|
"degree": "专科",
|
|
"graduationYear": "2023",
|
|
"period": "2020.9 - 2023.6"
|
|
},
|
|
"projectExperience": resume_data['projectExperience'],
|
|
"skills": resume_data['skills'],
|
|
"personalSummary": resume_data['personalSummary']
|
|
},
|
|
"interviews": {
|
|
"hookQuestions": [
|
|
f"{job_name}的核心职责是什么?",
|
|
"如何提升客户满意度?",
|
|
"您的相关经验有哪些?",
|
|
"如何处理突发情况?",
|
|
"团队协作经验分享?"
|
|
],
|
|
"allQuestions": []
|
|
}
|
|
}
|
|
tourism_industry["positions"].append(position)
|
|
|
|
# 输出JavaScript格式的数据
|
|
print("// 文旅行业positions数据")
|
|
print("const tourismIndustry = " + json.dumps(tourism_industry, ensure_ascii=False, indent=2) + ";")
|
|
print()
|
|
print("// 请将上述数据添加到mockData.js的ResumeInterviewPage.industries数组中") |