添加简历诊断相关实体类

This commit is contained in:
zk
2026-04-09 10:05:46 +08:00
parent 3070f905b3
commit 0a3c032130
5 changed files with 158 additions and 0 deletions
@@ -0,0 +1,13 @@
package org.jiayunet.mapper;
import org.apache.ibatis.annotations.Mapper;
import org.jiayunet.pojo.po.ResumeDiagnosisIssue;
/**
* 简历诊断问题Mapper
*
* @author zk
*/
@Mapper
public interface ResumeDiagnosisIssueMapper extends CommonMapper<ResumeDiagnosisIssue> {
}
@@ -0,0 +1,13 @@
package org.jiayunet.mapper;
import org.apache.ibatis.annotations.Mapper;
import org.jiayunet.pojo.po.ResumeDiagnosisReport;
/**
* 简历诊断报告Mapper
*
* @author zk
*/
@Mapper
public interface ResumeDiagnosisReportMapper extends CommonMapper<ResumeDiagnosisReport> {
}
@@ -0,0 +1,77 @@
package org.jiayunet.pojo.po;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import java.time.Instant;
import java.util.Map;
/**
* 简历诊断问题表(bg_resume_diagnosis_issue
* <p>存储AI对简历各模块的诊断发现、建议和改写内容</p>
*
* @author zk
*/
@Data
@TableName(value = "bg_resume_diagnosis_issue", autoResultMap = true)
public class ResumeDiagnosisIssue {
@TableId(type = IdType.ASSIGN_ID)
private Long id;
/** 关联report.id */
private Long reportId;
/** 关联bg_user_resume.id */
private Long resumeId;
/** 用户ID */
private Long userId;
/** 模块类型: summary/education/work/internship/project/competition */
private String moduleType;
/** 模块记录IDsummary时为resume_id */
private Long moduleRecordId;
/** 诊断发现 */
private String finding;
/** 为什么重要 */
private String importance;
/** 改进建议 */
private String suggestion;
/** 紧急修复子类型计数 {"typo": 0} */
@TableField(typeHandler = JacksonTypeHandler.class)
private Map<String, Integer> urgentIssues;
/** 重点优化子类型计数 {"no_result": 0, "no_quantify": 0, "weak_relevance": 0} */
@TableField(typeHandler = JacksonTypeHandler.class)
private Map<String, Integer> importantIssues;
/** 表达提升子类型计数 {"not_concise": 0, "format_inconsistent": 0} */
@TableField(typeHandler = JacksonTypeHandler.class)
private Map<String, Integer> expressionIssues;
/** AI改写后的内容,JSON格式 */
@TableField(typeHandler = JacksonTypeHandler.class)
private Object optimizedContent;
/** 状态 0=待处理 1=已处理 */
private Integer status;
/** 用户评价 0=未评价 1=符合 2=不符合 */
private Integer userFeedback;
/** 创建时间 */
private Instant createTime;
/** 更新时间 */
private Instant updateTime;
}
@@ -0,0 +1,49 @@
package org.jiayunet.pojo.po;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.time.Instant;
/**
* 简历诊断报告表(bg_resume_diagnosis_report
* <p>存储AI对简历的整体诊断评级和各类问题统计</p>
*
* @author zk
*/
@Data
@TableName("bg_resume_diagnosis_report")
public class ResumeDiagnosisReport {
@TableId(type = IdType.ASSIGN_ID)
private Long id;
/** 关联bg_user_resume.id */
private Long resumeId;
/** 用户ID */
private Long userId;
/** 评级 A/B/C/D */
private String grade;
/** AI生成的整体评价 */
private String summary;
/** 紧急修复总数 */
private Integer urgentTotal;
/** 重点优化总数 */
private Integer importantTotal;
/** 表达提升总数 */
private Integer expressionTotal;
/** 创建时间 */
private Instant createTime;
/** 更新时间 */
private Instant updateTime;
}