import { MessageLog } from '@/types/message';

export const mockMessageLogs: MessageLog[] = [
  {
    id: 'msg-1',
    templateId: 'tpl-1',
    templateName: '任务分配通知',
    type: 'internal',
    recipient: 'user-2',
    recipientName: '张三',
    subject: '新任务分配',
    content: '您好，张三！您有新的作业任务：小麦播种作业，计划执行时间：2024-10-15 08:00。请及时查看并准备。',
    status: 'sent',
    sentTime: '2024-10-14 09:30:00',
    readTime: '2024-10-14 10:15:00',
    retryCount: 0,
    variables: {
      username: '张三',
      taskName: '小麦播种作业',
      executeTime: '2024-10-15 08:00',
    },
  },
  {
    id: 'msg-2',
    templateId: 'tpl-2',
    templateName: '设备预警通知',
    type: 'sms',
    recipient: '13800138000',
    recipientName: '李四',
    content: '【智慧农业】设备预警：约翰迪尔拖拉机检测到异常，发动机温度过高，请及时处理。',
    status: 'sent',
    sentTime: '2024-10-14 09:30:00',
    retryCount: 0,
  },
  {
    id: 'msg-3',
    templateId: 'tpl-3',
    templateName: '保养提醒',
    type: 'email',
    recipient: 'wangwu@example.com',
    recipientName: '王五',
    subject: '设备保养提醒',
    content: '尊敬的用户：\n\n您的设备约翰迪尔拖拉机（编号：JD-001）已使用500小时，建议进行保养维护...',
    status: 'sent',
    sentTime: '2024-10-14 09:30:00',
    retryCount: 0,
  },
  {
    id: 'msg-4',
    templateId: 'tpl-4',
    templateName: '任务完成通知',
    type: 'push',
    recipient: 'user-2',
    recipientName: '张三',
    subject: '任务完成',
    content: '作业任务小麦播种作业已完成，作业面积：50亩，耗时：3小时。',
    status: 'read',
    sentTime: '2024-10-14 09:30:00',
    readTime: '2024-10-14 10:15:00',
    retryCount: 0,
  },
  {
    id: 'msg-5',
    templateId: 'tpl-5',
    templateName: '验证码',
    type: 'sms',
    recipient: '13900139000',
    recipientName: '赵六',
    content: '【智慧农业】验证码：123456，有效期5分钟。',
    status: 'failed',
    sentTime: '2024-10-14 09:30:00',
    failReason: '手机号码格式错误',
    retryCount: 2,
  },
  {
    id: 'msg-6',
    templateId: 'tpl-6',
    templateName: '系统维护通知',
    type: 'internal',
    recipient: 'user-3',
    recipientName: '钱七',
    subject: '系统维护通知',
    content: '系统将于今晚22:00-24:00进行维护，期间可能影响部分功能使用。',
    status: 'pending',
    sentTime: '2024-10-15 14:20:00',
    retryCount: 0,
  },
  {
    id: 'msg-7',
    templateId: 'tpl-7',
    templateName: '天气预警',
    type: 'push',
    recipient: 'user-4',
    recipientName: '孙八',
    subject: '天气预警',
    content: '未来24小时将有暴雨，请注意防范，做好农田排水工作。',
    status: 'sent',
    sentTime: '2024-10-15 14:20:00',
    retryCount: 0,
  },
  {
    id: 'msg-8',
    templateId: 'tpl-8',
    templateName: '作业报告',
    type: 'email',
    recipient: 'manager@example.com',
    recipientName: '管理员',
    subject: '每日作业报告',
    content: '今日完成播种作业100亩，施肥作业50亩，灌溉作业200亩。',
    status: 'read',
    sentTime: '2024-10-15 14:20:00',
    readTime: '2024-10-15 15:30:00',
    retryCount: 0,
  }
];