export interface WishingTree {
  id: number
  name: string
  description: string
  longitude: number
  latitude: number
  address: string
  radius: number
  coverImage: string
  totalWishes: number
  isActive: boolean
  distance?: number
  isInRange?: boolean
}

export interface Wish {
  id: number
  treeId: number
  treeName: string
  userId: string
  content: string
  images: string[]
  lng: number
  lat: number
  address: string
  isPublic: boolean
  tags: string[]
  likes: number
  status: 0 | 1
  createdAt: string
}

// 许愿树 mock 数据
export const mockTrees: WishingTree[] = [
  {
    id: 1,
    name: '千年银杏许愿树',
    description: '位于公园中心的千年银杏树，每年秋天金黄的落叶铺满大地，是许下美好心愿的理想之地。据传这棵银杏树已有1200年历史，见证了无数人的悲欢离合。',
    longitude: 116.4074,
    latitude: 39.9042,
    address: '北京市东城区景山公园中心广场',
    radius: 150,
    coverImage: 'https://picsum.photos/seed/tree1/400/300',
    totalWishes: 9999,
    isActive: true,
  },
  {
    id: 2,
    name: '祈福樱花树',
    description: '春天的樱花树下，粉色花瓣随风飘落，许下的愿望将随着花香飘向天空。每年3-4月是最佳许愿时节。',
    longitude: 116.3974,
    latitude: 39.9142,
    address: '北京市西城区玉渊潭公园樱花区',
    radius: 100,
    coverImage: 'https://picsum.photos/seed/tree2/400/300',
    totalWishes: 8888,
    isActive: true,
  },
  {
    id: 3,
    name: '菩提许愿树',
    description: '寺庙内百年菩提树，佛陀曾在此树下悟道，许下心灵深处的愿望，让智慧之光点亮前路。',
    longitude: 116.3874,
    latitude: 39.8942,
    address: '北京市海淀区大钟寺内',
    radius: 80,
    coverImage: 'https://picsum.photos/seed/tree3/400/300',
    totalWishes: 6666,
    isActive: true,
  },
  {
    id: 4,
    name: '牵缘许愿树',
    description: '连理枝下许心愿，愿天下有情人终成眷属。许多情侣在这里留下了爱的见证。',
    longitude: 116.4174,
    latitude: 39.9242,
    address: '北京市朝阳区朝阳公园湖边',
    radius: 120,
    coverImage: 'https://picsum.photos/seed/tree4/400/300',
    totalWishes: 7777,
    isActive: true,
  },
  {
    id: 5,
    name: '平安许愿松',
    description: '山顶古松傲立，俯瞰整座城市。在此许下平安健康的心愿，让松树的坚韧守护你的祝福。',
    longitude: 116.3674,
    latitude: 39.9342,
    address: '北京市海淀区香山公园山顶',
    radius: 200,
    coverImage: 'https://picsum.photos/seed/tree5/400/300',
    totalWishes: 5555,
    isActive: true,
  },
  {
    id: 6,
    name: '外滩许愿墙',
    description: '黄浦江畔，万国建筑群前，对江许下心愿，让繁华都市见证你的梦想。夜晚华灯初上时最浪漫。',
    longitude: 121.4903,
    latitude: 31.2405,
    address: '上海市黄浦区外滩观景平台',
    radius: 120,
    coverImage: 'https://picsum.photos/seed/tree6/400/300',
    totalWishes: 7890,
    isActive: true,
  },
  {
    id: 7,
    name: '白塔许愿台',
    description: '广州白塔下，珠江夜景尽收眼底，对着江水许下最真诚的愿望，让江水带走烦恼。',
    longitude: 113.2644,
    latitude: 23.1291,
    address: '广州市越秀区白塔公园山顶',
    radius: 100,
    coverImage: 'https://picsum.photos/seed/tree7/400/300',
    totalWishes: 6543,
    isActive: true,
  },
  {
    id: 8,
    name: '锦鲤许愿池',
    description: '宽窄巷子里的百年许愿池，池中锦鲤游弋，投一枚硬币许下心愿，好运自然来。',
    longitude: 104.0574,
    latitude: 30.6727,
    address: '成都市青羊区宽窄巷子中心广场',
    radius: 80,
    coverImage: 'https://picsum.photos/seed/tree8/400/300',
    totalWishes: 10234,
    isActive: true,
  },
]

