package com.seer.teach.teacher.module.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.seer.teach.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author Wang
 * @since 2025-10-29 19:08:14
 */
@Getter
@Setter
@ToString
@TableName("teacher_llm_request_logs")
@Schema(name = "LlmRequestLogsEntity对象", description = "")
public class LlmRequestLogsEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Schema(description = "userId")
    @TableField("user_id")
    private Integer userId;

    @Schema(description = "会话ID")
    @TableField("session_id")
    private Integer sessionId;

    @Schema(description = "请求类型")
    @TableField("request_type")
    private String requestType;

    @Schema(description = "请求描述")
    @TableField("request_desc")
    private String requestDesc;

    @Schema(description = "关键参数")
    @TableField("key_parameters")
    private String keyParameters;

    @Schema(description = "请求参数")
    @TableField("request")
    private String request;

    @Schema(description = "响应数据")
    @TableField("response")
    private String response;

    @Schema(description = "0成功 1失败")
    @TableField("`status`")
    private Integer status;

    @Schema(description = "错误数据")
    @TableField("error_message")
    private String errorMessage;

    @Schema(description = "耗时时间")
    @TableField("use_time")
    private Integer useTime;

    @Schema(description = "sse开始时间")
    @TableField("start_time")
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    @TableField("end_time")
    private LocalDateTime endTime;

}
