package com.pavis.admin.aigc.model.query;

import lombok.Data;

import io.swagger.v3.oas.annotations.media.Schema;

import top.continew.starter.data.core.annotation.Query;
import top.continew.starter.data.core.enums.QueryType;
import java.io.Serial;
import java.io.Serializable;
import java.time.*;

/**
 * 智能对话会话查询条件
 *
 * @author semi
 * @since 2025/05/26 17:28
 */
@Data
@Schema(description = "智能对话会话查询条件")
public class ConversationQuery implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 所属用户ID
     */
    @Schema(description = "所属用户ID")
    @Query(type = QueryType.EQ)
    private Long userId;

    /**
     * 关联应用ID
     */
    @Schema(description = "关联应用ID")
    @Query(type = QueryType.EQ)
    private Long appId;

    /**
     * 使用模型ID
     */
    @Schema(description = "使用模型ID")
    @Query(type = QueryType.EQ)
    private Long modelId;

    /**
     * 对话标题
     */
    @Schema(description = "对话标题")
    @Query(type = QueryType.EQ)
    private String title;

    /**
     * 最后活动时间
     */
    @Schema(description = "最后活动时间")
    @Query(type = QueryType.EQ)
    private LocalDateTime lastActive;

    /**
     * 创建人
     */
    @Schema(description = "创建人")
    @Query(type = QueryType.EQ)
    private Long createUser;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @Query(type = QueryType.EQ)
    private LocalDateTime createTime;
}