添加对话消息记录
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package org.jiayunet.mapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.jiayunet.pojo.po.JobAgentChatMessage;
|
||||
|
||||
/**
|
||||
* 求职助手对话消息Mapper
|
||||
*
|
||||
* @author zk
|
||||
*/
|
||||
@Mapper
|
||||
public interface JobAgentChatMessageMapper extends CommonMapper<JobAgentChatMessage> {
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
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_job_agent_chat_message)
|
||||
* <p>记录用户与求职助手的完整对话流,含文本消息和前端维护的JSON数据</p>
|
||||
*
|
||||
* @author zk
|
||||
*/
|
||||
@Data
|
||||
@TableName(value = "bg_job_agent_chat_message")
|
||||
public class JobAgentChatMessage {
|
||||
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
|
||||
/** 用户ID */
|
||||
private Long userId;
|
||||
|
||||
/** 消息类型:user=用户提问 assistant=AI回复 recommend=岗位推荐 apply_progress=投递进度 */
|
||||
private String type;
|
||||
|
||||
/** 文本内容。user=用户提问,assistant=AI回复,recommend=AI推荐描述,apply_progress为null */
|
||||
private String content;
|
||||
|
||||
/** 附加数据JSON。recommend=岗位推荐列表,apply_progress=投递进度,user/assistant为null */
|
||||
private String extra;
|
||||
|
||||
/** 创建时间 */
|
||||
private Instant createTime;
|
||||
}
|
||||
Reference in New Issue
Block a user