package com.cy.guoyan.admin.module.ai.controller.admin.chatsession.vo;

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.cy.guoyan.admin.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static com.cy.guoyan.admin.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - AI聊天会话分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ChatSessionPageReqVO extends PageParam {

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "会话名称", example = "璨阳")
    private String name;

    @Schema(description = "用户ID", example = "31622")
    private String userId;

    @Schema(description = "最后消息时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] lastMessageTime;

    @Schema(description = "Dify返回的会话ID", example = "19644")
    private String conversationId;

    @Schema(description = "Dify 应用 ID（用于多模型支持）", example = "23999")
    private Long appId;

    @Schema(description = "用户输入变量（如文件等）")
    private String inputsJson;

    @Schema(description = "最近一次响应完整 JSON（用于调试）")
    private String responseJson;

    @Schema(description = "当前会话状态，如 active 正常使用中的对话，archived 用户手动归档的历史对话，deleted软删除，前端隐藏，后台可保留数据，init 刚创建但未使用（无消息）")
    private String status;

}