// 愿望 mock 数据
export const mockWishes: Wish[] = [
  {
    id: 1,
    treeId: 1,
    treeName: '千年银杏许愿树',
    userId: 'user1',
    content: '希望家人身体健康，平安喜乐，新的一年一切顺利！',
    images: ['https://picsum.photos/seed/wish1/400/400'],
    lng: 116.4074,
    lat: 39.9042,
    address: '北京市东城区景山公园中心广场',
    isPublic: true,
    tags: ['健康', '平安'],
    likes: 128,
    status: 0,
    createdAt: '2026-05-15 10:30:00',
  },
  {
    id: 2,
    treeId: 1,
    treeName: '千年银杏许愿树',
    userId: 'user2',
    content: '希望今年考研顺利上岸，进入理想的学校！',
    images: [],
    lng: 116.4072,
    lat: 39.9040,
    address: '北京市东城区景山公园中心广场',
    isPublic: true,
    tags: ['学业'],
    likes: 56,
    status: 0,
    createdAt: '2026-05-15 11:00:00',
  },
  {
    id: 3,
    treeId: 2,
    treeName: '祈福樱花树',
    userId: 'user3',
    content: '愿得一人心，白首不相离。希望能遇到对的人。',
    images: ['https://picsum.photos/seed/wish3/400/400'],
    lng: 116.3974,
    lat: 39.9142,
    address: '北京市西城区玉渊潭公园樱花区',
    isPublic: true,
    tags: ['爱情'],
    likes: 99,
    status: 0,
    createdAt: '2026-05-14 15:20:00',
  },
  {
    id: 4,
    treeId: 2,
    treeName: '祈福樱花树',
    userId: 'user1',
    content: '希望事业蒸蒸日上，拿到满意的offer！',
    images: [],
    lng: 116.3975,
    lat: 39.9140,
    address: '北京市西城区玉渊潭公园樱花区',
    isPublic: false,
    tags: ['事业'],
    likes: 0,
    status: 0,
    createdAt: '2026-05-14 16:00:00',
  },
  {
    id: 5,
    treeId: 3,
    treeName: '菩提许愿树',
    userId: 'user2',
    content: '愿世间所有美好都如期而至，愿所有遗憾都随风而逝。',
    images: ['https://picsum.photos/seed/wish5/400/400', 'https://picsum.photos/seed/wish5b/400/400'],
    lng: 116.3874,
    lat: 39.8942,
    address: '北京市海淀区大钟寺内',
    isPublic: true,
    tags: ['平安', '祈福'],
    likes: 233,
    status: 0,
    createdAt: '2026-05-13 09:15:00',
  },
  {
    id: 6,
    treeId: 4,
    treeName: '牵缘许愿树',
    userId: 'user3',
    content: '希望和喜欢的人永远在一起，长长久久。',
    images: [],
    lng: 116.4174,
    lat: 39.9242,
    address: '北京市朝阳区朝阳公园湖边',
    isPublic: true,
    tags: ['爱情'],
    likes: 77,
    status: 0,
    createdAt: '2026-05-12 14:00:00',
  },
  {
    id: 7,
    treeId: 1,
    treeName: '千年银杏许愿树',
    userId: 'user4',
    content: '希望今年能存够钱，带爸妈去旅行一次！',
    images: ['https://picsum.photos/seed/wish7/400/400'],
    lng: 116.4073,
    lat: 39.9041,
    address: '北京市东城区景山公园中心广场',
    isPublic: true,
    tags: ['财富', '健康'],
    likes: 45,
    status: 0,
    createdAt: '2026-05-12 10:00:00',
  },
  {
    id: 8,
    treeId: 5,
    treeName: '平安许愿松',
    userId: 'user1',
    content: '登高望远，愿你三冬暖，愿你春不寒，愿你天黑有灯，下雨有伞。',
    images: ['https://picsum.photos/seed/wish8/400/400', 'https://picsum.photos/seed/wish8b/400/400', 'https://picsum.photos/seed/wish8c/400/400'],
    lng: 116.3674,
    lat: 39.9342,
    address: '北京市海淀区香山公园山顶',
    isPublic: true,
    tags: ['平安', '祈福'],
    likes: 188,
    status: 0,
    createdAt: '2026-05-11 08:30:00',
  },
  {
    id: 9,
    treeId: 6,
    treeName: '外滩许愿墙',
    userId: 'user2',
    content: '站在外滩看对岸陆家嘴的灯火，许愿有一天也能在这里拥有自己的一片天地。',
    images: ['https://picsum.photos/seed/wish9/400/400'],
    lng: 121.4903,
    lat: 31.2405,
    address: '上海市黄浦区外滩观景平台',
    isPublic: true,
    tags: ['事业', '梦想'],
    likes: 302,
    status: 0,
    createdAt: '2026-05-10 19:30:00',
  },
  {
    id: 10,
    treeId: 8,
    treeName: '锦鲤许愿池',
    userId: 'user3',
    content: '投了三次硬币才投进许愿池中央！锦鲤保佑，希望今年好运连连！',
    images: ['https://picsum.photos/seed/wish10/400/400'],
    lng: 104.0574,
    lat: 30.6727,
    address: '成都市青羊区宽窄巷子中心广场',
    isPublic: true,
    tags: ['好运', '财富'],
    likes: 67,
    status: 0,
    createdAt: '2026-05-09 13:20:00',
  },
]
