Files
ALL-teach_sys/frontend_视觉设计/scripts/add_resume_content.py
KQL cd2e307402 初始化12个产业教务系统项目
主要内容:
- 包含12个产业的完整教务系统前端代码
- 智能启动脚本 (start-industry.sh)
- 可视化产业导航页面 (index.html)
- 项目文档 (README.md)

优化内容:
- 删除所有node_modules和.yoyo文件夹,从7.5GB减少到2.7GB
- 添加.gitignore文件避免上传不必要的文件
- 自动依赖管理和智能启动系统

产业列表:
1. 文旅产业 (5150)
2. 智能制造 (5151)
3. 智能开发 (5152)
4. 财经商贸 (5153)
5. 视觉设计 (5154)
6. 交通物流 (5155)
7. 大健康 (5156)
8. 土木水利 (5157)
9. 食品产业 (5158)
10. 化工产业 (5159)
11. 能源产业 (5160)
12. 环保产业 (5161)

🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-24 14:14:14 +08:00

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数组中")