69 lines
1.3 KiB
Java
Executable File
69 lines
1.3 KiB
Java
Executable File
package com.qingqiu.interview.entity;
|
|
|
|
import com.baomidou.mybatisplus.annotation.*;
|
|
import lombok.Data;
|
|
import lombok.EqualsAndHashCode;
|
|
import lombok.experimental.Accessors;
|
|
|
|
import java.io.Serial;
|
|
import java.io.Serializable;
|
|
import java.time.LocalDateTime;
|
|
|
|
/**
|
|
* <p>
|
|
* ai会话记录
|
|
* </p>
|
|
*
|
|
* @author huangpeng
|
|
* @since 2025-08-30
|
|
*/
|
|
@Data
|
|
@EqualsAndHashCode(callSuper = false)
|
|
@Accessors(chain = true)
|
|
@TableName("ai_session_log")
|
|
public class AiSessionLog implements Serializable {
|
|
|
|
@Serial
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
@TableId(value = "id", type = IdType.AUTO)
|
|
private Long id;
|
|
|
|
/**
|
|
* user 或者 assistant
|
|
*/
|
|
private String role;
|
|
|
|
/**
|
|
* 数据类型 0 普通会话 1 面试会话
|
|
*/
|
|
private Integer dataType;
|
|
|
|
/**
|
|
* 输入内容
|
|
*/
|
|
private String content;
|
|
|
|
/**
|
|
* 生成的会话token
|
|
*/
|
|
private String token;
|
|
|
|
/**
|
|
* 创建时间
|
|
*/
|
|
@TableField(fill = FieldFill.INSERT)
|
|
private LocalDateTime createdTime;
|
|
|
|
/**
|
|
* 更新时间
|
|
*/
|
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
|
private LocalDateTime updatedTime;
|
|
|
|
@TableLogic
|
|
private Integer deleted;
|
|
|
|
|
|
}
|