import { mockDate } from '../index'

export interface PlantWikiClass {
  id: string; name: string; sort: number; parentId?: string
  children?: PlantWikiClass[]; createdAt: string; updatedAt: string
}

export interface PlantWiki {
  id: string; title: string; classId: string; className?: string
  content: string; cover?: string; status: number
  createdAt: string; updatedAt: string
}

export const mockWikiClasses: PlantWikiClass[] = [
  { id: '1', name: '观叶植物', sort: 0, createdAt: mockDate(60), updatedAt: mockDate(1) },
  { id: '2', name: '多肉植物', sort: 1, createdAt: mockDate(60), updatedAt: mockDate(1) },
  { id: '3', name: '花卉植物', sort: 2, createdAt: mockDate(60), updatedAt: mockDate(1) },
  { id: '4', name: '果蔬类', sort: 3, createdAt: mockDate(30), updatedAt: mockDate(1) },
]

export const mockWikis: PlantWiki[] = [
  { id: '1', title: '绿萝养护指南', classId: '1', className: '观叶植物', content: '绿萝是最常见的室内观叶植物...', cover: 'https://picsum.photos/seed/greenplant/300/200', status: 1, createdAt: mockDate(30), updatedAt: mockDate(2) },
  { id: '2', title: '多肉浇水技巧', classId: '2', className: '多肉植物', content: '多肉植物浇水需要遵循...', cover: 'https://picsum.photos/seed/succulent/300/200', status: 1, createdAt: mockDate(25), updatedAt: mockDate(1) },
  { id: '3', title: '月季修剪方法', classId: '3', className: '花卉植物', content: '月季修剪的最佳时期...', cover: 'https://picsum.photos/seed/rose2/300/200', status: 1, createdAt: mockDate(20), updatedAt: mockDate(3) },
  { id: '4', title: '番茄种植攻略', classId: '4', className: '果蔬类', content: '家庭番茄种植从播种到收获...', cover: 'https://picsum.photos/seed/tomato/300/200', status: 0, createdAt: mockDate(10), updatedAt: mockDate(1) },
]
