Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
2026-01-26 21:13:07 +08:00
9 changed files with 195 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ public class TwilioConfig {
@Data
public static class TemplateIds {
private String routezVerificationCode;
private String interviewTemplateCode;
}
}

View File

@@ -61,26 +61,46 @@ public class AiCommonPromptConstants {
"- Core Keywords: Safety first, quality control, project management, teamwork\n" +
"- Key Requirements: Safety awareness, field experience, technical qualifications, stress resistance\n" +
"- Development Path: Technical specialization, project management, safety management, quality control\n" +
"- Typical Skills:\n" +
" * Technical Skills: Project Management, AutoCAD, MS Project, Building Codes, Construction Management, Site Supervision, Quality Control, Safety Management\n" +
" * Soft Skills: Team Leadership, Communication, Problem-solving, Time Management, Conflict Resolution\n" +
" * Certifications: White Card, First Aid Certificate, WHS Certificates, Trade Licenses, PMP (for management roles)\n" +
"\n" +
"### Logistics Industry\n" +
"- Core Keywords: Efficiency optimization, cost control, supply chain management, customer service\n" +
"- Key Requirements: Time management, communication coordination, problem solving, strong responsibility\n" +
"- Development Path: Operations optimization, management advancement, professional certification, cross-departmental development\n" +
"- Typical Skills:\n" +
" * Technical Skills: Warehouse Management, WMS Systems, Transportation Scheduling, Inventory Control, Supply Chain Management, Route Planning, Logistics Software\n" +
" * Soft Skills: Time Management, Customer Service, Communication, Problem-solving, Attention to Detail\n" +
" * Certifications: Forklift License, Dangerous Goods Handling, Supply Chain Certifications\n" +
"\n" +
"### Manufacturing Industry\n" +
"- Core Keywords: Production efficiency, quality standards, safe operations, continuous improvement\n" +
"- Key Requirements: Technical skills, safety awareness, teamwork, learning ability\n" +
"- Development Path: Skill enhancement, team leader, supervisor, professional technical route\n" +
"- Typical Skills:\n" +
" * Technical Skills: Production Management, Quality Inspection, Equipment Operation, Lean Manufacturing, 6S Management, Process Control, Machine Operation\n" +
" * Soft Skills: Teamwork, Attention to Detail, Problem-solving, Continuous Improvement Mindset\n" +
" * Certifications: Machine Operation Licenses, Quality Control Certifications, Safety Certifications\n" +
"\n" +
"### Hospitality Industry\n" +
"- Core Keywords: Customer service, teamwork, flexibility, professional image\n" +
"- Key Requirements: Service mindset, communication skills, stress resistance, language abilities\n" +
"- Development Path: Service specialization, management training, department supervisor, hotel management\n" +
"- Typical Skills:\n" +
" * Technical Skills: Customer Service, Front Desk Management, Booking Systems, Food & Beverage Service, Housekeeping Management, POS Systems\n" +
" * Soft Skills: Multilingual Communication, Guest Relations, Problem-solving, Flexibility, Professional Appearance\n" +
" * Certifications: RSA (Responsible Service of Alcohol), Food Safety, First Aid\n" +
"\n" +
"### Mining Industry\n" +
"- Core Keywords: Safe operations, environmental protection, technical standards, teamwork\n" +
"- Key Requirements: Safety awareness, physical requirements, technical qualifications, emergency response\n" +
"- Development Path: Technical certification, safety management, equipment expertise, field management\n" +
"- Typical Skills:\n" +
" * Technical Skills: Safety Operations, Equipment Maintenance, Geological Exploration, Environmental Monitoring, Emergency Response, Mining Regulations, Heavy Machinery Operation\n" +
" * Soft Skills: Teamwork, Physical Fitness, Stress Management, Attention to Detail, Environmental Awareness\n" +
" * Certifications: Mining Licenses, Heavy Vehicle Licenses, Safety Certifications, First Aid, Emergency Response Training\n" +
"\n" +
"Language Style:\n" +
"- Practical and down-to-earth, close to frontline work\n" +
@@ -89,6 +109,12 @@ public class AiCommonPromptConstants {
"- Emphasize teamwork and responsibility\n" +
"- Avoid overly technical expressions, use clear and understandable language\n" +
"\n" +
"**IMPORTANT - Skills Requirements:**\n" +
"- Skills MUST match the target industry (Construction, Logistics, Manufacturing, Hospitality, Mining)\n" +
"- DO NOT include IT/software development skills (e.g., Python, Java, JavaScript, C#, Angular, React, Node.js) unless the position is specifically for IT roles\n" +
"- Focus on industry-specific technical skills, soft skills, and relevant certifications\n" +
"- Use the \"Typical Skills\" examples provided for each industry as guidance\n" +
"\n" +
"Output Format Requirements:\n" +
"Must return standard JSON format with the following structure:\n" +
"\n" +
@@ -1746,8 +1772,8 @@ public class AiCommonPromptConstants {
"| aboutRole | Text Input | Detailed description about the role, including background, importance, and development prospects |\n" +
"| responsibilities | Text Input | Detailed job responsibilities description, including main work content and specific tasks |\n" +
"| roleBenefitsList | Structure+Value Rules | 1. Structure: Array, each element contains only keyValue field;<br>2. Values: Free text such as \"Health Insurance\", \"Annual Bonus\", \"Paid Time Off\", etc.;<br>3. Quantity: 3-8 items |\n" +
"| requiredSkillsList | Structure+Value Rules | 1. Structure: Array, each element contains only keyValue field;<br>2. Values: Must be \"Angular 4+ & RxJS\"/\"Financial Services Industry Experience\"/\"Health & Travel Account Modification\"/\"Information Technology\";<br>3. Quantity: 1-5 items |\n" +
"| niceToHaveSkillsList | Structure+Value Rules | 1. Structure: Array, each element contains only keyValue field;<br>2. Values: Must be \"Financial Services Industry Experience\"/\"Health & Travel Account Modification\"/\"Information Technology\";<br>3. Quantity: 0-3 items |\n" +
"| requiredSkillsList | Structure+Value Rules | 1. Structure: Array, each element contains only keyValue field;<br>2. Values: Must match the target industry and position. Generate industry-appropriate skills:<br> - Construction: Project Management, Safety Management, Quality Control, AutoCAD, Construction Management, Site Supervision, Building Codes<br> - Logistics: Warehouse Management, Transportation Scheduling, Inventory Control, WMS Systems, Supply Chain Management, Route Planning<br> - Manufacturing: Production Management, Quality Inspection, Equipment Operation, Lean Manufacturing, 6S Management, Process Control<br> - Hospitality: Customer Service, Front Desk Management, Food & Beverage Service, Multilingual Communication, Booking Systems, Guest Relations<br> - Mining: Safety Operations, Equipment Maintenance, Geological Exploration, Environmental Monitoring, Emergency Response, Mining Regulations<br>3. Quantity: 1-5 items |\n" +
"| niceToHaveSkillsList | Structure+Value Rules | 1. Structure: Array, each element contains only keyValue field;<br>2. Values: Must match the target industry and position. Generate industry-appropriate optional skills based on the examples above;<br>3. Quantity: 0-3 items |\n" +
"| educationRequirements | Structure+Optional Values | 1. Structure: Object containing academicMajor, degree;<br>2. academicMajor: Only allow \"Computer Science\";<br>3. degree: Only allow \"Bachelor's Degree\"/\"Bachelor's degree or equivalent\" |\n" +
"| certificationsLicensesList | Structure+Value Rules | 1. Structure: Array, each element contains type, val;<br>2. type: Only allow \"standard\"/\"customize\";<br>3. val (standard): Only allow \"AWS Certified Solutions Architect\"/\"CISSP Certified Information Systems Security Professional\"/\"PMP Certified\";<br>4. Quantity: 0-3 items |\n" +
"\n" +
@@ -1762,6 +1788,12 @@ public class AiCommonPromptConstants {
"8. aboutRole and responsibilities are text fields that require detailed descriptions;\n" +
"9. roleBenefitsList is in array format, containing 3-8 role benefits.\n" +
"\n" +
"**CRITICAL - Skills Generation Rules:**\n" +
"- Skills in requiredSkillsList and niceToHaveSkillsList MUST match the target industry\n" +
"- For Construction/Logistics/Manufacturing/Hospitality/Mining industries, DO NOT generate IT/software development skills (Python, Java, JavaScript, C#, Angular, React, Node.js, etc.)\n" +
"- Generate industry-appropriate skills based on the examples provided in the constraint rules table\n" +
"- Skills should reflect the actual requirements of the position and industry\n" +
"\n" +
"## API Response Format Requirements\n" +
"- Top-level fields: code (fixed 0), data (HotakeRolesInfoDtoRes), message (empty string), timestamp (current time, format YYYY-MM-DDTHH:MM:SS);\n" +
"- Strictly exclude: createTime, updateTime, uuid, sysUserType, speechSpeed, acceptEquivalentWorkFlag;\n" +

View File

@@ -39,6 +39,16 @@ public interface VerificationService {
*/
boolean sendTemplateCode(String email,String code, String templateId, BaseTemplateEmail templateEmail);
/**
* 发送面试邀请邮件 (内容走的官网配置模板)
*
* @param email 收件人邮箱
* @param templateId 官网模板ID
* @param templateEmail 模板参数实体
* @return
*/
boolean sendInterviewTemplate(String email,String templateId, BaseTemplateEmail templateEmail);
/**
* 验证验证码是否有效
*

View File

@@ -114,6 +114,27 @@ public class VerificationServiceImpl implements VerificationService {
}
}
/**
* 发送面试邀请邮件 (内容走的官网配置模板)
*
* @param email 收件人邮箱
* @param templateId 官网模板ID
* @param templateEmail 模板参数实体
* @return
*/
@Override
public boolean sendInterviewTemplate(String email,String templateId, BaseTemplateEmail templateEmail) {
try {
emailUtil.sendEmail(email, templateId, templateEmail);
return true;
} catch (Exception e) {
// 记录日志
e.printStackTrace();
return false;
}
}
/**
* 验证验证码是否有效
*