import { BaseConversationItem, ConversationState } from "./conversation";

/**
 * 图片对话项（类型为2）
 */
export interface ImageConversationItem extends BaseConversationItem {
  type: 2;
}

// 定义图片对话项的接口
interface PictureDialogueItem {
  id: number;
  pictureDialogueId: number;
  imagesId: number;
  url: string;
  taskId: number | null;
}

/**
 * 单条会话的详细信息
 */
export interface ImageConversationMesg {
  id: number;
  conversationsId: string;
  message: string;
  sentAt: string;
  number: number;
  pictureDialogueItemList: PictureDialogueItem[];
  taskId: number | null;
}

export interface ImageConversationState extends ConversationState {
  conversationList: ImageConversationItem[];
  currentConversationMessages: ImageConversationMesg[];
}
