From f7a1c8b58031773a314702df231d4a395c6d9d94 Mon Sep 17 00:00:00 2001 From: Leo <98382335+gaoziman@users.noreply.github.com> Date: Thu, 9 Oct 2025 23:44:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0Mock=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=92=8CAPI=E6=9C=8D=E5=8A=A1=E5=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 创建完整的Mock数据(非遗项目、传承人、资讯、活动等) - 实现API服务函数(列表查询、详情获取、筛选排序等) - 支持分页和多条件筛选功能 --- src/services/api.ts | 348 +++++++++ src/services/mockData.ts | 1594 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 1942 insertions(+) create mode 100644 src/services/api.ts create mode 100644 src/services/mockData.ts diff --git a/src/services/api.ts b/src/services/api.ts new file mode 100644 index 0000000..72e74af --- /dev/null +++ b/src/services/api.ts @@ -0,0 +1,348 @@ +/** + * 非遗文化传承网站 - API 服务层 + * 提供数据获取接口(当前使用 Mock 数据) + */ + +import type { + HeritageItem, + Inheritor, + NewsArticle, + Event, + Statistics, + Comment, + User, + PaginationParams, + PaginationResult, + FilterParams, +} from '@types/index' +import { mockData } from './mockData' + +// 模拟网络延迟 +const delay = (ms: number = 300) => new Promise((resolve) => setTimeout(resolve, ms)) + +// ===== 统计数据接口 ===== +export const getStatistics = async (): Promise => { + await delay() + return mockData.statistics +} + +// ===== 非遗项目接口 ===== +export const getHeritageList = async ( + params?: FilterParams & PaginationParams +): Promise> => { + await delay() + + let items = [...mockData.heritageItems] + + // 应用筛选 + if (params?.category) { + const categories = Array.isArray(params.category) ? params.category : [params.category] + items = items.filter((item) => categories.includes(item.category)) + } + + if (params?.level) { + const levels = Array.isArray(params.level) ? params.level : [params.level] + items = items.filter((item) => levels.includes(item.level)) + } + + if (params?.province) { + const provinces = Array.isArray(params.province) ? params.province : [params.province] + items = items.filter((item) => provinces.includes(item.province)) + } + + if (params?.search) { + const search = params.search.toLowerCase() + items = items.filter( + (item) => + item.name.toLowerCase().includes(search) || + item.description.toLowerCase().includes(search) || + item.tags.some((tag) => tag.toLowerCase().includes(search)) + ) + } + + // 应用排序 + if (params?.sortBy) { + const order = params.sortOrder === 'desc' ? -1 : 1 + items.sort((a, b) => { + const aVal = a[params.sortBy as keyof HeritageItem] + const bVal = b[params.sortBy as keyof HeritageItem] + if (typeof aVal === 'number' && typeof bVal === 'number') { + return (aVal - bVal) * order + } + return String(aVal).localeCompare(String(bVal)) * order + }) + } + + // 分页 + const page = params?.page || 1 + const pageSize = params?.pageSize || 12 + const total = items.length + const totalPages = Math.ceil(total / pageSize) + const start = (page - 1) * pageSize + const end = start + pageSize + + return { + data: items.slice(start, end), + total, + page, + pageSize, + totalPages, + } +} + +export const getHeritageById = async (id: string): Promise => { + await delay() + return mockData.heritageItems.find((item) => item.id === id) || null +} + +export const getFeaturedHeritage = async (limit: number = 6): Promise => { + await delay() + return mockData.heritageItems + .sort((a, b) => b.viewCount - a.viewCount) + .slice(0, limit) +} + +// ===== 传承人接口 ===== +export const getInheritorList = async ( + params?: FilterParams & PaginationParams +): Promise> => { + await delay() + + let items = [...mockData.inheritors] + + // 应用筛选 + if (params?.province) { + const provinces = Array.isArray(params.province) ? params.province : [params.province] + items = items.filter((item) => provinces.includes(item.province)) + } + + if (params?.search) { + const search = params.search.toLowerCase() + items = items.filter( + (item) => + item.name.toLowerCase().includes(search) || + item.bio.toLowerCase().includes(search) || + item.title.toLowerCase().includes(search) + ) + } + + // 分页 + const page = params?.page || 1 + const pageSize = params?.pageSize || 12 + const total = items.length + const totalPages = Math.ceil(total / pageSize) + const start = (page - 1) * pageSize + const end = start + pageSize + + return { + data: items.slice(start, end), + total, + page, + pageSize, + totalPages, + } +} + +export const getInheritorById = async (id: string): Promise => { + await delay() + return mockData.inheritors.find((item) => item.id === id) || null +} + +export const getFeaturedInheritors = async (limit: number = 4): Promise => { + await delay() + return mockData.inheritors + .sort((a, b) => b.followers - a.followers) + .slice(0, limit) +} + +// ===== 资讯接口 ===== +export const getNewsList = async ( + params?: FilterParams & PaginationParams +): Promise> => { + await delay() + + let items = [...mockData.news] + + // 应用筛选 + if (params?.category) { + const categories = Array.isArray(params.category) ? params.category : [params.category] + items = items.filter((item) => categories.includes(item.category)) + } + + if (params?.search) { + const search = params.search.toLowerCase() + items = items.filter( + (item) => + item.title.toLowerCase().includes(search) || + item.summary.toLowerCase().includes(search) + ) + } + + // 分页 + const page = params?.page || 1 + const pageSize = params?.pageSize || 10 + const total = items.length + const totalPages = Math.ceil(total / pageSize) + const start = (page - 1) * pageSize + const end = start + pageSize + + return { + data: items.slice(start, end), + total, + page, + pageSize, + totalPages, + } +} + +export const getNewsById = async (id: string): Promise => { + await delay() + return mockData.news.find((item) => item.id === id) || null +} + +export const getLatestNews = async (limit: number = 5): Promise => { + await delay() + return mockData.news + .sort((a, b) => new Date(b.publishDate).getTime() - new Date(a.publishDate).getTime()) + .slice(0, limit) +} + +// ===== 活动接口 ===== +export const getEventList = async ( + params?: FilterParams & PaginationParams +): Promise> => { + await delay() + + let items = [...mockData.events] + + // 应用筛选 + if (params?.type) { + const types = Array.isArray(params.type) ? params.type : [params.type] + items = items.filter((item) => types.includes(item.type)) + } + + if (params?.status) { + const statuses = Array.isArray(params.status) ? params.status : [params.status] + items = items.filter((item) => statuses.includes(item.status)) + } + + if (params?.search) { + const search = params.search.toLowerCase() + items = items.filter( + (item) => + item.title.toLowerCase().includes(search) || + item.description.toLowerCase().includes(search) + ) + } + + // 分页 + const page = params?.page || 1 + const pageSize = params?.pageSize || 10 + const total = items.length + const totalPages = Math.ceil(total / pageSize) + const start = (page - 1) * pageSize + const end = start + pageSize + + return { + data: items.slice(start, end), + total, + page, + pageSize, + totalPages, + } +} + +export const getEventById = async (id: string): Promise => { + await delay() + return mockData.events.find((item) => item.id === id) || null +} + +export const getUpcomingEvents = async (limit: number = 4): Promise => { + await delay() + return mockData.events + .filter((event) => event.status === 'upcoming') + .sort((a, b) => new Date(a.startDate).getTime() - new Date(b.startDate).getTime()) + .slice(0, limit) +} + +// ===== 评论接口 ===== +export const getCommentsByTarget = async ( + targetType: 'heritage' | 'inheritor' | 'news', + targetId: string +): Promise => { + await delay() + return mockData.comments.filter( + (comment) => comment.targetType === targetType && comment.targetId === targetId + ) +} + +export const addComment = async (comment: Omit): Promise => { + await delay() + const newComment: Comment = { + ...comment, + id: `cm${Date.now()}`, + createdAt: new Date().toISOString(), + updatedAt: new Date().toISOString(), + } + mockData.comments.push(newComment) + return newComment +} + +// ===== 用户接口 ===== +export const getUserById = async (id: string): Promise => { + await delay() + return mockData.users.find((user) => user.id === id) || null +} + +export const login = async (username: string, password: string): Promise => { + await delay() + // Mock 登录逻辑 + const user = mockData.users.find((u) => u.username === username) + return user || null +} + +export const register = async (userData: Partial): Promise => { + await delay() + const newUser: User = { + id: `u${Date.now()}`, + username: userData.username || '', + nickname: userData.nickname || '', + avatar: userData.avatar || 'https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?w=100', + email: userData.email || '', + favorites: [], + followedInheritors: [], + enrolledCourses: [], + registeredEvents: [], + points: 0, + level: 1, + createdAt: new Date().toISOString().split('T')[0], + } + mockData.users.push(newUser) + return newUser +} + +// ===== 搜索接口 ===== +export const searchAll = async (keyword: string): Promise => { + await delay() + + const heritages = mockData.heritageItems.filter((item) => + item.name.toLowerCase().includes(keyword.toLowerCase()) || + item.description.toLowerCase().includes(keyword.toLowerCase()) + ) + + const inheritors = mockData.inheritors.filter((item) => + item.name.toLowerCase().includes(keyword.toLowerCase()) || + item.bio.toLowerCase().includes(keyword.toLowerCase()) + ) + + const news = mockData.news.filter((item) => + item.title.toLowerCase().includes(keyword.toLowerCase()) || + item.summary.toLowerCase().includes(keyword.toLowerCase()) + ) + + return { + heritages, + inheritors, + news, + } +} diff --git a/src/services/mockData.ts b/src/services/mockData.ts new file mode 100644 index 0000000..25f340a --- /dev/null +++ b/src/services/mockData.ts @@ -0,0 +1,1594 @@ +/** + * 非遗文化传承网站 - Mock 数据 + */ + +import type { + HeritageItem, + Inheritor, + NewsArticle, + Event, + Statistics, + Comment, + User, +} from '@types/index' + +// ===== 统计数据 ===== +export const mockStatistics: Statistics = { + totalHeritageItems: 1372, + totalInheritors: 3068, + totalProvinces: 34, + totalCities: 156, + worldHeritage: 43, + nationalHeritage: 1557, + provincialHeritage: 6700, + endangeredCount: 87, + activePreservation: 1285, +} + +// ===== 非遗项目数据 ===== +export const mockHeritageItems: HeritageItem[] = [ + { + id: 'h001', + name: '景泰蓝制作技艺', + category: 'traditional-craft', + province: '北京市', + city: '北京市', + level: 'national', + coverImage: 'https://images.unsplash.com/photo-1610701596007-11502861dcfa?w=800', + images: [ + 'https://images.unsplash.com/photo-1610701596007-11502861dcfa?w=800', + 'https://images.unsplash.com/photo-1578608712688-36b5be8823dc?w=800', + ], + description: '景泰蓝,又称"铜胎掐丝珐琅",是一种将各种颜色的珐琅附在铜胎或是青铜胎上,烧制而成的瑰丽多彩的工艺美术品。', + history: '景泰蓝诞生于元代,明代景泰年间最为盛行,因其釉料颜色主要以蓝色为主,故名"景泰蓝"。清代继续发展,成为宫廷御用工艺品。', + skills: '景泰蓝制作工艺包括制胎、掐丝、点蓝、烧蓝、磨光、镀金等数十道工序,每道工序都需要高超的技艺和丰富的经验。', + significance: '景泰蓝是中国传统工艺美术的瑰宝,代表了中国金属工艺和釉料工艺的最高水平,具有重要的历史、艺术和科学价值。', + inheritors: ['i001', 'i002'], + status: 'active', + tags: ['传统技艺', '金属工艺', '宫廷艺术', '北京'], + viewCount: 12580, + likeCount: 3456, + createdAt: '2024-01-15', + updatedAt: '2024-10-01', + }, + { + id: 'h002', + name: '苏绣', + category: 'traditional-art', + province: '江苏省', + city: '苏州市', + level: 'world', + coverImage: 'https://images.unsplash.com/photo-1617038260897-41a1f14a8ca0?w=800', + images: [ + 'https://images.unsplash.com/photo-1617038260897-41a1f14a8ca0?w=800', + 'https://images.unsplash.com/photo-1452857297128-d9c29adba80b?w=800', + ], + description: '苏绣是中国四大名绣之一,以江苏苏州为中心的刺绣产品的总称,以针法精细、色彩雅致著称。', + history: '苏绣起源于苏州,已有2000多年历史。宋代已具相当规模,明清时期达到鼎盛,成为宫廷御用品。', + skills: '苏绣针法丰富,包括齐针、套针、戗针、乱针等40多种。讲究"平、齐、和、光、顺、匀"的技艺特点。', + significance: '苏绣代表了中国刺绣艺术的最高水平,2006年被列入第一批国家级非物质文化遗产名录,是中华民族优秀传统文化的重要组成部分。', + inheritors: ['i003'], + status: 'active', + tags: ['传统美术', '刺绣', '江南文化', '苏州'], + viewCount: 18900, + likeCount: 5678, + createdAt: '2024-01-20', + updatedAt: '2024-09-28', + }, + { + id: 'h003', + name: '古琴艺术', + category: 'traditional-music', + province: '全国', + level: 'world', + coverImage: 'https://images.unsplash.com/photo-1511192336575-5a79af67a629?w=800', + images: [ + 'https://images.unsplash.com/photo-1511192336575-5a79af67a629?w=800', + ], + description: '古琴,又称七弦琴,是中国最古老的弹拨乐器之一,有三千年以上历史,属于八音中的丝。', + history: '古琴历史悠久,相传为伏羲、神农氏所造。历代文人雅士视古琴为修身养性之器,留下了大量琴曲、琴谱和琴论。', + skills: '古琴演奏技法包括散音、泛音、按音等,讲究音色、节奏、韵味的完美结合,追求"清、微、淡、远"的意境。', + significance: '古琴艺术是中国音乐文化的瑰宝,2003年被联合国教科文组织列入"人类口头和非物质遗产代表作"名录。', + inheritors: ['i004'], + status: 'active', + tags: ['传统音乐', '古琴', '文人艺术'], + viewCount: 9876, + likeCount: 2345, + createdAt: '2024-02-01', + updatedAt: '2024-09-25', + }, + { + id: 'h004', + name: '宣纸制作技艺', + category: 'traditional-craft', + province: '安徽省', + city: '宣城市', + level: 'world', + coverImage: 'https://images.unsplash.com/photo-1544947950-fa07a98d237f?w=800', + description: '宣纸是中国传统的古典书画用纸,产于安徽省宣城市泾县,因历史上属宣州管辖,故称"宣纸"。', + history: '宣纸起源于唐代,至今已有1500多年历史。因其"韧而能润、光而不滑、洁白稠密、纹理纯净"的特点,被誉为"千年寿纸"。', + skills: '宣纸制作有选料、制浆、捞纸、晒纸、剪纸等108道工序,全部采用手工操作,对水质、气候都有严格要求。', + significance: '宣纸是中国传统文化的重要载体,2009年被联合国教科文组织列入人类非物质文化遗产代表作名录。', + inheritors: ['i005'], + status: 'active', + tags: ['传统技艺', '造纸', '文房四宝', '安徽'], + viewCount: 7654, + likeCount: 1876, + createdAt: '2024-02-10', + updatedAt: '2024-09-20', + }, + { + id: 'h005', + name: '京剧', + category: 'traditional-opera', + province: '北京市', + level: 'world', + coverImage: 'https://images.unsplash.com/photo-1580477667995-2b94f01c9516?w=800', + description: '京剧是中国五大戏曲剧种之一,被视为中国国粹,位列中国戏曲三鼎甲"榜首"。', + history: '京剧形成于19世纪中期的北京,至今已有200多年历史,是在徽剧和汉剧的基础上发展而来。', + skills: '京剧表演的艺术手段主要有唱、念、做、打四种基本功和手、眼、身、法、步五种技法,讲究"四功五法"。', + significance: '京剧是中国传统戏曲艺术的代表,2010年被列入联合国教科文组织人类非物质文化遗产代表作名录。', + inheritors: ['i006'], + status: 'active', + tags: ['传统戏剧', '京剧', '国粹', '北京'], + viewCount: 25600, + likeCount: 6780, + createdAt: '2024-02-15', + updatedAt: '2024-09-30', + }, + { + id: 'h006', + name: '龙泉青瓷烧制技艺', + category: 'traditional-craft', + province: '浙江省', + city: '丽水市', + level: 'world', + coverImage: 'https://images.unsplash.com/photo-1578749556568-bc2c40e68b61?w=800', + description: '龙泉青瓷是中国传统制瓷珍品,以瓷质细腻、线条明快流畅、造型端庄浑朴、色泽纯洁著称。', + history: '龙泉青瓷始于三国两晋,盛于宋代,以"青如玉、明如镜、薄如纸、声如磬"的独特魅力闻名于世。', + skills: '龙泉青瓷烧制包括选料、成型、施釉、烧成等工序,尤以梅子青、粉青釉色最为珍贵。', + significance: '龙泉青瓷代表了中国陶瓷工艺的最高水平,2009年被列入人类非物质文化遗产代表作名录。', + inheritors: ['i004'], + status: 'active', + tags: ['传统技艺', '陶瓷', '青瓷', '浙江'], + viewCount: 14200, + likeCount: 3890, + createdAt: '2024-02-20', + updatedAt: '2024-09-28', + }, + { + id: 'h007', + name: '剪纸', + category: 'traditional-art', + province: '全国', + level: 'world', + coverImage: 'https://images.unsplash.com/photo-1565688534245-05d6b5be184a?w=800', + description: '剪纸是一种用剪刀或刻刀在纸上剪刻花纹,用于装点生活或配合其他民俗活动的民间艺术。', + history: '剪纸在中国有着悠久的历史,可以追溯到南北朝时期,至今已有1500多年历史。', + skills: '剪纸技法包括阴剪、阳剪、阴阳结合等,讲究构图饱满、线条流畅、造型生动。', + significance: '剪纸是中国民间艺术的代表,2009年被列入人类非物质文化遗产代表作名录。', + inheritors: ['i023'], + status: 'active', + tags: ['传统美术', '剪纸', '民间艺术'], + viewCount: 19800, + likeCount: 5230, + createdAt: '2024-02-25', + updatedAt: '2024-09-27', + }, + { + id: 'h008', + name: '昆曲', + category: 'traditional-opera', + province: '江苏省', + city: '苏州市', + level: 'world', + coverImage: 'https://images.unsplash.com/photo-1516450360452-9312f5e86fc7?w=800', + description: '昆曲是中国最古老的剧种之一,被称为"百戏之祖",以唱腔优美、表演细腻著称。', + history: '昆曲起源于14世纪末的江苏昆山一带,至今已有600多年历史,明清时期达到鼎盛。', + skills: '昆曲表演讲究"载歌载舞",唱腔委婉细腻,表演优雅精致,被称为"水磨调"。', + significance: '昆曲是中国戏曲艺术的代表,2001年被列入首批人类口头和非物质遗产代表作。', + inheritors: ['i007'], + status: 'active', + tags: ['传统戏剧', '昆曲', '百戏之祖', '江苏'], + viewCount: 16700, + likeCount: 4120, + createdAt: '2024-03-01', + updatedAt: '2024-09-26', + }, + { + id: 'h009', + name: '蜀绣', + category: 'traditional-art', + province: '四川省', + city: '成都市', + level: 'national', + coverImage: 'https://images.unsplash.com/photo-1617038260897-41a1f14a8ca0?w=800', + description: '蜀绣又称"川绣",是中国四大名绣之一,以其明丽清秀的色彩和精湛细腻的针法著称。', + history: '蜀绣起源于川西民间,历史悠久,早在汉代就有记载,唐宋时期达到高峰。', + skills: '蜀绣针法包括晕针、铺针、滚针等120多种,以双面绣和异色异形绣最具特色。', + significance: '蜀绣是巴蜀文化的重要组成部分,2006年被列入第一批国家级非物质文化遗产名录。', + inheritors: ['i014'], + status: 'active', + tags: ['传统美术', '刺绣', '四川', '蜀绣'], + viewCount: 13500, + likeCount: 3670, + createdAt: '2024-03-05', + updatedAt: '2024-09-25', + }, + { + id: 'h010', + name: '端午节', + category: 'folk-custom', + province: '全国', + level: 'world', + coverImage: 'https://images.unsplash.com/photo-1591206369811-4eeb2f18843e?w=800', + description: '端午节是中国传统节日,为每年农历五月初五,又称端阳节、龙舟节等。', + history: '端午节起源于中国,最初为崇拜龙图腾的部族举行图腾祭祀的节日,后纪念爱国诗人屈原。', + skills: '端午节习俗包括赛龙舟、吃粽子、挂艾草、佩香囊等多种民俗活动。', + significance: '端午节是中华民族重要的传统节日,2009年被列入人类非物质文化遗产代表作名录。', + inheritors: [], + status: 'active', + tags: ['民俗', '传统节日', '端午节', '龙舟'], + viewCount: 32100, + likeCount: 8900, + createdAt: '2024-03-10', + updatedAt: '2024-09-24', + }, + { + id: 'h011', + name: '木版水印技艺', + category: 'traditional-craft', + province: '江苏省', + city: '扬州市', + level: 'national', + coverImage: 'https://images.unsplash.com/photo-1513364776144-60967b0f800f?w=800', + description: '木版水印是中国传统的印刷技艺,用于复制中国画和书法作品,能够完美再现原作的笔墨神韵。', + history: '木版水印起源于隋唐,宋元时期技术日趋成熟,明清达到鼎盛,是中国古代印刷术的精华。', + skills: '木版水印包括勾描、刻版、印刷三道工序,需要准确把握原作的笔墨、色彩和神韵。', + significance: '木版水印是中国传统印刷技术的代表,对保护和传承书画艺术具有重要意义。', + inheritors: ['i008'], + status: 'active', + tags: ['传统技艺', '印刷', '木版水印', '江苏'], + viewCount: 8900, + likeCount: 2340, + createdAt: '2024-03-15', + updatedAt: '2024-09-23', + }, + { + id: 'h012', + name: '潍坊风筝制作技艺', + category: 'traditional-craft', + province: '山东省', + city: '潍坊市', + level: 'national', + coverImage: 'https://images.unsplash.com/photo-1565688534245-05d6b5be184a?w=800', + description: '潍坊风筝是中国风筝的代表,以造型优美、扎工精细、绘画艳丽著称,享有"世界风筝之都"的美誉。', + history: '潍坊风筝起源于明代,距今已有500多年历史,清代达到鼎盛时期。', + skills: '潍坊风筝制作包括扎、糊、绘、放四个步骤,讲究"扎得好、糊得好、绘得好、放得好"。', + significance: '潍坊风筝是中国民间艺术的瑰宝,每年举办国际风筝节,推动了风筝文化的传承发展。', + inheritors: ['i005'], + status: 'active', + tags: ['传统技艺', '风筝', '民间艺术', '山东'], + viewCount: 11200, + likeCount: 2980, + createdAt: '2024-03-20', + updatedAt: '2024-09-22', + }, + { + id: 'h013', + name: '二十四节气', + category: 'folk-custom', + province: '全国', + level: 'world', + coverImage: 'https://images.unsplash.com/photo-1490730141103-6cac27aaab94?w=800', + description: '二十四节气是中国人通过观察太阳周年运动而形成的时间知识体系及其实践,指导着农业生产和日常生活。', + history: '二十四节气起源于黄河流域,形成于秦汉时期,完善于汉代,是中华民族的伟大创造。', + skills: '二十四节气包括立春、雨水、惊蛰等,体现了中国人对自然规律的认识和利用。', + significance: '二十四节气是中华文明的智慧结晶,2016年被列入人类非物质文化遗产代表作名录。', + inheritors: [], + status: 'active', + tags: ['民俗', '二十四节气', '农业文化'], + viewCount: 28700, + likeCount: 7450, + createdAt: '2024-03-25', + updatedAt: '2024-09-21', + }, + { + id: 'h014', + name: '宜兴紫砂陶制作技艺', + category: 'traditional-craft', + province: '江苏省', + city: '无锡市', + level: 'national', + coverImage: 'https://images.unsplash.com/photo-1563551295286-e7e86578183f?w=800', + description: '宜兴紫砂陶是中国特有的陶瓷工艺品,以紫砂壶最为著名,具有透气性好、保温性强的特点。', + history: '宜兴紫砂陶始于宋代,兴于明清,至今已有1000多年历史,是中国茶文化的重要组成部分。', + skills: '紫砂陶制作包括选泥、炼泥、制坯、烧制等工序,讲究"形、神、气、态、韵"的完美结合。', + significance: '宜兴紫砂陶代表了中国陶瓷艺术的最高水平,是中华茶文化的载体和象征。', + inheritors: ['i009'], + status: 'active', + tags: ['传统技艺', '陶瓷', '紫砂', '江苏'], + viewCount: 15800, + likeCount: 4230, + createdAt: '2024-04-01', + updatedAt: '2024-09-20', + }, + { + id: 'h015', + name: '湘绣', + category: 'traditional-art', + province: '湖南省', + city: '长沙市', + level: 'national', + coverImage: 'https://images.unsplash.com/photo-1617038260897-41a1f14a8ca0?w=800', + description: '湘绣是中国四大名绣之一,以其鲜明的艺术风格和独特的刺绣技法著称于世。', + history: '湘绣起源于湖南民间刺绣,有2000多年历史,清末民初形成独特风格并走向成熟。', + skills: '湘绣以掺针为主,运用70多种针法,能绣制出各种动物、人物、山水作品。', + significance: '湘绣是湖湘文化的重要代表,2006年被列入第一批国家级非物质文化遗产名录。', + inheritors: ['i011'], + status: 'active', + tags: ['传统美术', '刺绣', '湘绣', '湖南'], + viewCount: 12600, + likeCount: 3340, + createdAt: '2024-04-05', + updatedAt: '2024-09-19', + }, + { + id: 'h016', + name: '南京云锦织造技艺', + category: 'traditional-craft', + province: '江苏省', + city: '南京市', + level: 'world', + coverImage: 'https://images.unsplash.com/photo-1601924994987-69e26d50dc26?w=800', + description: '南京云锦是中国传统的丝制工艺品,因其色泽光丽灿烂,美如天上云霞而得名。', + history: '南京云锦起源于南朝,成熟于唐宋,鼎盛于明清,是专供皇家御用的贡品。', + skills: '云锦织造工艺复杂,包括挑花结本、造机、织造等工序,至今仍无法用现代机器完全替代。', + significance: '南京云锦代表了中国丝织工艺的最高成就,2009年被列入人类非物质文化遗产代表作名录。', + inheritors: ['i010'], + status: 'active', + tags: ['传统技艺', '织造', '云锦', '江苏'], + viewCount: 17900, + likeCount: 4780, + createdAt: '2024-04-10', + updatedAt: '2024-09-18', + }, + { + id: 'h017', + name: '粤绣', + category: 'traditional-art', + province: '广东省', + city: '广州市', + level: 'national', + coverImage: 'https://images.unsplash.com/photo-1617038260897-41a1f14a8ca0?w=800', + description: '粤绣是中国四大名绣之一,包括广绣和潮绣,以构图饱满、色彩富丽、针法多样著称。', + history: '粤绣起源于唐代,兴盛于明清,至今已有1000多年历史,是岭南文化的重要代表。', + skills: '粤绣针法丰富,包括直绣、盘金绣、垫高绣等,擅长绣制龙凤、花鸟等题材。', + significance: '粤绣是岭南文化的瑰宝,2006年被列入第一批国家级非物质文化遗产名录。', + inheritors: ['i012'], + status: 'active', + tags: ['传统美术', '刺绣', '粤绣', '广东'], + viewCount: 11800, + likeCount: 3120, + createdAt: '2024-04-15', + updatedAt: '2024-09-17', + }, + { + id: 'h018', + name: '蒙古族长调民歌', + category: 'traditional-music', + province: '内蒙古自治区', + level: 'world', + coverImage: 'https://images.unsplash.com/photo-1511192336575-5a79af67a629?w=800', + description: '蒙古族长调民歌是蒙古族特有的演唱形式,以悠长的旋律、自由的节奏、辽阔的音域著称。', + history: '蒙古族长调民歌历史悠久,至少已有千年以上的历史,是草原文化的灵魂。', + skills: '长调演唱讲究气息控制和声音技巧,要求歌者具有宽广的音域和深厚的功底。', + significance: '蒙古族长调民歌是草原文化的代表,2005年被列入人类非物质文化遗产代表作名录。', + inheritors: ['i020'], + status: 'active', + tags: ['传统音乐', '蒙古族', '长调', '草原文化'], + viewCount: 9500, + likeCount: 2450, + createdAt: '2024-04-20', + updatedAt: '2024-09-16', + }, + { + id: 'h019', + name: '中医针灸', + category: 'traditional-medicine', + province: '全国', + level: 'world', + coverImage: 'https://images.unsplash.com/photo-1505751172876-fa1923c5c528?w=800', + description: '中医针灸是一种"内病外治"的医术,通过经络、腧穴的传导作用,以及应用一定的操作法,来治疗全身疾病。', + history: '针灸疗法起源于新石器时代,形成于春秋战国时期,发展于秦汉,完善于明清。', + skills: '针灸技术包括针法和灸法,讲究穴位选择、针刺深度、手法运用等多个方面。', + significance: '中医针灸是中华医学的瑰宝,2010年被列入人类非物质文化遗产代表作名录。', + inheritors: ['i013'], + status: 'active', + tags: ['传统医药', '针灸', '中医'], + viewCount: 22300, + likeCount: 5890, + createdAt: '2024-04-25', + updatedAt: '2024-09-15', + }, + { + id: 'h020', + name: '傣族泼水节', + category: 'folk-custom', + province: '云南省', + level: 'national', + coverImage: 'https://images.unsplash.com/photo-1527576539890-dfa815648363?w=800', + description: '傣族泼水节又称"浴佛节",是傣族、阿昌族、德昂族等民族最隆重的传统节日。', + history: '泼水节源于印度,随佛教传入傣族地区,至今已有700年历史,是傣族新年。', + skills: '泼水节活动包括浴佛、泼水、赛龙舟、放高升等多种民俗活动。', + significance: '泼水节是傣族文化的重要载体,体现了傣族人民祈求幸福吉祥的美好愿望。', + inheritors: ['i015'], + status: 'active', + tags: ['民俗', '傣族', '泼水节', '云南'], + viewCount: 26800, + likeCount: 7120, + createdAt: '2024-05-01', + updatedAt: '2024-09-14', + }, + { + id: 'h021', + name: '川剧变脸', + category: 'traditional-opera', + province: '四川省', + city: '成都市', + level: 'national', + coverImage: 'https://images.unsplash.com/photo-1580477667995-2b94f01c9516?w=800', + description: '川剧变脸是川剧表演的特技之一,演员在极短时间内能变换多张脸谱,令人叹为观止。', + history: '变脸是川剧的绝活,起源于明末清初,距今已有300多年历史。', + skills: '变脸技法包括抹脸、吹脸、扯脸等,要求演员手法快速、准确、隐蔽。', + significance: '川剧变脸是中国戏曲的独特技艺,代表了四川地方戏曲的最高水平。', + inheritors: ['i016'], + status: 'active', + tags: ['传统戏剧', '川剧', '变脸', '四川'], + viewCount: 31200, + likeCount: 8340, + createdAt: '2024-05-05', + updatedAt: '2024-09-13', + }, + { + id: 'h022', + name: '徽墨制作技艺', + category: 'traditional-craft', + province: '安徽省', + city: '黄山市', + level: 'national', + coverImage: 'https://images.unsplash.com/photo-1544947950-fa07a98d237f?w=800', + description: '徽墨是中国传统制墨技艺中的珍品,与湖笔、宣纸、端砚并称为"文房四宝"。', + history: '徽墨始于南唐,兴于宋元,盛于明清,距今已有1000多年历史。', + skills: '徽墨制作包括选料、制胶、和料、杵捣、印模、晾墨等十余道工序,完全手工操作。', + significance: '徽墨是中国传统文化的重要载体,代表了中国制墨工艺的最高水平。', + inheritors: ['i017'], + status: 'active', + tags: ['传统技艺', '徽墨', '文房四宝', '安徽'], + viewCount: 8700, + likeCount: 2290, + createdAt: '2024-05-10', + updatedAt: '2024-09-12', + }, + { + id: 'h023', + name: '唐卡绘制技艺', + category: 'traditional-art', + province: '西藏自治区', + level: 'national', + coverImage: 'https://images.unsplash.com/photo-1580477667995-2b94f01c9516?w=800', + description: '唐卡是藏族文化中一种独具特色的绘画艺术形式,具有鲜明的民族特点和浓郁的宗教色彩。', + history: '唐卡起源于7世纪的吐蕃时期,至今已有1300多年历史,是藏传佛教艺术的重要组成部分。', + skills: '唐卡绘制包括构图起稿、着色、勾线、开眼等工序,使用天然矿物颜料,色彩经久不褪。', + significance: '唐卡是藏族文化的瑰宝,体现了藏族人民的智慧和艺术造诣。', + inheritors: ['i018'], + status: 'active', + tags: ['传统美术', '唐卡', '藏族', '宗教艺术'], + viewCount: 13400, + likeCount: 3560, + createdAt: '2024-05-15', + updatedAt: '2024-09-11', + }, + { + id: 'h024', + name: '侗族大歌', + category: 'traditional-music', + province: '贵州省', + level: 'world', + coverImage: 'https://images.unsplash.com/photo-1511192336575-5a79af67a629?w=800', + description: '侗族大歌是侗族地区一种多声部、无指挥、无伴奏、自然和声的民间合唱音乐。', + history: '侗族大歌起源于春秋战国时期,距今已有2500多年历史,是侗族文化的精髓。', + skills: '侗族大歌演唱不用伴奏和指挥,完全依靠歌手之间的默契配合,展现出独特的和声美。', + significance: '侗族大歌是中国民间音乐的瑰宝,2009年被列入人类非物质文化遗产代表作名录。', + inheritors: ['i006'], + status: 'active', + tags: ['传统音乐', '侗族', '大歌', '贵州'], + viewCount: 10800, + likeCount: 2870, + createdAt: '2024-05-20', + updatedAt: '2024-09-10', + }, + { + id: 'h025', + name: '杨柳青木版年画', + category: 'traditional-art', + province: '天津市', + level: 'national', + coverImage: 'https://images.unsplash.com/photo-1565688534245-05d6b5be184a?w=800', + description: '杨柳青木版年画是中国四大木版年画之一,以题材丰富、工艺精湛著称。', + history: '杨柳青年画产生于明代,兴盛于清代和民国初期,至今已有400多年历史。', + skills: '杨柳青年画采用木版套印与手工彩绘相结合的方法,讲究勾、刻、印、画、裱五道工序。', + significance: '杨柳青年画是中国民间艺术的代表,反映了北方地区的民俗风情和审美趣味。', + inheritors: ['i019'], + status: 'active', + tags: ['传统美术', '年画', '木版', '天津'], + viewCount: 9600, + likeCount: 2520, + createdAt: '2024-05-25', + updatedAt: '2024-09-09', + }, + { + id: 'h026', + name: '苗族银饰锻制技艺', + category: 'traditional-craft', + province: '贵州省', + level: 'national', + coverImage: 'https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?w=800', + description: '苗族银饰是苗族装饰艺术的重要组成部分,以精湛的工艺和独特的造型闻名。', + history: '苗族银饰制作历史悠久,可追溯到明清时期,至今已有数百年历史。', + skills: '苗族银饰制作包括铸炼、捶打、编结、刻花等工序,工艺复杂精细。', + significance: '苗族银饰是苗族文化的重要载体,体现了苗族人民的审美观念和生活方式。', + inheritors: ['i007'], + status: 'active', + tags: ['传统技艺', '银饰', '苗族', '贵州'], + viewCount: 11500, + likeCount: 3010, + createdAt: '2024-06-01', + updatedAt: '2024-09-08', + }, + { + id: 'h027', + name: '秦腔', + category: 'traditional-opera', + province: '陕西省', + city: '西安市', + level: 'national', + coverImage: 'https://images.unsplash.com/photo-1580477667995-2b94f01c9516?w=800', + description: '秦腔是中国最古老的戏曲剧种之一,以其高亢激越的唱腔和粗犷豪放的表演风格著称。', + history: '秦腔起源于古代陕西、甘肃一带,形成于秦汉时期,至今已有2000多年历史。', + skills: '秦腔唱腔包括"欢音"和"苦音"两大类,表演讲究"手、眼、身、法、步"的协调。', + significance: '秦腔是西北地方戏曲的代表,对京剧、豫剧等剧种的形成产生了重要影响。', + inheritors: ['i008'], + status: 'active', + tags: ['传统戏剧', '秦腔', '陕西', '地方戏'], + viewCount: 14700, + likeCount: 3890, + createdAt: '2024-06-05', + updatedAt: '2024-09-07', + }, + { + id: 'h028', + name: '端砚制作技艺', + category: 'traditional-craft', + province: '广东省', + city: '肇庆市', + level: 'national', + coverImage: 'https://images.unsplash.com/photo-1544947950-fa07a98d237f?w=800', + description: '端砚是中国四大名砚之首,以石质细腻、发墨快而不损毫著称。', + history: '端砚始于唐代,兴于宋代,至今已有1300多年历史,是文房四宝的重要组成部分。', + skills: '端砚制作包括选料、整璞、设计、雕刻、打磨等工序,讲究因材施艺。', + significance: '端砚是中国石砚工艺的代表,具有极高的艺术价值和收藏价值。', + inheritors: ['i021'], + status: 'active', + tags: ['传统技艺', '端砚', '文房四宝', '广东'], + viewCount: 10200, + likeCount: 2680, + createdAt: '2024-06-10', + updatedAt: '2024-09-06', + }, + { + id: 'h029', + name: '太极拳', + category: 'sports-acrobatics', + province: '河南省', + city: '焦作市', + level: 'world', + coverImage: 'https://images.unsplash.com/photo-1544367567-0f2fcb009e0b?w=800', + description: '太极拳是中国传统武术的代表,以其柔和缓慢、圆活连贯的动作特点著称。', + history: '太极拳创始于明末清初的河南温县陈家沟,至今已有300多年历史。', + skills: '太极拳讲究"以柔克刚、以静制动",要求动作连贯流畅、虚实分明、刚柔相济。', + significance: '太极拳是中国武术文化的精髓,2020年被列入人类非物质文化遗产代表作名录。', + inheritors: ['i022'], + status: 'active', + tags: ['传统体育', '太极拳', '武术', '河南'], + viewCount: 35600, + likeCount: 9230, + createdAt: '2024-06-15', + updatedAt: '2024-09-05', + }, + { + id: 'h030', + name: '苗绣', + category: 'traditional-art', + province: '贵州省', + level: 'national', + coverImage: 'https://images.unsplash.com/photo-1617038260897-41a1f14a8ca0?w=800', + description: '苗绣是苗族民间传承的刺绣技艺,以其古朴、艳丽、繁复的风格著称。', + history: '苗绣历史悠久,据考古发现可追溯到春秋战国时期,至今已有2000多年历史。', + skills: '苗绣针法包括平绣、辫绣、破丝绣、打籽绣等,色彩对比强烈,图案丰富多样。', + significance: '苗绣是苗族文化的重要载体,承载着苗族的历史记忆和文化传统。', + inheritors: ['i009'], + status: 'active', + tags: ['传统美术', '刺绣', '苗族', '贵州'], + viewCount: 12900, + likeCount: 3420, + createdAt: '2024-06-20', + updatedAt: '2024-09-04', + }, + { + id: 'h031', + name: '皮影戏', + category: 'traditional-opera', + province: '陕西省', + level: 'world', + coverImage: 'https://images.unsplash.com/photo-1516450360452-9312f5e86fc7?w=800', + description: '皮影戏是中国民间古老的传统艺术,通过灯光照射兽皮或纸板做成的影人,表演故事。', + history: '皮影戏起源于西汉,兴盛于唐宋,至今已有2000多年历史,被誉为"百戏之祖"。', + skills: '皮影戏表演需要掌握雕刻、绘画、唱腔、操纵等多种技艺,要求表演者多才多艺。', + significance: '皮影戏是中国民间艺术的瑰宝,2011年被列入人类非物质文化遗产代表作名录。', + inheritors: ['i010'], + status: 'active', + tags: ['传统戏剧', '皮影戏', '民间艺术', '陕西'], + viewCount: 16300, + likeCount: 4320, + createdAt: '2024-06-25', + updatedAt: '2024-09-03', + }, + { + id: 'h032', + name: '景德镇手工制瓷技艺', + category: 'traditional-craft', + province: '江西省', + city: '景德镇市', + level: 'national', + coverImage: 'https://images.unsplash.com/photo-1578749556568-bc2c40e68b61?w=800', + description: '景德镇制瓷技艺是中国陶瓷工艺的代表,以"白如玉、明如镜、薄如纸、声如磬"著称。', + history: '景德镇制瓷始于汉代,兴于唐宋,盛于明清,至今已有1700多年历史,被誉为"瓷都"。', + skills: '景德镇制瓷包括选料、成型、施釉、烧制等72道工序,工艺复杂精细。', + significance: '景德镇瓷器代表了中国陶瓷工艺的最高水平,是中华文化的重要象征。', + inheritors: ['i020'], + status: 'active', + tags: ['传统技艺', '陶瓷', '景德镇', '江西'], + viewCount: 21400, + likeCount: 5670, + createdAt: '2024-07-01', + updatedAt: '2024-09-02', + }, + { + id: 'h033', + name: '花儿', + category: 'traditional-music', + province: '甘肃省', + level: 'world', + coverImage: 'https://images.unsplash.com/photo-1511192336575-5a79af67a629?w=800', + description: '花儿是流行于西北地区的一种民歌,以其高亢嘹亮、自由奔放的风格著称。', + history: '花儿起源于明代,流行于甘肃、青海、宁夏等地,至今已有400多年历史。', + skills: '花儿演唱讲究即兴创作,要求歌者具有深厚的文化底蕴和演唱技巧。', + significance: '花儿是西北地区民歌的代表,2009年被列入人类非物质文化遗产代表作名录。', + inheritors: ['i011'], + status: 'active', + tags: ['传统音乐', '花儿', '民歌', '甘肃'], + viewCount: 8900, + likeCount: 2340, + createdAt: '2024-07-05', + updatedAt: '2024-09-01', + }, + { + id: 'h034', + name: '藏医药浴法', + category: 'traditional-medicine', + province: '西藏自治区', + level: 'world', + coverImage: 'https://images.unsplash.com/photo-1505751172876-fa1923c5c528?w=800', + description: '藏医药浴法是藏族人民在长期与疾病斗争中积累的独特医疗方法。', + history: '藏医药浴法历史悠久,可追溯到吐蕃时期,至今已有1000多年历史。', + skills: '藏医药浴法根据不同病症选用不同的药材组合,讲究配方、水温、浸泡时间的精准把握。', + significance: '藏医药浴法是藏医学的重要组成部分,2018年被列入人类非物质文化遗产代表作名录。', + inheritors: ['i012'], + status: 'active', + tags: ['传统医药', '藏医', '药浴', '西藏'], + viewCount: 7800, + likeCount: 2050, + createdAt: '2024-07-10', + updatedAt: '2024-08-31', + }, +] + +// ===== 传承人数据 ===== +export const mockInheritors: Inheritor[] = [ + { + id: 'i001', + name: '钟连盛', + avatar: 'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=400', + coverImage: 'https://images.unsplash.com/photo-1610701596007-11502861dcfa?w=1200', + gender: 'male', + birthYear: 1962, + province: '北京市', + city: '北京市', + level: 'national', + heritageItems: ['h001'], + title: '国家级非物质文化遗产景泰蓝制作技艺代表性传承人', + bio: '钟连盛,1962年生于北京,中国工艺美术大师,高级工艺美术师。从事景泰蓝艺术创作四十余年,对传统景泰蓝技艺有深入研究和独到见解。', + masterSkills: '精通景泰蓝制作全部工序,尤其擅长掐丝和点蓝技艺,创作作品多次获得国家级大奖。', + achievements: [ + { + id: 'a001', + title: '创作《和平尊》', + description: '为纪念联合国成立70周年创作的大型景泰蓝作品,被联合国总部永久收藏。', + date: '2015-09-26', + images: ['https://images.unsplash.com/photo-1578608712688-36b5be8823dc?w=800'], + }, + ], + awards: [ + { + id: 'aw001', + name: '中国工艺美术大师', + level: '国家级', + year: 2012, + organization: '中国轻工业联合会', + }, + ], + works: [], + videos: [], + followers: 15678, + viewCount: 45890, + createdAt: '2024-01-10', + updatedAt: '2024-10-01', + }, + { + id: 'i003', + name: '姚惠芬', + avatar: 'https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=400', + coverImage: 'https://images.unsplash.com/photo-1617038260897-41a1f14a8ca0?w=1200', + gender: 'female', + birthYear: 1967, + province: '江苏省', + city: '苏州市', + level: 'national', + heritageItems: ['h002'], + title: '国家级非物质文化遗产苏绣代表性传承人', + bio: '姚惠芬,1967年生于苏州镇湖,中国工艺美术大师,研究员级高级工艺美术师。师从母亲学习刺绣,创立了"简针绣"技法。', + masterSkills: '精通传统苏绣技法,独创"简针绣",将中国画的笔墨意蕴融入刺绣,形成独特艺术风格。', + achievements: [ + { + id: 'a002', + title: '创立"简针绣"技法', + description: '在传统苏绣基础上创新发展,形成独特的刺绣语言,将中国画意境与刺绣技艺完美结合。', + date: '2010-05-01', + }, + ], + awards: [ + { + id: 'aw002', + name: '中国工艺美术大师', + level: '国家级', + year: 2018, + organization: '中国轻工业联合会', + }, + ], + works: [], + videos: [], + followers: 23456, + viewCount: 67890, + createdAt: '2024-01-15', + updatedAt: '2024-09-28', + }, + { + id: 'i004', + name: '王芳', + avatar: 'https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=400', + coverImage: 'https://images.unsplash.com/photo-1565688534245-05d6b5be184a?w=1200', + gender: 'female', + birthYear: 1975, + province: '浙江省', + city: '杭州市', + level: 'national', + heritageItems: ['h003'], + title: '国家级非物质文化遗产龙泉青瓷烧制技艺传承人', + bio: '王芳,1975年生于浙江龙泉,高级工艺美术师,致力于龙泉青瓷的传承与创新。', + masterSkills: '精通龙泉青瓷传统烧制技艺,擅长梅子青、粉青釉色调配,作品多次获得国际大奖。', + achievements: [], + awards: [], + works: [], + videos: [], + followers: 18900, + viewCount: 52300, + createdAt: '2024-02-10', + updatedAt: '2024-09-25', + }, + { + id: 'i005', + name: '李建国', + avatar: 'https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=400', + coverImage: 'https://images.unsplash.com/photo-1579783902614-a3fb3927b6a5?w=1200', + gender: 'male', + birthYear: 1960, + province: '陕西省', + city: '西安市', + level: 'national', + heritageItems: ['h004'], + title: '国家级非物质文化遗产秦腔表演艺术传承人', + bio: '李建国,1960年生于西安,著名秦腔表演艺术家,国家一级演员。', + masterSkills: '擅长秦腔须生行当,嗓音洪亮,表演细腻,被誉为"秦腔王子"。', + achievements: [], + awards: [], + works: [], + videos: [], + followers: 31200, + viewCount: 89500, + createdAt: '2024-02-15', + updatedAt: '2024-09-20', + }, + { + id: 'i006', + name: '张秀英', + avatar: 'https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=400', + coverImage: 'https://images.unsplash.com/photo-1588392382834-a891154bca4d?w=1200', + gender: 'female', + birthYear: 1968, + province: '贵州省', + city: '凯里市', + level: 'national', + heritageItems: ['h005'], + title: '国家级非物质文化遗产苗族刺绣传承人', + bio: '张秀英,1968年生于贵州凯里,苗族,从小跟随母亲学习苗绣技艺。', + masterSkills: '精通苗族传统刺绣技法,擅长平绣、破绣、堆花等多种针法,作品色彩艳丽,纹样精美。', + achievements: [], + awards: [], + works: [], + videos: [], + followers: 22400, + viewCount: 61800, + createdAt: '2024-02-20', + updatedAt: '2024-09-18', + }, + { + id: 'i007', + name: '刘永强', + avatar: 'https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=400', + coverImage: 'https://images.unsplash.com/photo-1551244072-5d12893278ab?w=1200', + gender: 'male', + birthYear: 1972, + province: '山东省', + city: '潍坊市', + level: 'provincial', + heritageItems: ['h006'], + title: '省级非物质文化遗产潍坊风筝制作技艺传承人', + bio: '刘永强,1972年生于潍坊,从事风筝制作三十余年,作品远销海内外。', + masterSkills: '擅长传统风筝的扎、糊、绘、放四艺,尤其擅长龙头蜈蚣等大型风筝的制作。', + achievements: [], + awards: [], + works: [], + videos: [], + followers: 16700, + viewCount: 43200, + createdAt: '2024-03-01', + updatedAt: '2024-09-15', + }, + { + id: 'i008', + name: '陈美玲', + avatar: 'https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?w=400', + coverImage: 'https://images.unsplash.com/photo-1547891654-e66ed7ebb968?w=1200', + gender: 'female', + birthYear: 1980, + province: '福建省', + city: '福州市', + level: 'provincial', + heritageItems: ['h007'], + title: '省级非物质文化遗产软木画制作技艺传承人', + bio: '陈美玲,1980年生于福州,软木画艺术家,致力于软木画的传承与创新。', + masterSkills: '精通软木画传统制作技艺,将现代设计理念融入传统工艺,作品立体感强,层次分明。', + achievements: [], + awards: [], + works: [], + videos: [], + followers: 14300, + viewCount: 38900, + createdAt: '2024-03-05', + updatedAt: '2024-09-12', + }, + { + id: 'i009', + name: '赵国强', + avatar: 'https://images.unsplash.com/photo-1492562080023-ab3db95bfbce?w=400', + coverImage: 'https://images.unsplash.com/photo-1544717302-de2939b7ef71?w=1200', + gender: 'male', + birthYear: 1965, + province: '河南省', + city: '洛阳市', + level: 'national', + heritageItems: ['h008'], + title: '国家级非物质文化遗产唐三彩烧制技艺传承人', + bio: '赵国强,1965年生于洛阳,中国陶瓷艺术大师,从事唐三彩研究制作四十年。', + masterSkills: '精通唐三彩传统烧制技艺,擅长人物俑、马俑等经典造型,釉色纯正,造型生动。', + achievements: [], + awards: [], + works: [], + videos: [], + followers: 27800, + viewCount: 72100, + createdAt: '2024-03-10', + updatedAt: '2024-09-10', + }, + { + id: 'i010', + name: '孙丽华', + avatar: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=400', + coverImage: 'https://images.unsplash.com/photo-1578301978162-7aae4d755744?w=1200', + gender: 'female', + birthYear: 1978, + province: '湖南省', + city: '长沙市', + level: 'provincial', + heritageItems: ['h009'], + title: '省级非物质文化遗产湘绣技艺传承人', + bio: '孙丽华,1978年生于长沙,湘绣艺术家,作品曾多次参加国际展览。', + masterSkills: '擅长湘绣传统针法,尤其精于狮虎等动物题材的刺绣,作品栩栩如生。', + achievements: [], + awards: [], + works: [], + videos: [], + followers: 19600, + viewCount: 54700, + createdAt: '2024-03-15', + updatedAt: '2024-09-08', + }, + { + id: 'i011', + name: '周建军', + avatar: 'https://images.unsplash.com/photo-1463453091185-61582044d556?w=400', + coverImage: 'https://images.unsplash.com/photo-1582407947304-fd86f028f716?w=1200', + gender: 'male', + birthYear: 1970, + province: '四川省', + city: '成都市', + level: 'national', + heritageItems: ['h010'], + title: '国家级非物质文化遗产蜀锦织造技艺传承人', + bio: '周建军,1970年生于成都,蜀锦织造大师,从事蜀锦研究制作三十余年。', + masterSkills: '精通蜀锦传统织造技艺,擅长复制古代蜀锦纹样,作品细腻精美,色彩艳丽。', + achievements: [], + awards: [], + works: [], + videos: [], + followers: 24500, + viewCount: 66300, + createdAt: '2024-03-20', + updatedAt: '2024-09-05', + }, + { + id: 'i012', + name: '吴静', + avatar: 'https://images.unsplash.com/photo-1508214751196-bcfd4ca60f91?w=400', + coverImage: 'https://images.unsplash.com/photo-1599666437958-e3c8a63d1e8f?w=1200', + gender: 'female', + birthYear: 1982, + province: '云南省', + city: '昆明市', + level: 'provincial', + heritageItems: ['h011'], + title: '省级非物质文化遗产傣族织锦技艺传承人', + bio: '吴静,1982年生于云南,傣族,从事傣族织锦研究与创作多年。', + masterSkills: '精通傣族传统织锦技艺,擅长孔雀、大象等民族图案的编织,作品具有浓郁的民族特色。', + achievements: [], + awards: [], + works: [], + videos: [], + followers: 17200, + viewCount: 46800, + createdAt: '2024-03-25', + updatedAt: '2024-09-03', + }, + { + id: 'i013', + name: '郑明辉', + avatar: 'https://images.unsplash.com/photo-1519085360753-af0119f7cbe7?w=400', + coverImage: 'https://images.unsplash.com/photo-1587383377892-a5099d6b3e26?w=1200', + gender: 'male', + birthYear: 1963, + province: '广东省', + city: '广州市', + level: 'national', + heritageItems: ['h012'], + title: '国家级非物质文化遗产广彩瓷烧制技艺传承人', + bio: '郑明辉,1963年生于广州,广彩瓷艺术大师,从事广彩瓷研究制作四十年。', + masterSkills: '精通广彩瓷传统绘制和烧制技艺,作品色彩艳丽,纹饰精美,具有浓郁的岭南特色。', + achievements: [], + awards: [], + works: [], + videos: [], + followers: 21800, + viewCount: 59400, + createdAt: '2024-04-01', + updatedAt: '2024-09-01', + }, + { + id: 'i014', + name: '黄秀兰', + avatar: 'https://images.unsplash.com/photo-1504703395950-b89145a5425b?w=400', + coverImage: 'https://images.unsplash.com/photo-1583847268964-b28dc8f51f92?w=1200', + gender: 'female', + birthYear: 1976, + province: '广西壮族自治区', + city: '南宁市', + level: 'provincial', + heritageItems: ['h013'], + title: '省级非物质文化遗产壮锦织造技艺传承人', + bio: '黄秀兰,1976年生于广西,壮族,从事壮锦研究与传承二十余年。', + masterSkills: '擅长壮锦传统织造技艺,作品图案精美,色彩鲜艳,富有民族特色。', + achievements: [], + awards: [], + works: [], + videos: [], + followers: 15800, + viewCount: 42100, + createdAt: '2024-04-05', + updatedAt: '2024-08-30', + }, + { + id: 'i015', + name: '马建华', + avatar: 'https://images.unsplash.com/photo-1489980557514-251d61e3eeb6?w=400', + coverImage: 'https://images.unsplash.com/photo-1586521995568-39abaa0c2311?w=1200', + gender: 'male', + birthYear: 1969, + province: '宁夏回族自治区', + city: '银川市', + level: 'provincial', + heritageItems: ['h014'], + title: '省级非物质文化遗产贺兰石雕刻技艺传承人', + bio: '马建华,1969年生于宁夏,回族,从事贺兰石雕刻三十年,作品深受收藏家喜爱。', + masterSkills: '精通贺兰石雕刻技艺,擅长山水、花鸟等题材,作品线条流畅,意境深远。', + achievements: [], + awards: [], + works: [], + videos: [], + followers: 13200, + viewCount: 35600, + createdAt: '2024-04-10', + updatedAt: '2024-08-28', + }, + { + id: 'i016', + name: '杨慧敏', + avatar: 'https://images.unsplash.com/photo-1531746020798-e6953c6e8e04?w=400', + coverImage: 'https://images.unsplash.com/photo-1574169208507-84376144848b?w=1200', + gender: 'female', + birthYear: 1985, + province: '江西省', + city: '景德镇市', + level: 'provincial', + heritageItems: ['h015'], + title: '省级非物质文化遗产景德镇手工制瓷技艺传承人', + bio: '杨慧敏,1985年生于景德镇,青年陶瓷艺术家,将现代审美融入传统制瓷技艺。', + masterSkills: '精通景德镇传统手工制瓷技艺,擅长青花、粉彩等装饰手法,作品清新雅致。', + achievements: [], + awards: [], + works: [], + videos: [], + followers: 20100, + viewCount: 55200, + createdAt: '2024-04-15', + updatedAt: '2024-08-25', + }, + { + id: 'i017', + name: '韩国栋', + avatar: 'https://images.unsplash.com/photo-1507591064344-4c6ce005b128?w=400', + coverImage: 'https://images.unsplash.com/photo-1561998338-13ad7883b20f?w=1200', + gender: 'male', + birthYear: 1958, + province: '内蒙古自治区', + city: '呼和浩特市', + level: 'national', + heritageItems: ['h016'], + title: '国家级非物质文化遗产蒙古族长调民歌传承人', + bio: '韩国栋,1958年生于内蒙古,蒙古族,著名长调歌唱家,国家一级演员。', + masterSkills: '擅长蒙古族长调民歌演唱,嗓音悠远辽阔,情感深沉,被誉为"草原歌王"。', + achievements: [], + awards: [], + works: [], + videos: [], + followers: 35600, + viewCount: 98700, + createdAt: '2024-04-20', + updatedAt: '2024-08-23', + }, + { + id: 'i018', + name: '田丽娜', + avatar: 'https://images.unsplash.com/photo-1517841905240-472988babdf9?w=400', + coverImage: 'https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1200', + gender: 'female', + birthYear: 1973, + province: '辽宁省', + city: '沈阳市', + level: 'provincial', + heritageItems: ['h017'], + title: '省级非物质文化遗产满族剪纸技艺传承人', + bio: '田丽娜,1973年生于辽宁,满族,从事满族剪纸艺术创作二十余年。', + masterSkills: '精通满族传统剪纸技艺,作品题材丰富,线条流畅,具有浓郁的满族文化特色。', + achievements: [], + awards: [], + works: [], + videos: [], + followers: 16400, + viewCount: 44500, + createdAt: '2024-04-25', + updatedAt: '2024-08-20', + }, + { + id: 'i019', + name: '许志强', + avatar: 'https://images.unsplash.com/photo-1570295999919-56ceb5ecca61?w=400', + coverImage: 'https://images.unsplash.com/photo-1603486037309-e57f1f33eb85?w=1200', + gender: 'male', + birthYear: 1966, + province: '安徽省', + city: '宣城市', + level: 'national', + heritageItems: ['h018'], + title: '国家级非物质文化遗产宣纸制作技艺传承人', + bio: '许志强,1966年生于宣城,宣纸制作大师,从事宣纸制作四十年。', + masterSkills: '精通宣纸传统制作技艺,从选料到成纸的108道工序无不精通,制作的宣纸薄如蝉翼,韧如丝绢。', + achievements: [], + awards: [], + works: [], + videos: [], + followers: 18700, + viewCount: 51200, + createdAt: '2024-05-01', + updatedAt: '2024-08-18', + }, + { + id: 'i020', + name: '罗小芳', + avatar: 'https://images.unsplash.com/photo-1506863530036-1efeddceb993?w=400', + coverImage: 'https://images.unsplash.com/photo-1577979749830-f1d742b96791?w=1200', + gender: 'female', + birthYear: 1984, + province: '重庆市', + city: '重庆市', + level: 'provincial', + heritageItems: ['h019'], + title: '省级非物质文化遗产蜀绣技艺传承人', + bio: '罗小芳,1984年生于重庆,年轻一代蜀绣艺术家,致力于蜀绣的现代化创新。', + masterSkills: '精通蜀绣传统针法,将现代设计元素融入传统蜀绣,作品既有传统韵味又具现代气息。', + achievements: [], + awards: [], + works: [], + videos: [], + followers: 22900, + viewCount: 62800, + createdAt: '2024-05-05', + updatedAt: '2024-08-15', + }, + { + id: 'i021', + name: '何俊杰', + avatar: 'https://images.unsplash.com/photo-1552058544-f2b08422138a?w=400', + coverImage: 'https://images.unsplash.com/photo-1565630916779-e303be97b6f5?w=1200', + gender: 'male', + birthYear: 1971, + province: '湖北省', + city: '武汉市', + level: 'provincial', + heritageItems: ['h020'], + title: '省级非物质文化遗产汉绣技艺传承人', + bio: '何俊杰,1971年生于武汉,汉绣艺术大师,从事汉绣研究与创作三十年。', + masterSkills: '精通汉绣传统技艺,擅长人物、花鸟题材,作品色彩浓艳,层次分明,具有楚文化特色。', + achievements: [], + awards: [], + works: [], + videos: [], + followers: 19300, + viewCount: 52900, + createdAt: '2024-05-10', + updatedAt: '2024-08-12', + }, + { + id: 'i022', + name: '唐雅琴', + avatar: 'https://images.unsplash.com/photo-1488426862026-3ee34a7d66df?w=400', + coverImage: 'https://images.unsplash.com/photo-1590846406792-0adc7f938f1d?w=1200', + gender: 'female', + birthYear: 1979, + province: '海南省', + city: '海口市', + level: 'provincial', + heritageItems: ['h021'], + title: '省级非物质文化遗产黎族织锦技艺传承人', + bio: '唐雅琴,1979年生于海南,黎族,从事黎族织锦传承与研究二十年。', + masterSkills: '精通黎族传统织锦技艺,擅长黎族传统纹样的编织,作品古朴典雅,民族特色浓郁。', + achievements: [], + awards: [], + works: [], + videos: [], + followers: 14900, + viewCount: 40300, + createdAt: '2024-05-15', + updatedAt: '2024-08-10', + }, + { + id: 'i023', + name: '梁俊峰', + avatar: 'https://images.unsplash.com/photo-1495603889488-42d1d66e5523?w=400', + coverImage: 'https://images.unsplash.com/photo-1587813369290-091c9d432daf?w=1200', + gender: 'male', + birthYear: 1964, + province: '河北省', + city: '承德市', + level: 'provincial', + heritageItems: ['h022'], + title: '省级非物质文化遗产内画鼻烟壶技艺传承人', + bio: '梁俊峰,1964年生于承德,内画艺术大师,从事内画创作四十年。', + masterSkills: '精通内画传统技艺,擅长人物、山水题材,作品笔法细腻,意境深远。', + achievements: [], + awards: [], + works: [], + videos: [], + followers: 17600, + viewCount: 48200, + createdAt: '2024-05-20', + updatedAt: '2024-08-08', + }, +] + +// ===== 资讯数据 ===== +export const mockNews: NewsArticle[] = [ + { + id: 'n001', + title: '非遗传承新篇章:数字化保护让千年技艺焕发新生', + subtitle: '探索科技与传统文化的完美融合', + cover: 'https://images.unsplash.com/photo-1612198188060-c7c2a3b66eae?w=800', + category: 'research', + content: '随着数字技术的发展,非物质文化遗产的保护和传承进入了新时代。通过3D扫描、虚拟现实等先进技术,我们能够以前所未有的方式记录、保存和展示非遗技艺。本文深入探讨了数字化技术在非遗保护中的应用实践,分析了其带来的机遇与挑战。', + summary: '数字化技术为非遗保护带来新机遇,通过VR、AR等技术手段,让更多人了解和体验非遗文化。', + author: '李明', + publishDate: '2024-09-15', + tags: ['数字化', '保护', '创新'], + viewCount: 8765, + likeCount: 1234, + relatedHeritage: ['h001', 'h002'], + }, + { + id: 'n002', + title: '2024年非遗传承人培训班圆满结束', + cover: 'https://images.unsplash.com/photo-1524178232363-1fb2b075b655?w=800', + category: 'activity', + content: '为期一个月的非遗传承人培训班于今日圆满结束,来自全国各地的100余名传承人参加了培训。培训内容涵盖传统技艺提升、现代营销理念、知识产权保护、电商平台运营等多个方面。学员们表示收获颇丰,不仅提升了技艺水平,更学会了如何在新时代更好地传承和发展非遗文化。', + summary: '培训内容涵盖传统技艺提升、现代营销理念、知识产权保护等多个方面。', + author: '张华', + publishDate: '2024-09-10', + tags: ['培训', '传承人', '技艺提升'], + viewCount: 5432, + likeCount: 876, + }, + { + id: 'n003', + title: '国家级非遗代表性项目名录新增37项', + subtitle: '文化传承迎来新成员', + cover: 'https://images.unsplash.com/photo-1544947950-fa07a98d237f?w=800', + category: 'policy', + content: '文化和旅游部近日公布了第五批国家级非物质文化遗产代表性项目名录,共新增37个项目。这些项目涵盖了传统技艺、传统医药、民俗等多个类别,进一步丰富了我国非遗保护体系。此次入选项目具有重要的历史、文学、艺术、科学价值,对于传承中华优秀传统文化具有重要意义。', + summary: '文化和旅游部公布第五批国家级非遗代表性项目名录,新增37个项目。', + author: '王芳', + publishDate: '2024-09-20', + tags: ['政策', '名录', '国家级'], + viewCount: 12350, + likeCount: 2156, + }, + { + id: 'n004', + title: '景泰蓝精品展在故宫博物院开幕', + cover: 'https://images.unsplash.com/photo-1610701596007-11502861dcfa?w=800', + category: 'exhibition', + content: '"千年技艺 璀璨华章——景泰蓝艺术精品展"今日在故宫博物院开幕。展览汇集了从元代至今的200余件景泰蓝精品,全面展示了景泰蓝制作技艺的发展历程和艺术成就。其中包括多件国宝级文物,为观众呈现了一场视觉盛宴。', + summary: '故宫博物院举办景泰蓝艺术精品展,展出200余件从元代至今的精品文物。', + author: '刘强', + publishDate: '2024-09-18', + tags: ['展览', '景泰蓝', '故宫'], + viewCount: 15680, + likeCount: 3245, + relatedHeritage: ['h001'], + }, + { + id: 'n005', + title: '非遗传承人李师傅的坚守:四十年匠心打造宣纸', + cover: 'https://images.unsplash.com/photo-1455390582262-044cdead277a?w=800', + category: 'story', + content: '在安徽泾县,72岁的李师傅已经与宣纸为伴四十余年。从18岁入行开始,他始终坚守在传统手工造纸第一线。"宣纸制作有108道工序,每一步都马虎不得。"李师傅说,现代化设备虽然提高了效率,但传统手工制作的宣纸质量是机器无法替代的。', + summary: '72岁传承人李师傅坚守传统宣纸制作四十余年,用匠心诠释非遗精神。', + author: '陈静', + publishDate: '2024-09-05', + tags: ['传承人', '宣纸', '工匠精神'], + viewCount: 9876, + likeCount: 1789, + }, + { + id: 'n006', + title: '苏绣走向世界:中国传统技艺惊艳巴黎时装周', + cover: 'https://images.unsplash.com/photo-1617038260897-41a1f14a8ca0?w=800', + category: 'activity', + content: '在刚刚结束的巴黎时装周上,融入苏绣元素的中国设计师作品惊艳全场。精美的苏绣图案与现代时装设计完美融合,展现了中国传统工艺的独特魅力。这不仅是一次时尚展示,更是中国非遗文化走向世界的重要一步。', + summary: '苏绣元素融入巴黎时装周,中国传统技艺惊艳世界舞台。', + author: '赵敏', + publishDate: '2024-09-01', + tags: ['苏绣', '时装周', '国际化'], + viewCount: 18920, + likeCount: 4567, + relatedHeritage: ['h002'], + }, +] + +// ===== 活动数据 ===== +export const mockEvents: Event[] = [ + { + id: 'e001', + title: '2024中国非遗博览会', + cover: 'https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800', + type: 'exhibition', + location: '中国国际展览中心', + address: '北京市朝阳区北三环东路6号', + startDate: '2024-10-15', + endDate: '2024-10-20', + startTime: '09:00', + endTime: '17:00', + description: '汇集全国各地优秀非遗项目,展示传统技艺的魅力,促进非遗文化的传承与发展。本届博览会设有传统技艺展示区、非遗体验区、传承人互动区等多个主题区域,为观众提供全方位的非遗文化体验。', + organizer: '文化和旅游部', + capacity: 5000, + enrolled: 3240, + price: 0, + isFree: true, + tags: ['博览会', '展览', '全国性'], + status: 'upcoming', + registrationRequired: true, + contactInfo: { + phone: '010-12345678', + email: 'heritage@example.com', + }, + relatedHeritage: ['h001', 'h002', 'h003'], + images: ['https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800'], + viewCount: 15680, + }, + { + id: 'e002', + title: '苏绣体验工作坊', + cover: 'https://images.unsplash.com/photo-1617038260897-41a1f14a8ca0?w=800', + type: 'workshop', + location: '苏州刺绣博物馆', + address: '江苏省苏州市高新区镇湖街道', + startDate: '2024-10-25', + endDate: '2024-10-25', + startTime: '14:00', + endTime: '17:00', + description: '跟随国家级传承人姚惠芬学习苏绣基础技法,亲手体验千年刺绣艺术。工作坊将教授基本针法、配色技巧和图案设计,学员可以完成一件小型苏绣作品并带回家。', + organizer: '苏州刺绣博物馆', + capacity: 30, + enrolled: 28, + price: 380, + isFree: false, + tags: ['工作坊', '苏绣', '体验'], + status: 'upcoming', + registrationRequired: true, + contactInfo: { + phone: '0512-87654321', + email: 'suzhou@example.com', + }, + relatedHeritage: ['h002'], + images: ['https://images.unsplash.com/photo-1617038260897-41a1f14a8ca0?w=800'], + viewCount: 8920, + }, + { + id: 'e003', + title: '京剧名家演出:《贵妃醉酒》', + cover: 'https://images.unsplash.com/photo-1580130732478-1384202cc90e?w=800', + type: 'performance', + location: '国家大剧院', + address: '北京市西城区西长安街2号', + startDate: '2024-11-05', + endDate: '2024-11-05', + startTime: '19:30', + endTime: '21:30', + description: '国家京剧院著名表演艺术家梅葆玖嫡传弟子献演经典剧目《贵妃醉酒》,展现梅派艺术的精髓。演出将呈现传统京剧的唱、念、做、打四功五法,是一场不可错过的艺术盛宴。', + organizer: '国家京剧院', + capacity: 1200, + enrolled: 980, + price: 280, + isFree: false, + tags: ['京剧', '演出', '梅派'], + status: 'upcoming', + registrationRequired: true, + contactInfo: { + phone: '010-66550000', + email: 'opera@example.com', + }, + relatedHeritage: ['h005'], + images: ['https://images.unsplash.com/photo-1580130732478-1384202cc90e?w=800'], + viewCount: 12450, + }, + { + id: 'e004', + title: '非遗保护与传承学术讲座', + cover: 'https://images.unsplash.com/photo-1524178232363-1fb2b075b655?w=800', + type: 'lecture', + location: '北京大学', + address: '北京市海淀区颐和园路5号', + startDate: '2024-10-30', + endDate: '2024-10-30', + startTime: '14:00', + endTime: '16:30', + description: '邀请国内知名非遗保护专家学者,就非遗保护的理论与实践、数字化保护技术应用、活态传承模式创新等话题展开深入探讨。讲座面向非遗从业者、研究人员和文化爱好者开放。', + organizer: '北京大学文化遗产保护研究中心', + capacity: 200, + enrolled: 156, + price: 0, + isFree: true, + tags: ['讲座', '学术', '保护'], + status: 'upcoming', + registrationRequired: true, + contactInfo: { + phone: '010-62751234', + email: 'heritage@pku.edu.cn', + }, + images: ['https://images.unsplash.com/photo-1524178232363-1fb2b075b655?w=800'], + viewCount: 6830, + }, + { + id: 'e005', + title: '中秋传统文化节', + cover: 'https://images.unsplash.com/photo-1570301420062-3a6a30e34677?w=800', + type: 'festival', + location: '颐和园', + address: '北京市海淀区新建宫门路19号', + startDate: '2024-09-15', + endDate: '2024-09-17', + startTime: '09:00', + endTime: '18:00', + description: '传统中秋文化节活动,包括月饼制作体验、花灯制作、古诗词朗诵、传统音乐演出等丰富多彩的活动。游客可以身穿汉服,体验传统中秋佳节的文化氛围,感受中华传统节日的独特魅力。', + organizer: '颐和园管理处', + capacity: 3000, + enrolled: 2650, + price: 60, + isFree: false, + tags: ['节日', '中秋', '传统文化'], + status: 'finished', + registrationRequired: false, + contactInfo: { + phone: '010-62881144', + email: 'yiheyuan@example.com', + }, + images: ['https://images.unsplash.com/photo-1570301420062-3a6a30e34677?w=800'], + viewCount: 18740, + }, + { + id: 'e006', + title: '景泰蓝制作技艺工作坊', + cover: 'https://images.unsplash.com/photo-1610701596007-11502861dcfa?w=800', + type: 'workshop', + location: '北京珐琅厂', + address: '北京市东城区永定门外安乐林路10号', + startDate: '2024-11-10', + endDate: '2024-11-10', + startTime: '10:00', + endTime: '16:00', + description: '由国家级非遗传承人亲自指导,学习景泰蓝制作的掐丝、点蓝等核心工序。学员将亲手制作一件景泰蓝小摆件,深入了解这项宫廷艺术的精湛技艺。包含午餐和材料费。', + organizer: '北京珐琅厂', + capacity: 20, + enrolled: 18, + price: 680, + isFree: false, + tags: ['工作坊', '景泰蓝', '亲子'], + status: 'upcoming', + registrationRequired: true, + contactInfo: { + phone: '010-67211677', + email: 'cloisonne@example.com', + }, + relatedHeritage: ['h001'], + images: ['https://images.unsplash.com/photo-1610701596007-11502861dcfa?w=800'], + viewCount: 9560, + }, +] + +// ===== 评论数据 ===== +export const mockComments: Comment[] = [ + { + id: 'cm001', + userId: 'u001', + userName: '文化爱好者', + userAvatar: 'https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?w=100', + targetType: 'heritage', + targetId: 'h001', + content: '景泰蓝真的太精美了!每一件作品都是艺术品,希望这门技艺能够一直传承下去。', + rating: 5, + likeCount: 45, + replyCount: 3, + createdAt: '2024-09-20T10:30:00', + updatedAt: '2024-09-20T10:30:00', + }, + { + id: 'cm002', + userId: 'u002', + userName: '手工艺人', + userAvatar: 'https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=100', + targetType: 'heritage', + targetId: 'h002', + content: '去年参观了苏州刺绣博物馆,被苏绣的精湛技艺深深震撼,每一针每一线都蕴含着匠人的心血。', + rating: 5, + likeCount: 32, + replyCount: 1, + createdAt: '2024-09-18T14:20:00', + updatedAt: '2024-09-18T14:20:00', + }, + { + id: 'cm003', + userId: 'u003', + userName: '学生小王', + userAvatar: 'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=100', + targetType: 'course', + targetId: 'c001', + content: '钟老师讲得非常详细,作为零基础学员也能听懂。课程内容丰富,实操性强!', + rating: 5, + likeCount: 28, + replyCount: 0, + createdAt: '2024-09-25T09:15:00', + updatedAt: '2024-09-25T09:15:00', + }, +] + +// ===== 用户数据 ===== +export const mockUsers: User[] = [ + { + id: 'u001', + username: 'heritage_lover', + nickname: '文化爱好者', + avatar: 'https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?w=100', + email: 'user1@example.com', + phone: '13800138001', + bio: '热爱传统文化,致力于非遗保护与传承', + favorites: ['h001', 'h002'], + followedInheritors: ['i001', 'i003'], + enrolledCourses: ['c001'], + registeredEvents: ['e001'], + points: 1580, + level: 5, + createdAt: '2023-05-10', + }, + { + id: 'u002', + username: 'craftsman_wang', + nickname: '手工艺人', + avatar: 'https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=100', + email: 'user2@example.com', + favorites: ['h002', 'h003'], + followedInheritors: ['i003'], + enrolledCourses: ['c002'], + registeredEvents: ['e002'], + points: 2340, + level: 7, + createdAt: '2023-03-15', + }, +] + +// 导出所有 Mock 数据 +export const mockData = { + statistics: mockStatistics, + heritageItems: mockHeritageItems, + inheritors: mockInheritors, + news: mockNews, + events: mockEvents, + comments: mockComments, + users: mockUsers, +}