/*
import { subDays, subMinutes } from 'date-fns'
import type { Conversation } from '@/types/conversation'

interface ConversationPageResponse {
  code: string
  message: string
  data: {
    records: Conversation[]
    total: number
    size: number
    current: number
    pages: number
  }
  ok: boolean
}

const now = new Date()

function formatDate(date: Date) {
  return date.toISOString().slice(0, 19).replace('T', ' ')
}

function createMockConversation({
  id,
  title,
  daysAgo = 0,
  minutesAgo = 0,
  qaNum,
  toolId,
  isCurrent = false,
}: {
  id: string
  title: string
  daysAgo?: number
  minutesAgo?: number
  qaNum: number
  toolId?: string
  isCurrent?: boolean
}): Conversation {
  const endTime = subMinutes(subDays(now, daysAgo), minutesAgo)
  const startTime = subMinutes(endTime, 5)
  return {
    conversationId: id,
    conversationTitle: title,
    currentConversationFlag: isCurrent,
    startTime: formatDate(startTime),
    endTime: formatDate(endTime),
    qaNum,
    ...(toolId ? { toolId } : {}),
  }
}

const conversationRecords: Conversation[] = [
  createMockConversation({
    id: '1995419273074701146',
    title: '未知会话内容',
    qaNum: 3,
    toolId: '6712395743240',
    isCurrent: true,
  }),
  createMockConversation({
    id: '1995417608679268353',
    title: '资产审评的目标及关键要素1',
    qaNum: 1,
    toolId: '6712395743241',
    minutesAgo: 20,
  }),
  createMockConversation({
    id: '19954143358382255489',
    title: '对公授信材料清单2',
    qaNum: 4,
    daysAgo: 2,
    minutesAgo: 10,
    toolId: '6712395743241',
  }),
  createMockConversation({
    id: '19954114588762233881',
    title: '项目贷款调研要点3',
    toolId: '6712395743240',
    qaNum: 2,
    daysAgo: 9,
  }),
  createMockConversation({
    id: '19954099873351298711',
    title: '投融资合规的最新政策4',
    qaNum: 6,
    daysAgo: 21,
  }),
]

const conversationPageMockResponse: ConversationPageResponse = {
  code: '00000000',
  message: '成功',
  data: {
    records: conversationRecords,
    total: conversationRecords.length,
    size: 100,
    current: 1,
    pages: 1,
  },
  ok: true,
}

export function mockFetchConversationPage() {
  return Promise.resolve(conversationPageMockResponse)
}
*/

export {}
