diff --git a/internal/database/seed_app.go b/internal/database/seed_app.go index 7734166..7682309 100644 --- a/internal/database/seed_app.go +++ b/internal/database/seed_app.go @@ -19,12 +19,12 @@ func seedAppData(db *gorm.DB) error { // 应用分类 categories := []model.AppCategory{ - {Name: "社交通讯", Icon: "social", Sort: 1}, - {Name: "效率办公", Icon: "productivity", Sort: 2}, - {Name: "影音娱乐", Icon: "entertainment", Sort: 3}, - {Name: "生活服务", Icon: "lifestyle", Sort: 4}, - {Name: "教育学习", Icon: "education", Sort: 5}, - {Name: "工具开发", Icon: "tools", Sort: 6}, + {Name: "Social & Communication", Icon: "social", Sort: 1}, + {Name: "Productivity", Icon: "productivity", Sort: 2}, + {Name: "Entertainment", Icon: "entertainment", Sort: 3}, + {Name: "Lifestyle", Icon: "lifestyle", Sort: 4}, + {Name: "Education", Icon: "education", Sort: 5}, + {Name: "Tools & Development", Icon: "tools", Sort: 6}, } for i := range categories { if err := db.Create(&categories[i]).Error; err != nil { @@ -34,35 +34,35 @@ func seedAppData(db *gorm.DB) error { // 应用数据 apps := []model.App{ - // 社交通讯 - {Name: "云信 Messenger", Description: "跨平台即时通讯应用,支持文字、语音、视频通话,端到端加密保障隐私安全。群聊最多支持 500 人,文件传输不限大小,消息多端同步永久保存。", CategoryID: 1, CategoryName: "社交通讯", Developer: "CloudCom Inc.", Rating: 4.8, Reviews: 1280000, Downloads: 56000000, Size: "85 MB", Version: "v8.2.1", UpdateDate: "2026-06-20", Platform: "iOS / Android / PC / Mac", Price: "免费", Tags: `["即时通讯","加密","视频通话"]`, Features: `["端到端加密","500人群聊","多端同步","文件传输"]`, IsFeatured: true, Sort: 1, Status: 1}, - {Name: "脉圈社交", Description: "兴趣社交平台,找到志同道合的朋友。基于 AI 推荐算法匹配兴趣圈子,支持语音房、直播、动态分享。让社交更有温度。", CategoryID: 1, CategoryName: "社交通讯", Developer: "Circle Tech", Rating: 4.5, Reviews: 680000, Downloads: 23000000, Size: "120 MB", Version: "v5.6.0", UpdateDate: "2026-07-01", Platform: "iOS / Android", Price: "免费", Tags: `["兴趣社交","语音房","直播"]`, Features: `["AI兴趣匹配","语音聊天室","直播互动","动态广场"]`, IsNew: true, Sort: 2, Status: 1}, - {Name: "邮管家 Pro", Description: "专业邮件管理工具,聚合管理多个邮箱账号。智能分类、日程提取、AI 草稿撰写,让邮件处理效率提升 300%。", CategoryID: 1, CategoryName: "社交通讯", Developer: "MailPro Studio", Rating: 4.6, Reviews: 320000, Downloads: 8500000, Size: "45 MB", Version: "v3.4.2", UpdateDate: "2026-05-15", Platform: "iOS / Android / PC / Mac", Price: "免费", Tags: `["邮件管理","AI助手","效率"]`, Features: `["多邮箱聚合","AI智能分类","日程自动提取","草稿AI撰写"]`, Sort: 3, Status: 1}, + // Social & Communication + {Name: "CloudChat Messenger", Description: "Cross-platform instant messaging app supporting text, voice, and video calls with end-to-end encryption for privacy protection. Group chats support up to 500 members, unlimited file transfers, and permanent multi-device message sync.", CategoryID: 1, CategoryName: "Social & Communication", Developer: "CloudCom Inc.", Rating: 4.8, Reviews: 1280000, Downloads: 56000000, Size: "85 MB", Version: "v8.2.1", UpdateDate: "2026-06-20", Platform: "iOS / Android / PC / Mac", Price: "Free", Tags: `["Instant Messaging","Encryption","Video Calls"]`, Features: `["End-to-End Encryption","500-Person Group Chat","Multi-Device Sync","File Transfer"]`, IsFeatured: true, Sort: 1, Status: 1}, + {Name: "PulseCircle Social", Description: "Interest-based social platform to find like-minded friends. AI-powered recommendation algorithm matches interest circles with voice rooms, live streaming, and feed sharing. Making social connections more meaningful.", CategoryID: 1, CategoryName: "Social & Communication", Developer: "Circle Tech", Rating: 4.5, Reviews: 680000, Downloads: 23000000, Size: "120 MB", Version: "v5.6.0", UpdateDate: "2026-07-01", Platform: "iOS / Android", Price: "Free", Tags: `["Interest Social","Voice Rooms","Live Streaming"]`, Features: `["AI Interest Matching","Voice Chat Rooms","Live Interaction","Feed Square"]`, IsNew: true, Sort: 2, Status: 1}, + {Name: "MailMaster Pro", Description: "Professional email management tool that aggregates multiple email accounts. Smart categorization, calendar event extraction, and AI draft writing boost email productivity by 300%.", CategoryID: 1, CategoryName: "Social & Communication", Developer: "MailPro Studio", Rating: 4.6, Reviews: 320000, Downloads: 8500000, Size: "45 MB", Version: "v3.4.2", UpdateDate: "2026-05-15", Platform: "iOS / Android / PC / Mac", Price: "Free", Tags: `["Email Management","AI Assistant","Productivity"]`, Features: `["Multi-Account Aggregation","AI Smart Categorization","Auto Calendar Extraction","AI Draft Writing"]`, Sort: 3, Status: 1}, - // 效率办公 - {Name: "Notion 笔记 Pro", Description: "一体化工作空间,集笔记、文档、数据库、看板、日历于一体。团队协作实时同步,支持 50+ 内容块类型,API 开放生态。", CategoryID: 2, CategoryName: "效率办公", Developer: "Notion Labs", Rating: 4.9, Reviews: 2100000, Downloads: 45000000, Size: "65 MB", Version: "v10.0.0", UpdateDate: "2026-06-28", Platform: "全平台", Price: "免费", Tags: `["笔记","协作","数据库"]`, Features: `["50+内容块","实时协作","数据库视图","API开放"]`, IsFeatured: true, Sort: 1, Status: 1}, - {Name: "飞项项目管理", Description: "敏捷项目管理工具,支持 Scrum/Kanban 双模式。甘特图、燃尽图、工时统计、自动报表,让团队交付更高效。", CategoryID: 2, CategoryName: "效率办公", Developer: "FeiXiang Team", Rating: 4.7, Reviews: 890000, Downloads: 15000000, Size: "78 MB", Version: "v6.1.0", UpdateDate: "2026-07-05", Platform: "iOS / Android / PC / Mac", Price: "免费", Tags: `["项目管理","敏捷","协作"]`, Features: `["Scrum/Kanban","甘特图","工时统计","自动报表"]`, IsNew: true, Sort: 2, Status: 1}, - {Name: "极简扫描仪", Description: "手机扫描仪,拍照即文档。AI 自动裁切矫正、OCR 文字识别支持 50+ 语言、PDF/JPEG 导出、电子签名,随身办公利器。", CategoryID: 2, CategoryName: "效率办公", Developer: "ScanPro", Rating: 4.6, Reviews: 560000, Downloads: 12000000, Size: "38 MB", Version: "v4.2.0", UpdateDate: "2026-04-20", Platform: "iOS / Android", Price: "免费", Tags: `["扫描","OCR","PDF"]`, Features: `["AI自动裁切","50+语言OCR","电子签名","云端同步"]`, Sort: 3, Status: 1}, + // Productivity + {Name: "Notion Notes Pro", Description: "All-in-one workspace combining notes, documents, databases, kanban boards, and calendars. Real-time team collaboration with 50+ content block types and an open API ecosystem.", CategoryID: 2, CategoryName: "Productivity", Developer: "Notion Labs", Rating: 4.9, Reviews: 2100000, Downloads: 45000000, Size: "65 MB", Version: "v10.0.0", UpdateDate: "2026-06-28", Platform: "All Platforms", Price: "Free", Tags: `["Notes","Collaboration","Databases"]`, Features: `["50+ Content Blocks","Real-Time Collaboration","Database Views","Open API"]`, IsFeatured: true, Sort: 1, Status: 1}, + {Name: "FeiXiang Project", Description: "Agile project management tool supporting Scrum/Kanban dual modes. Gantt charts, burndown charts, timesheet tracking, and auto-generated reports for more efficient team delivery.", CategoryID: 2, CategoryName: "Productivity", Developer: "FeiXiang Team", Rating: 4.7, Reviews: 890000, Downloads: 15000000, Size: "78 MB", Version: "v6.1.0", UpdateDate: "2026-07-05", Platform: "iOS / Android / PC / Mac", Price: "Free", Tags: `["Project Management","Agile","Collaboration"]`, Features: `["Scrum/Kanban","Gantt Charts","Timesheet Tracking","Auto Reports"]`, IsNew: true, Sort: 2, Status: 1}, + {Name: "SnapScan Pro", Description: "Mobile document scanner — take a photo and get a document. AI auto-crop and deskew, OCR text recognition in 50+ languages, PDF/JPEG export, and e-signatures. Your portable office tool.", CategoryID: 2, CategoryName: "Productivity", Developer: "ScanPro", Rating: 4.6, Reviews: 560000, Downloads: 12000000, Size: "38 MB", Version: "v4.2.0", UpdateDate: "2026-04-20", Platform: "iOS / Android", Price: "Free", Tags: `["Scanner","OCR","PDF"]`, Features: `["AI Auto-Crop","50+ Language OCR","E-Signatures","Cloud Sync"]`, Sort: 3, Status: 1}, - // 影音娱乐 - {Name: "云音 Music", Description: "高品质音乐流媒体,支持无损/Hi-Res 音质。AI 个性化推荐、歌词翻译、音乐社区、播客内容,5000 万+ 曲库等你探索。", CategoryID: 3, CategoryName: "影音娱乐", Developer: "CloudMusic", Rating: 4.8, Reviews: 3200000, Downloads: 89000000, Size: "95 MB", Version: "v9.0.0", UpdateDate: "2026-06-15", Platform: "全平台", Price: "免费", Tags: `["音乐","无损","推荐"]`, Features: `["无损/Hi-Res音质","AI个性化推荐","5000万曲库","播客内容"]`, IsFeatured: true, IsNew: true, Sort: 1, Status: 1}, - {Name: "极影视频", Description: "短视频+长视频融合平台。4K 超清播放、智能跳片、弹幕互动、创作者激励计划。海量优质内容每日更新。", CategoryID: 3, CategoryName: "影音娱乐", Developer: "JiYing Media", Rating: 4.5, Reviews: 1800000, Downloads: 67000000, Size: "110 MB", Version: "v7.3.0", UpdateDate: "2026-07-02", Platform: "iOS / Android / PC", Price: "免费", Tags: `["视频","4K","弹幕"]`, Features: `["4K超清播放","智能跳片","弹幕互动","创作者激励"]`, Sort: 2, Status: 1}, - {Name: "播客空间", Description: "优质播客聚合平台,百万节目免费收听。睡眠定时、倍速播放、智能下载、离线收听,通勤路上的最佳伴侣。", CategoryID: 3, CategoryName: "影音娱乐", Developer: "Podcast Space", Rating: 4.7, Reviews: 420000, Downloads: 9800000, Size: "52 MB", Version: "v3.0.5", UpdateDate: "2026-05-30", Platform: "iOS / Android", Price: "免费", Tags: `["播客","音频","离线"]`, Features: `["百万播客节目","睡眠定时","智能下载","离线收听"]`, Sort: 3, Status: 1}, + // Entertainment + {Name: "CloudTunes Music", Description: "High-quality music streaming with lossless/Hi-Res audio. AI personalized recommendations, lyric translations, music community, and podcast content. 50M+ track library waiting for you to explore.", CategoryID: 3, CategoryName: "Entertainment", Developer: "CloudMusic", Rating: 4.8, Reviews: 3200000, Downloads: 89000000, Size: "95 MB", Version: "v9.0.0", UpdateDate: "2026-06-15", Platform: "All Platforms", Price: "Free", Tags: `["Music","Lossless","Recommendations"]`, Features: `["Lossless/Hi-Res Audio","AI Personalized Recommendations","50M+ Track Library","Podcast Content"]`, IsFeatured: true, IsNew: true, Sort: 1, Status: 1}, + {Name: "CinemaCast Video", Description: "Short-form + long-form video fusion platform. 4K ultra-HD playback, smart skip, danmaku interaction, and creator incentive programs. Massive quality content updated daily.", CategoryID: 3, CategoryName: "Entertainment", Developer: "JiYing Media", Rating: 4.5, Reviews: 1800000, Downloads: 67000000, Size: "110 MB", Version: "v7.3.0", UpdateDate: "2026-07-02", Platform: "iOS / Android / PC", Price: "Free", Tags: `["Video","4K","Danmaku"]`, Features: `["4K Ultra-HD Playback","Smart Skip","Danmaku Interaction","Creator Incentives"]`, Sort: 2, Status: 1}, + {Name: "PodNest", Description: "Premium podcast aggregation platform with millions of free shows. Sleep timer, variable speed playback, smart downloads, and offline listening — the perfect companion for your commute.", CategoryID: 3, CategoryName: "Entertainment", Developer: "Podcast Space", Rating: 4.7, Reviews: 420000, Downloads: 9800000, Size: "52 MB", Version: "v3.0.5", UpdateDate: "2026-05-30", Platform: "iOS / Android", Price: "Free", Tags: `["Podcasts","Audio","Offline"]`, Features: `["Millions of Podcasts","Sleep Timer","Smart Download","Offline Listening"]`, Sort: 3, Status: 1}, - // 生活服务 - {Name: "美团生活+", Description: "一站式生活服务平台,外卖、到店、酒店、机票、电影票、打车、买菜。覆盖 2800+ 城市,每天千万优惠等你享。", CategoryID: 4, CategoryName: "生活服务", Developer: "Meituan", Rating: 4.6, Reviews: 5600000, Downloads: 120000000, Size: "180 MB", Version: "v12.5.0", UpdateDate: "2026-07-08", Platform: "iOS / Android", Price: "免费", Tags: `["外卖","生活服务","优惠"]`, Features: `["2800+城市覆盖","外卖到店","酒店机票","每日千万优惠"]`, IsFeatured: true, Sort: 1, Status: 1}, - {Name: "健康助手", Description: "AI 健康管理应用,记录运动、睡眠、饮食、心率。AI 健康报告、个性化运动计划、用药提醒、在线问诊,你的私人健康管家。", CategoryID: 4, CategoryName: "生活服务", Developer: "HealthPlus", Rating: 4.5, Reviews: 780000, Downloads: 18000000, Size: "88 MB", Version: "v5.0.0", UpdateDate: "2026-06-10", Platform: "iOS / Android", Price: "免费", Tags: `["健康","运动","AI"]`, Features: `["AI健康报告","个性化运动计划","用药提醒","在线问诊"]`, Sort: 2, Status: 1}, - {Name: "旅行蜂巢", Description: "智能旅行规划助手,AI 一键生成行程攻略。景点门票、酒店预订、当地美食、实时翻译、离线地图,旅行如此简单。", CategoryID: 4, CategoryName: "生活服务", Developer: "TravelHive", Rating: 4.7, Reviews: 950000, Downloads: 25000000, Size: "130 MB", Version: "v4.8.0", UpdateDate: "2026-07-03", Platform: "iOS / Android", Price: "免费", Tags: `["旅行","AI规划","翻译"]`, Features: `["AI行程规划","景点门票预订","实时翻译","离线地图"]`, IsNew: true, Sort: 3, Status: 1}, + // Lifestyle + {Name: "LifeHub+", Description: "One-stop lifestyle service platform covering food delivery, dining, hotels, flights, movie tickets, ride-hailing, and grocery shopping. Available in 2800+ cities with millions of daily deals.", CategoryID: 4, CategoryName: "Lifestyle", Developer: "LifeHub", Rating: 4.6, Reviews: 5600000, Downloads: 120000000, Size: "180 MB", Version: "v12.5.0", UpdateDate: "2026-07-08", Platform: "iOS / Android", Price: "Free", Tags: `["Delivery","Lifestyle","Deals"]`, Features: `["2800+ City Coverage","Food Delivery & Dining","Hotels & Flights","Millions of Daily Deals"]`, IsFeatured: true, Sort: 1, Status: 1}, + {Name: "HealthBuddy", Description: "AI health management app tracking exercise, sleep, diet, and heart rate. AI health reports, personalized workout plans, medication reminders, and online consultations — your personal health manager.", CategoryID: 4, CategoryName: "Lifestyle", Developer: "HealthPlus", Rating: 4.5, Reviews: 780000, Downloads: 18000000, Size: "88 MB", Version: "v5.0.0", UpdateDate: "2026-06-10", Platform: "iOS / Android", Price: "Free", Tags: `["Health","Fitness","AI"]`, Features: `["AI Health Reports","Personalized Workout Plans","Medication Reminders","Online Consultations"]`, Sort: 2, Status: 1}, + {Name: "TravelHive", Description: "Smart travel planning assistant that generates itineraries with AI in one tap. Attraction tickets, hotel bookings, local dining, real-time translation, and offline maps — travel made simple.", CategoryID: 4, CategoryName: "Lifestyle", Developer: "TravelHive", Rating: 4.7, Reviews: 950000, Downloads: 25000000, Size: "130 MB", Version: "v4.8.0", UpdateDate: "2026-07-03", Platform: "iOS / Android", Price: "Free", Tags: `["Travel","AI Planning","Translation"]`, Features: `["AI Itinerary Planning","Ticket Booking","Real-Time Translation","Offline Maps"]`, IsNew: true, Sort: 3, Status: 1}, - // 教育学习 - {Name: "多邻国语言", Description: "游戏化学语言应用,覆盖 40+ 语言。闯关式学习、AI 口语练习、个性化复习曲线,每天 15 分钟轻松掌握一门新语言。", CategoryID: 5, CategoryName: "教育学习", Developer: "Duolingo Inc.", Rating: 4.8, Reviews: 2800000, Downloads: 78000000, Size: "70 MB", Version: "v6.5.0", UpdateDate: "2026-06-25", Platform: "iOS / Android / PC", Price: "免费", Tags: `["语言学习","游戏化","口语"]`, Features: `["40+语言","闯关式学习","AI口语练习","个性化复习"]`, IsFeatured: true, Sort: 1, Status: 1}, - {Name: "知识星球", Description: "优质知识社区平台,加入你感兴趣的领域圈子。行业大咖分享、深度专栏、付费课程、问答互动,持续学习持续成长。", CategoryID: 5, CategoryName: "教育学习", Developer: "Knowledge Planet", Rating: 4.6, Reviews: 650000, Downloads: 14000000, Size: "58 MB", Version: "v5.2.0", UpdateDate: "2026-05-18", Platform: "iOS / Android / PC", Price: "免费", Tags: `["知识社区","课程","问答"]`, Features: `["行业圈子","深度专栏","付费课程","问答互动"]`, Sort: 2, Status: 1}, - {Name: "数学大师", Description: "AI 数学解题助手,拍照即解。覆盖小学到大学全阶段数学,详细步骤解析、知识点关联、同类题推荐,学霸养成神器。", CategoryID: 5, CategoryName: "教育学习", Developer: "MathMaster", Rating: 4.5, Reviews: 890000, Downloads: 22000000, Size: "62 MB", Version: "v3.8.0", UpdateDate: "2026-06-12", Platform: "iOS / Android", Price: "免费", Tags: `["数学","AI解题","教育"]`, Features: `["拍照解题","详细步骤解析","知识点关联","同类题推荐"]`, IsNew: true, Sort: 3, Status: 1}, + // Education + {Name: "LingoQuest", Description: "Gamified language learning app covering 40+ languages. Level-based progression, AI speaking practice, and personalized review curves. Learn a new language in just 15 minutes a day.", CategoryID: 5, CategoryName: "Education", Developer: "LingoQuest Inc.", Rating: 4.8, Reviews: 2800000, Downloads: 78000000, Size: "70 MB", Version: "v6.5.0", UpdateDate: "2026-06-25", Platform: "iOS / Android / PC", Price: "Free", Tags: `["Language Learning","Gamified","Speaking"]`, Features: `["40+ Languages","Level-Based Learning","AI Speaking Practice","Personalized Review"]`, IsFeatured: true, Sort: 1, Status: 1}, + {Name: "KnowledgeHub", Description: "Premium knowledge community platform. Join circles in your fields of interest. Industry expert insights, in-depth columns, paid courses, and Q&A interactions — keep learning and growing.", CategoryID: 5, CategoryName: "Education", Developer: "KnowledgeHub", Rating: 4.6, Reviews: 650000, Downloads: 14000000, Size: "58 MB", Version: "v5.2.0", UpdateDate: "2026-05-18", Platform: "iOS / Android / PC", Price: "Free", Tags: `["Knowledge Community","Courses","Q&A"]`, Features: `["Industry Circles","In-Depth Columns","Paid Courses","Q&A Interactions"]`, Sort: 2, Status: 1}, + {Name: "MathMaster AI", Description: "AI math solver — snap a photo and get the solution. Covers elementary through university math with detailed step-by-step explanations, knowledge point mapping, and similar problem recommendations.", CategoryID: 5, CategoryName: "Education", Developer: "MathMaster", Rating: 4.5, Reviews: 890000, Downloads: 22000000, Size: "62 MB", Version: "v3.8.0", UpdateDate: "2026-06-12", Platform: "iOS / Android", Price: "Free", Tags: `["Math","AI Solver","Education"]`, Features: `["Photo Math Solver","Step-by-Step Explanations","Knowledge Mapping","Similar Problems"]`, IsNew: true, Sort: 3, Status: 1}, - // 工具开发 - {Name: "DevBox 代码编辑器", Description: "移动端专业代码编辑器,支持 80+ 编程语言语法高亮。Git 集成、SSH 终端、AI 代码补全、正则测试,随时随地进行代码工作。", CategoryID: 6, CategoryName: "工具开发", Developer: "DevBox Studio", Rating: 4.7, Reviews: 560000, Downloads: 6500000, Size: "92 MB", Version: "v4.0.0", UpdateDate: "2026-07-06", Platform: "iOS / Android / PC", Price: "免费", Tags: `["代码编辑","Git","SSH"]`, Features: `["80+语言高亮","Git集成","SSH终端","AI代码补全"]`, IsFeatured: true, Sort: 1, Status: 1}, - {Name: "API 测试大师", Description: "专业 API 调试工具,支持 REST/GraphQL/WebSocket。环境变量管理、批量测试、性能压测、自动化测试脚本,前后端联调利器。", CategoryID: 6, CategoryName: "工具开发", Developer: "APIMaster", Rating: 4.6, Reviews: 340000, Downloads: 4200000, Size: "48 MB", Version: "v2.5.0", UpdateDate: "2026-06-08", Platform: "iOS / Android / PC / Mac", Price: "免费", Tags: `["API","调试","测试"]`, Features: `["REST/GraphQL/WebSocket","环境变量管理","性能压测","自动化脚本"]`, Sort: 2, Status: 1}, - {Name: "文件管家 X", Description: "全能文件管理工具,支持 100+ 格式预览。ZIP/RAR/7Z 解压、PDF 合并分割、图片批量处理、云盘聚合,手机文件管理终极方案。", CategoryID: 6, CategoryName: "工具开发", Developer: "FileManagerX", Rating: 4.5, Reviews: 720000, Downloads: 15000000, Size: "55 MB", Version: "v6.0.0", UpdateDate: "2026-05-25", Platform: "iOS / Android", Price: "免费", Tags: `["文件管理","解压","PDF"]`, Features: `["100+格式预览","多格式解压","PDF处理","云盘聚合"]`, Sort: 3, Status: 1}, + // Tools & Development + {Name: "DevBox Code Editor", Description: "Professional mobile code editor with syntax highlighting for 80+ programming languages. Git integration, SSH terminal, AI code completion, and regex testing — code anywhere, anytime.", CategoryID: 6, CategoryName: "Tools & Development", Developer: "DevBox Studio", Rating: 4.7, Reviews: 560000, Downloads: 6500000, Size: "92 MB", Version: "v4.0.0", UpdateDate: "2026-07-06", Platform: "iOS / Android / PC", Price: "Free", Tags: `["Code Editor","Git","SSH"]`, Features: `["80+ Language Highlighting","Git Integration","SSH Terminal","AI Code Completion"]`, IsFeatured: true, Sort: 1, Status: 1}, + {Name: "APIMaster Pro", Description: "Professional API debugging tool supporting REST/GraphQL/WebSocket. Environment variable management, batch testing, performance stress testing, and automated test scripts — essential for frontend-backend collaboration.", CategoryID: 6, CategoryName: "Tools & Development", Developer: "APIMaster", Rating: 4.6, Reviews: 340000, Downloads: 4200000, Size: "48 MB", Version: "v2.5.0", UpdateDate: "2026-06-08", Platform: "iOS / Android / PC / Mac", Price: "Free", Tags: `["API","Debugging","Testing"]`, Features: `["REST/GraphQL/WebSocket","Environment Variables","Stress Testing","Automation Scripts"]`, Sort: 2, Status: 1}, + {Name: "FileMaster X", Description: "All-in-one file management tool with 100+ format preview support. ZIP/RAR/7Z extraction, PDF merge and split, batch image processing, and cloud drive aggregation — the ultimate mobile file manager.", CategoryID: 6, CategoryName: "Tools & Development", Developer: "FileMasterX", Rating: 4.5, Reviews: 720000, Downloads: 15000000, Size: "55 MB", Version: "v6.0.0", UpdateDate: "2026-05-25", Platform: "iOS / Android", Price: "Free", Tags: `["File Manager","Extraction","PDF"]`, Features: `["100+ Format Preview","Multi-Format Extraction","PDF Processing","Cloud Drive Aggregation"]`, Sort: 3, Status: 1}, } for i := range apps { if err := db.Create(&apps[i]).Error; err != nil { diff --git a/internal/database/seed_enterprise.go b/internal/database/seed_enterprise.go index 31bae90..5d7d62c 100644 --- a/internal/database/seed_enterprise.go +++ b/internal/database/seed_enterprise.go @@ -8,9 +8,8 @@ import ( "gorm.io/gorm" ) -// seedEnterpriseData 初始化企业数据(3 套企业官网共用) +// seedEnterpriseData initializes enterprise data shared across 3 corporate websites func seedEnterpriseData(db *gorm.DB) error { - // 检查是否已有企业数据 var count int64 db.Model(&model.Company{}).Count(&count) if count > 0 { @@ -18,34 +17,32 @@ func seedEnterpriseData(db *gorm.DB) error { return nil } - // 企业信息 company := model.Company{ - Name: "Nexus 科技集团", + Name: "Nexus Technologies", Logo: "", - Slogan: "创新驱动 · 智领未来", - Description: "Nexus 科技集团成立于 2010 年,是一家专注于人工智能、云计算和物联网技术的高科技企业。我们致力于为全球客户提供数字化转型解决方案,业务覆盖智能制造、智慧城市、金融科技等多个领域。经过十余年发展,集团已拥有超过 2000 名员工,服务客户超过 5000 家,足迹遍及亚洲、欧洲和北美。", - Vision: "成为全球领先的智能科技企业,用技术赋能每一个行业。", - Mission: "以创新技术为核心驱动力,为客户创造价值,为社会承担责任,为员工提供平台。", + Slogan: "Innovation Drives · Intelligence Leads", + Description: "Nexus Technologies, founded in 2010, is a high-tech enterprise specializing in artificial intelligence, cloud computing, and the Internet of Things. We are dedicated to providing digital transformation solutions for global clients, with business spanning smart manufacturing, smart cities, fintech, and more. After over a decade of growth, the group has more than 2,000 employees, serves over 5,000 clients, and has a presence across Asia, Europe, and North America.", + Vision: "To become the world's leading intelligent technology enterprise, empowering every industry through technology.", + Mission: "Driven by innovative technology, we create value for clients, take responsibility for society, and provide a platform for our people.", Phone: "400-888-9999", Email: "contact@nexus-tech.com", - Address: "上海市浦东新区张江高科技园区博云路 2 号", + Address: "No. 2 Boyun Road, Zhangjiang Hi-Tech Park, Pudong New Area, Shanghai", Website: "www.nexus-tech.com", FoundedYear: 2010, EmployeeCount: "2000+", - Stats: `[{"label":"服务客户","value":"5000+","icon":"users"},{"label":"专利技术","value":"320+","icon":"patent"},{"label":"全球分支机构","value":"18","icon":"globe"},{"label":"年营收","value":"50亿+","icon":"revenue"}]`, + Stats: `[{"label":"Clients Served","value":"5000+","icon":"users"},{"label":"Patents","value":"320+","icon":"patent"},{"label":"Global Offices","value":"18","icon":"globe"},{"label":"Annual Revenue","value":"$5B+","icon":"revenue"}]`, } if err := db.Create(&company).Error; err != nil { return err } - // 企业服务 services := []model.EnterpriseService{ - {Title: "人工智能解决方案", Description: "基于深度学习和自然语言处理技术,提供智能客服、图像识别、预测分析等 AI 服务,帮助企业实现智能化升级。", Icon: "ai", Features: `["智能客服系统","图像识别与分析","自然语言处理","预测性分析模型"]`, Sort: 1}, - {Title: "云计算平台", Description: "提供弹性可扩展的云基础设施服务,支持公有云、私有云和混合云部署,99.99% 高可用性保障。", Icon: "cloud", Features: `["弹性计算资源","容器化部署","自动化运维","多云管理"]`, Sort: 2}, - {Title: "物联网平台", Description: "端到端 IoT 解决方案,涵盖设备接入、数据采集、边缘计算和远程管理,已连接设备超过 100 万台。", Icon: "iot", Features: `["百万级设备接入","边缘计算节点","实时数据处理","设备远程管理"]`, Sort: 3}, - {Title: "大数据分析", Description: "一站式大数据平台,支持 PB 级数据存储与实时分析,为业务决策提供数据支撑。", Icon: "data", Features: `["PB级数据存储","实时流计算","数据可视化","智能推荐引擎"]`, Sort: 4}, - {Title: "网络安全服务", Description: "全栈安全防护方案,包括威胁检测、漏洞扫描、数据加密和合规审计,守护企业数字资产安全。", Icon: "security", Features: `["威胁情报检测","Web应用防火墙","数据加密传输","安全合规审计"]`, Sort: 5}, - {Title: "数字化咨询", Description: "资深专家团队提供数字化转型战略咨询,从业务流程优化到技术架构设计,全程陪伴企业成长。", Icon: "consulting", Features: `["数字化转型规划","技术架构设计","业务流程优化","实施路径指导"]`, Sort: 6}, + {Title: "AI Solutions", Description: "Leveraging deep learning and natural language processing, we deliver intelligent customer service, image recognition, predictive analytics, and other AI services to help businesses achieve intelligent transformation.", Icon: "ai", Features: `["Intelligent Customer Service","Image Recognition & Analysis","Natural Language Processing","Predictive Analytics Models"]`, Sort: 1}, + {Title: "Cloud Computing Platform", Description: "Flexible and scalable cloud infrastructure services supporting public, private, and hybrid cloud deployments with 99.99% high availability guarantee.", Icon: "cloud", Features: `["Elastic Compute Resources","Containerized Deployment","Automated Operations","Multi-Cloud Management"]`, Sort: 2}, + {Title: "IoT Platform", Description: "End-to-end IoT solutions covering device connectivity, data collection, edge computing, and remote management, with over 1 million connected devices.", Icon: "iot", Features: `["Million-Device Connectivity","Edge Computing Nodes","Real-Time Data Processing","Remote Device Management"]`, Sort: 3}, + {Title: "Big Data Analytics", Description: "A one-stop big data platform supporting petabyte-scale data storage and real-time analytics to power business decision-making.", Icon: "data", Features: `["PB-Scale Data Storage","Real-Time Stream Processing","Data Visualization","Intelligent Recommendation Engine"]`, Sort: 4}, + {Title: "Cybersecurity Services", Description: "Full-stack security protection including threat detection, vulnerability scanning, data encryption, and compliance auditing to safeguard enterprise digital assets.", Icon: "security", Features: `["Threat Intelligence Detection","Web Application Firewall","Encrypted Data Transmission","Security Compliance Auditing"]`, Sort: 5}, + {Title: "Digital Consulting", Description: "A team of seasoned experts provides strategic digital transformation consulting, from business process optimization to technical architecture design, supporting enterprises at every stage.", Icon: "consulting", Features: `["Digital Transformation Planning","Technical Architecture Design","Business Process Optimization","Implementation Roadmap Guidance"]`, Sort: 6}, } for i := range services { if err := db.Create(&services[i]).Error; err != nil { @@ -53,14 +50,13 @@ func seedEnterpriseData(db *gorm.DB) error { } } - // 新闻 news := []model.EnterpriseNews{ - {Title: "Nexus 科技集团发布新一代 AI 大模型 NexusGPT 4.0", Summary: "全新一代大语言模型在推理能力、多模态理解和代码生成方面实现重大突破,已对外开放 API 接口。", Content: "NexusGPT 4.0 是 Nexus 科技集团自主研发的新一代大语言模型,在自然语言理解、代码生成、数学推理和多模态处理等方面实现了显著提升。该模型参数规模达到 1750 亿,训练数据涵盖中英双语高质量语料。NexusGPT 4.0 已在智能客服、内容创作、代码辅助等场景中部署应用,为客户带来更智能的交互体验。", Category: "product", Author: "产品部", Status: 1}, - {Title: "集团荣获 2026 年度中国人工智能创新企业百强", Summary: "Nexus 科技集团凭借在 AI 领域的持续创新和突出表现,成功入选中国人工智能创新企业百强榜单。", Content: "在近日公布的 2026 年度中国人工智能创新企业百强榜单中,Nexus 科技集团凭借在人工智能领域的深厚技术积累和创新产品矩阵,成功入选百强名单。这是对集团在 AI 领域持续投入和创新能力的权威认可。集团将继续加大研发投入,推动 AI 技术在更多行业的落地应用。", Category: "company", Author: "品牌部", Status: 1}, - {Title: "Nexus 云计算平台完成 SOC2 Type II 安全认证", Summary: "Nexus Cloud 平台通过国际权威安全审计标准 SOC2 Type II 认证,安全合规能力达到国际领先水平。", Content: "Nexus Cloud 云计算平台成功通过 SOC2 Type II 安全审计认证,标志着平台在数据安全、可用性、处理完整性和保密性方面达到国际领先标准。此次认证由国际知名审计机构完成,覆盖了平台全部核心服务区域。Nexus Cloud 将继续为全球客户提供安全可靠的云服务。", Category: "company", Author: "安全部", Status: 1}, - {Title: "集团与某知名车企达成战略合作,共建智能驾驶生态", Summary: "Nexus 科技集团与国内头部车企签署战略合作协议,共同推进自动驾驶技术的研发与产业化落地。", Content: "Nexus 科技集团与国内知名汽车制造商签署战略合作协议,双方将在自动驾驶感知算法、车路协同技术和智能座舱系统等方面展开深度合作。此次合作将充分发挥 Nexus 在 AI 和物联网领域的技术优势,以及车企在整车制造和供应链方面的积累,共同打造下一代智能驾驶解决方案。", Category: "industry", Author: "商务部", Status: 1}, - {Title: "Nexus 物联网平台连接设备突破 100 万台", Summary: "集团物联网平台累计接入设备数量突破 100 万台里程碑,覆盖智能制造、智慧城市、智慧农业等多个领域。", Content: "截至 2026 年第二季度,Nexus 物联网平台累计接入设备数量突破 100 万台,覆盖智能制造、智慧城市、智慧农业、智慧能源等多个垂直领域。平台日均处理数据量超过 50 亿条,为超过 800 家企业客户提供 IoT 数据服务。这一里程碑标志着 Nexus 在物联网领域的技术实力和市场规模达到新高度。", Category: "product", Author: "产品部", Status: 1}, - {Title: "集团发布 2026 年度 ESG 报告,践行可持续发展承诺", Summary: "Nexus 科技集团发布年度 ESG 报告,全面展示在环境、社会和治理方面的实践成果与未来承诺。", Content: "Nexus 科技集团正式发布 2026 年度 ESG(环境、社会、治理)报告。报告显示,集团在过去一年中通过绿色数据中心建设减少碳排放 35%,累计投入公益资金超过 2000 万元,并在数据隐私保护和公司治理方面持续优化。集团承诺到 2030 年实现运营碳中和,以技术创新推动可持续发展。", Category: "company", Author: "品牌部", Status: 1}, + {Title: "Nexus Technologies Launches Next-Gen AI Model NexusGPT 4.0", Summary: "The new-generation large language model achieves major breakthroughs in reasoning, multimodal understanding, and code generation. API access is now available.", Content: "NexusGPT 4.0 is a next-generation large language model independently developed by Nexus Technologies, delivering significant improvements in natural language understanding, code generation, mathematical reasoning, and multimodal processing. With 175 billion parameters and training on high-quality bilingual corpora in Chinese and English, NexusGPT 4.0 has been deployed in intelligent customer service, content creation, and code assistance, providing clients with a more intelligent experience.", Category: "product", Author: "Product Department", Status: 1}, + {Title: "Nexus Named Among Top 100 China AI Innovation Enterprises of 2026", Summary: "Nexus Technologies is recognized as one of the top 100 AI innovation enterprises in China for its sustained innovation and outstanding contributions in the AI field.", Content: "In the recently released Top 100 China AI Innovation Enterprises of 2026, Nexus Technologies was selected for its deep technical expertise and innovative product portfolio in artificial intelligence. This recognition affirms the group's continued investment and innovation capabilities in AI. Nexus will further increase R&D investment to drive AI technology adoption across more industries.", Category: "company", Author: "Brand Department", Status: 1}, + {Title: "Nexus Cloud Platform Achieves SOC2 Type II Security Certification", Summary: "Nexus Cloud passes the internationally recognized SOC2 Type II security audit standard, reaching world-class security compliance capabilities.", Content: "Nexus Cloud has successfully passed the SOC2 Type II security audit certification, confirming that the platform meets international leading standards in data security, availability, processing integrity, and confidentiality. The certification was completed by a globally recognized auditing firm and covers all core service regions of the platform. Nexus Cloud will continue to deliver secure and reliable cloud services to global clients.", Category: "company", Author: "Security Department", Status: 1}, + {Title: "Nexus Establishes Strategic Partnership with Leading Automaker to Build Smart Driving Ecosystem", Summary: "Nexus Technologies signs a strategic cooperation agreement with a top domestic automaker to jointly advance autonomous driving technology R&D and commercialization.", Content: "Nexus Technologies has signed a strategic cooperation agreement with a prominent domestic automobile manufacturer. The two parties will collaborate deeply on autonomous driving perception algorithms, vehicle-to-everything communication technology, and smart cockpit systems. This partnership leverages Nexus's strengths in AI and IoT alongside the automaker's expertise in vehicle manufacturing and supply chain management to co-develop the next generation of intelligent driving solutions.", Category: "industry", Author: "Business Development Department", Status: 1}, + {Title: "Nexus IoT Platform Surpasses 1 Million Connected Devices", Summary: "The group's IoT platform reaches the milestone of over 1 million connected devices, spanning smart manufacturing, smart cities, smart agriculture, and more.", Content: "As of Q2 2026, the Nexus IoT platform has surpassed 1 million connected devices, covering multiple verticals including smart manufacturing, smart cities, smart agriculture, and smart energy. The platform processes over 5 billion data points daily, providing IoT data services to more than 800 enterprise clients. This milestone marks a new height for Nexus in IoT technical capabilities and market scale.", Category: "product", Author: "Product Department", Status: 1}, + {Title: "Nexus Releases 2026 ESG Report, Upholding Sustainability Commitments", Summary: "Nexus Technologies publishes its annual ESG report, showcasing achievements and future commitments in environmental, social, and governance practices.", Content: "Nexus Technologies has officially released its 2026 ESG (Environmental, Social, Governance) report. The report highlights a 35% reduction in carbon emissions through green data center construction, over 20 million yuan invested in public welfare initiatives, and continued improvements in data privacy protection and corporate governance. The group has committed to achieving operational carbon neutrality by 2030, driving sustainable development through technological innovation.", Category: "company", Author: "Brand Department", Status: 1}, } for i := range news { if err := db.Create(&news[i]).Error; err != nil { @@ -68,14 +64,13 @@ func seedEnterpriseData(db *gorm.DB) error { } } - // 团队成员 team := []model.TeamMember{ - {Name: "张明远", Position: "创始人 & CEO", Bio: "清华大学计算机博士,曾任职于 Google 和微软研究院,拥有 20 年AI领域经验,入选国家级人才计划。", Sort: 1}, - {Name: "李婉清", Position: "联合创始人 & CTO", Bio: "斯坦福大学博士,云计算和分布式系统专家,曾主导多个亿级用户平台架构设计。", Sort: 2}, - {Name: "王志强", Position: "首席 AI 科学家", Bio: "MIT 人工智能博士,深度学习和自然语言处理领域知名学者,发表顶会论文 50 余篇。", Sort: 3}, - {Name: "陈思雨", Position: "COO 首席运营官", Bio: "哈佛 MBA,前麦肯锡高级合伙人,拥有 15 年企业运营和战略咨询经验。", Sort: 4}, - {Name: "刘建国", Position: "CFO 首席财务官", Bio: "注册会计师,曾任职于德勤和某上市公司,在企业财务管理和资本运作方面经验丰富。", Sort: 5}, - {Name: "赵雪梅", Position: "VP of Engineering", Bio: "加州大学伯克利分校硕士,前 Amazon 资深技术总监,领导过千人级工程团队。", Sort: 6}, + {Name: "Michael Zhang", Position: "Founder & CEO", Bio: "Ph.D. in Computer Science from Tsinghua University. Former researcher at Google and Microsoft Research. Over 20 years of experience in AI. Recipient of a national talent program award.", Sort: 1}, + {Name: "Emily Li", Position: "Co-Founder & CTO", Bio: "Ph.D. from Stanford University. Expert in cloud computing and distributed systems. Led architecture design for platforms serving hundreds of millions of users.", Sort: 2}, + {Name: "David Wang", Position: "Chief AI Scientist", Bio: "Ph.D. in Artificial Intelligence from MIT. Renowned scholar in deep learning and natural language processing. Published over 50 papers at top-tier conferences.", Sort: 3}, + {Name: "Sarah Chen", Position: "Chief Operating Officer", Bio: "Harvard MBA. Former Senior Partner at McKinsey & Company. 15 years of experience in enterprise operations and strategic consulting.", Sort: 4}, + {Name: "Robert Liu", Position: "Chief Financial Officer", Bio: "Certified Public Accountant. Former executive at Deloitte and a publicly listed company. Extensive experience in corporate finance management and capital operations.", Sort: 5}, + {Name: "Jessica Zhao", Position: "VP of Engineering", Bio: "Master's degree from UC Berkeley. Former Senior Engineering Director at Amazon. Led engineering teams of over 1,000 engineers.", Sort: 6}, } for i := range team { if err := db.Create(&team[i]).Error; err != nil { diff --git a/internal/database/seed_food.go b/internal/database/seed_food.go index 0b84f78..4613a02 100644 --- a/internal/database/seed_food.go +++ b/internal/database/seed_food.go @@ -19,12 +19,12 @@ func seedFoodData(db *gorm.DB) error { // 餐厅分类 categories := []model.RestaurantCategory{ - {Name: "中式正餐", Icon: "chinese", Sort: 1}, - {Name: "日韩料理", Icon: "japanese", Sort: 2}, - {Name: "西式快餐", Icon: "western", Sort: 3}, - {Name: "火锅烧烤", Icon: "hotpot", Sort: 4}, - {Name: "奶茶甜品", Icon: "dessert", Sort: 5}, - {Name: "健康轻食", Icon: "healthy", Sort: 6}, + {Name: "Chinese Cuisine", Icon: "chinese", Sort: 1}, + {Name: "Japanese & Korean", Icon: "japanese", Sort: 2}, + {Name: "Western Fast Food", Icon: "western", Sort: 3}, + {Name: "Hot Pot & BBQ", Icon: "hotpot", Sort: 4}, + {Name: "Bubble Tea & Desserts", Icon: "dessert", Sort: 5}, + {Name: "Healthy Light Bites", Icon: "healthy", Sort: 6}, } for i := range categories { if err := db.Create(&categories[i]).Error; err != nil { @@ -34,23 +34,23 @@ func seedFoodData(db *gorm.DB) error { // 餐厅数据 restaurants := []model.Restaurant{ - {Name: "蜀香苑 · 经典川菜", Description: "正宗四川风味,麻辣鲜香。主厨来自成都,精选地道花椒和辣椒,每一道菜都是对味蕾的极致挑战。招牌水煮鱼、麻婆豆腐深受食客喜爱。", CategoryID: 1, CategoryName: "中式正餐", Rating: 4.8, Sales: 5600, DeliveryFee: 3, MinOrder: 20, DeliveryTime: 35, Distance: "1.2km", Tags: `["麻辣","川菜","下饭"]`, Notice: "本店支持无接触配送,餐具已严格消毒。", Status: 1, Sort: 1}, - {Name: "老北京烤鸭店", Description: "传承百年挂炉烤鸭工艺,果木炭火慢烤,皮脆肉嫩。搭配薄饼、葱丝、甜面酱,一口难忘。另有多道京味小菜。", CategoryID: 1, CategoryName: "中式正餐", Rating: 4.9, Sales: 8900, DeliveryFee: 5, MinOrder: 30, DeliveryTime: 40, Distance: "2.5km", Tags: `["招牌","京味","聚餐"]`, Notice: "烤鸭需现烤,配送时间略长,敬请谅解。", Status: 1, Sort: 2}, - {Name: "粤式茶餐厅 · 港味", Description: "地道港式茶餐厅,丝袜奶茶、菠萝油、干炒牛河样样拿手。全天供应早茶点心,虾饺烧卖现点现蒸。", CategoryID: 1, CategoryName: "中式正餐", Rating: 4.6, Sales: 4200, DeliveryFee: 2, MinOrder: 15, DeliveryTime: 30, Distance: "0.8km", Tags: `["粤菜","茶餐厅","点心"]`, Notice: "工作日午市套餐 8 折优惠。", Status: 1, Sort: 3}, + {Name: "Shuxiangyuan · Classic Sichuan", Description: "Authentic Sichuan flavors with bold, numbing, and spicy taste. Our chef hails from Chengdu, sourcing authentic Sichuan peppercorns and chilies to deliver the ultimate flavor experience. Signature dishes like Boiled Fish and Mapo Tofu are fan favorites.", CategoryID: 1, CategoryName: "Chinese Cuisine", Rating: 4.8, Sales: 5600, DeliveryFee: 3, MinOrder: 20, DeliveryTime: 35, Distance: "1.2km", Tags: `["Spicy","Sichuan","Rice Pairing"]`, Notice: "Contactless delivery available. Utensils are strictly sterilized.", Status: 1, Sort: 1}, + {Name: "Old Beijing Roast Duck", Description: "A century-old hung-oven roasting tradition, slow-roasted over fruitwood charcoal for crispy skin and tender meat. Served with thin pancakes, scallion strips, and sweet bean sauce — one bite and you'll never forget. A variety of classic Beijing side dishes also available.", CategoryID: 1, CategoryName: "Chinese Cuisine", Rating: 4.9, Sales: 8900, DeliveryFee: 5, MinOrder: 30, DeliveryTime: 40, Distance: "2.5km", Tags: `["Signature","Beijing Style","Gathering"]`, Notice: "Roast duck is prepared fresh to order, so delivery may take a bit longer. Thank you for your patience.", Status: 1, Sort: 2}, + {Name: "Cantonese Cha Chaan Teng · Hong Kong Style", Description: "Authentic Hong Kong-style tea restaurant. Silky milk tea, pineapple bun with butter, and wok-fried beef chow fun are all specialties. Dim sum served all day — shrimp dumplings and siu mai steamed to order.", CategoryID: 1, CategoryName: "Chinese Cuisine", Rating: 4.6, Sales: 4200, DeliveryFee: 2, MinOrder: 15, DeliveryTime: 30, Distance: "0.8km", Tags: `["Cantonese","Tea Restaurant","Dim Sum"]`, Notice: "Weekday lunch set meals at 20% off.", Status: 1, Sort: 3}, - {Name: "樱花日料 · 寿司刺身", Description: "空运食材,每日新鲜到店。三文鱼刺身厚切,金枪鱼手握饱满。寿司师傅 15 年经验,每一贯都是匠心之作。", CategoryID: 2, CategoryName: "日韩料理", Rating: 4.7, Sales: 3200, DeliveryFee: 5, MinOrder: 25, DeliveryTime: 35, Distance: "1.8km", Tags: `["日料","刺身","精致"]`, Notice: "刺身类建议到店后 30 分钟内食用。", Status: 1, Sort: 1}, - {Name: "韩宫 · 韩式烤肉拌饭", Description: "正宗韩式烤肉,五花肉、牛排骨肉现烤现切。石锅拌饭滋滋作响,搭配泡菜和小菜,满满的韩式风味。", CategoryID: 2, CategoryName: "日韩料理", Rating: 4.5, Sales: 3800, DeliveryFee: 3, MinOrder: 20, DeliveryTime: 30, Distance: "1.5km", Tags: `["韩餐","烤肉","拌饭"]`, Notice: "拌饭可备注加辣/不加辣。", Status: 1, Sort: 2}, + {Name: "Sakura Japanese · Sushi & Sashimi", Description: "Air-flown ingredients delivered fresh daily. Thick-cut salmon sashimi, plump tuna nigiri — each piece crafted with 15 years of sushi-making expertise.", CategoryID: 2, CategoryName: "Japanese & Korean", Rating: 4.7, Sales: 3200, DeliveryFee: 5, MinOrder: 25, DeliveryTime: 35, Distance: "1.8km", Tags: `["Japanese","Sashimi","Refined"]`, Notice: "Sashimi is best enjoyed within 30 minutes of arrival.", Status: 1, Sort: 1}, + {Name: "Korean Palace · BBQ & Bibimbap", Description: "Authentic Korean BBQ with freshly grilled and sliced pork belly and beef short ribs. Sizzling stone pot bibimbap served with kimchi and side dishes for a full Korean experience.", CategoryID: 2, CategoryName: "Japanese & Korean", Rating: 4.5, Sales: 3800, DeliveryFee: 3, MinOrder: 20, DeliveryTime: 30, Distance: "1.5km", Tags: `["Korean","BBQ","Bibimbap"]`, Notice: "Bibimbap can be customized with extra spice or no spice.", Status: 1, Sort: 2}, - {Name: "Burger House · 美式汉堡", Description: "100% 安格斯牛肉饼,现煎多汁。搭配切达奶酪、培根、秘制酱汁,咬一口满嘴留香。薯条粗切,外酥里软。", CategoryID: 3, CategoryName: "西式快餐", Rating: 4.6, Sales: 6500, DeliveryFee: 4, MinOrder: 18, DeliveryTime: 25, Distance: "1.0km", Tags: `["汉堡","快餐","美式"]`, Notice: "第二份半价活动进行中。", Status: 1, Sort: 1}, - {Name: "Pizza Hot · 手工披萨", Description: "意式手工饼底,薄脆有嚼劲。多种口味可选:玛格丽特、夏威夷、肉食爱好者。芝士拉丝超长,满足感爆棚。", CategoryID: 3, CategoryName: "西式快餐", Rating: 4.5, Sales: 2800, DeliveryFee: 5, MinOrder: 35, DeliveryTime: 35, Distance: "2.0km", Tags: `["披萨","意式","芝士"]`, Notice: "9 寸披萨买一送一(工作日)。", Status: 1, Sort: 2}, + {Name: "Burger House · American Burgers", Description: "100% Angus beef patties, freshly grilled and juicy. Topped with cheddar cheese, bacon, and house-made secret sauce. Thick-cut fries on the side — crispy outside, fluffy inside.", CategoryID: 3, CategoryName: "Western Fast Food", Rating: 4.6, Sales: 6500, DeliveryFee: 4, MinOrder: 18, DeliveryTime: 25, Distance: "1.0km", Tags: `["Burgers","Fast Food","American"]`, Notice: "Buy one get one half off promotion now on.", Status: 1, Sort: 1}, + {Name: "Pizza Hot · Handmade Pizza", Description: "Italian-style handmade crust — thin, crispy, and chewy. Choose from Margherita, Hawaiian, or Meat Lover's. Extra-long cheese pull for maximum satisfaction.", CategoryID: 3, CategoryName: "Western Fast Food", Rating: 4.5, Sales: 2800, DeliveryFee: 5, MinOrder: 35, DeliveryTime: 35, Distance: "2.0km", Tags: `["Pizza","Italian","Cheese"]`, Notice: "Buy one get one free on 9-inch pizzas (weekdays only).", Status: 1, Sort: 2}, - {Name: "重庆老火锅", Description: "九宫格老火锅,牛油锅底醇厚浓郁。毛肚、鸭肠、黄喉新鲜脆嫩。蘸料自助调配,还原山城味道。", CategoryID: 4, CategoryName: "火锅烧烤", Rating: 4.7, Sales: 7200, DeliveryFee: 6, MinOrder: 50, DeliveryTime: 45, Distance: "3.0km", Tags: `["火锅","麻辣","聚餐"]`, Notice: "锅底和食材分开配送,到家即可开涮。", Status: 1, Sort: 1}, - {Name: "东北串王 · 烧烤", Description: "炭火现烤,大腰子、羊肉串、烤翅一应俱全。撒料讲究,孜然辣椒面均匀裹满。深夜食堂首选。", CategoryID: 4, CategoryName: "火锅烧烤", Rating: 4.6, Sales: 9500, DeliveryFee: 3, MinOrder: 25, DeliveryTime: 30, Distance: "1.3km", Tags: `["烧烤","夜宵","撸串"]`, Notice: "每晚 22:00 后烤串第二份半价。", Status: 1, Sort: 2}, + {Name: "Chongqing Old Hot Pot", Description: "Nine-grid hot pot with a rich and mellow beef tallow broth. Fresh tripe, duck intestines, and beef aorta for that authentic crunchy texture. DIY dipping sauce station to recreate the flavors of the mountain city.", CategoryID: 4, CategoryName: "Hot Pot & BBQ", Rating: 4.7, Sales: 7200, DeliveryFee: 6, MinOrder: 50, DeliveryTime: 45, Distance: "3.0km", Tags: `["Hot Pot","Spicy","Gathering"]`, Notice: "Broth and ingredients are delivered separately so you can enjoy hot pot fresh at home.", Status: 1, Sort: 1}, + {Name: "Northeast Skewer King · BBQ", Description: "Charcoal-grilled to order — lamb kidneys, lamb skewers, and chicken wings all available. Generously seasoned with cumin and chili powder. The ultimate late-night snack.", CategoryID: 4, CategoryName: "Hot Pot & BBQ", Rating: 4.6, Sales: 9500, DeliveryFee: 3, MinOrder: 25, DeliveryTime: 30, Distance: "1.3km", Tags: `["BBQ","Late Night","Skewers"]`, Notice: "Buy one get one half off on skewers after 10 PM every night.", Status: 1, Sort: 2}, - {Name: "茶颜悦色 · 手作奶茶", Description: "鲜奶现煮茶底,拒绝奶精。招牌幽兰拿铁、声声乌龙,茶香奶滑。每日限量手作,品质如一。", CategoryID: 5, CategoryName: "奶茶甜品", Rating: 4.8, Sales: 12000, DeliveryFee: 2, MinOrder: 12, DeliveryTime: 20, Distance: "0.5km", Tags: `["奶茶","鲜奶","人气"]`, Notice: "夏季限定冰饮已上线。", Status: 1, Sort: 1}, - {Name: "甜蜜时光 · 法式甜品", Description: "法式甜品师主理,提拉米苏、熔岩蛋糕、马卡龙精致呈现。每一口都是甜蜜的幸福感。", CategoryID: 5, CategoryName: "奶茶甜品", Rating: 4.7, Sales: 1800, DeliveryFee: 4, MinOrder: 20, DeliveryTime: 30, Distance: "2.2km", Tags: `["甜品","法式","精致"]`, Notice: "生日蛋糕需提前 4 小时预订。", Status: 1, Sort: 2}, + {Name: "Chayan Yuese · Handmade Milk Tea", Description: "Fresh milk brewed with tea leaves — no non-dairy creamer. Signature Youlan Latte and Shengsheng Oolong with smooth tea and creamy milk. Limited handmade batches daily for consistent quality.", CategoryID: 5, CategoryName: "Bubble Tea & Desserts", Rating: 4.8, Sales: 12000, DeliveryFee: 2, MinOrder: 12, DeliveryTime: 20, Distance: "0.5km", Tags: `["Milk Tea","Fresh Milk","Popular"]`, Notice: "Summer limited-edition iced drinks now available.", Status: 1, Sort: 1}, + {Name: "Sweet Times · French Desserts", Description: "Curated by a French pastry chef — tiramisu, molten lava cake, and macarons beautifully presented. Every bite is a moment of sweet bliss.", CategoryID: 5, CategoryName: "Bubble Tea & Desserts", Rating: 4.7, Sales: 1800, DeliveryFee: 4, MinOrder: 20, DeliveryTime: 30, Distance: "2.2km", Tags: `["Desserts","French","Refined"]`, Notice: "Birthday cakes must be ordered at least 4 hours in advance.", Status: 1, Sort: 2}, - {Name: "绿野轻食 · 沙拉碗", Description: "有机蔬菜搭配优质蛋白,藜麦、鸡胸肉、牛油果科学配比。低卡高蛋白,健身人群首选。", CategoryID: 6, CategoryName: "健康轻食", Rating: 4.6, Sales: 3400, DeliveryFee: 3, MinOrder: 18, DeliveryTime: 25, Distance: "1.1km", Tags: `["轻食","健康","低卡"]`, Notice: "沙拉酱可备注选低脂油醋汁。", Status: 1, Sort: 1}, + {Name: "Green Fields Light Bites · Salad Bowls", Description: "Organic greens paired with premium proteins — quinoa, chicken breast, and avocado in a scientifically balanced ratio. Low-calorie, high-protein, ideal for fitness enthusiasts.", CategoryID: 6, CategoryName: "Healthy Light Bites", Rating: 4.6, Sales: 3400, DeliveryFee: 3, MinOrder: 18, DeliveryTime: 25, Distance: "1.1km", Tags: `["Light Bites","Healthy","Low Calorie"]`, Notice: "Salad dressing can be customized — try our low-fat vinaigrette.", Status: 1, Sort: 1}, } for i := range restaurants { if err := db.Create(&restaurants[i]).Error; err != nil { @@ -66,147 +66,147 @@ func seedFoodData(db *gorm.DB) error { restaurantMenus := map[uint][]catSeed{ // 蜀香苑 川菜 1: { - {"招牌推荐", []model.MenuItem{ - {Name: "水煮鱼片", Description: "新鲜草鱼片,麻辣红油汤底,花椒香气扑鼻。鱼片嫩滑入味,麻辣鲜香。", Price: 48, OriginalPrice: 58, Rating: 4.9, Sales: 3200, Tags: `["招牌","麻辣"]`, Sort: 1, Status: 1, RestaurantID: 1}, - {Name: "麻婆豆腐", Description: "嫩豆腐配牛肉末,豆瓣酱炒制。麻辣烫香,酥嫩可口,下饭神器。", Price: 22, Rating: 4.7, Sales: 2800, Tags: `["经典","下饭"]`, Sort: 2, Status: 1, RestaurantID: 1}, - {Name: "回锅肉", Description: "五花肉配蒜苗青椒,郫县豆瓣炒制。肥而不腻,香气四溢。", Price: 32, Rating: 4.6, Sales: 2100, Tags: `["经典"]`, Sort: 3, Status: 1, RestaurantID: 1}, + {"Signature Picks", []model.MenuItem{ + {Name: "Boiled Fish Fillets", Description: "Fresh grass carp fillets in a spicy red oil broth infused with fragrant Sichuan peppercorns. Tender, flavorful, and numbingly spicy.", Price: 48, OriginalPrice: 58, Rating: 4.9, Sales: 3200, Tags: `["Signature","Spicy"]`, Sort: 1, Status: 1, RestaurantID: 1}, + {Name: "Mapo Tofu", Description: "Silky tofu with minced beef in a doubanjiang-based sauce. Numbing, spicy, aromatic, and irresistible with rice.", Price: 22, Rating: 4.7, Sales: 2800, Tags: `["Classic","Rice Pairing"]`, Sort: 2, Status: 1, RestaurantID: 1}, + {Name: "Twice-Cooked Pork", Description: "Pork belly with garlic sprouts and green peppers, stir-fried in Pixian doubanjiang. Rich flavor, never greasy.", Price: 32, Rating: 4.6, Sales: 2100, Tags: `["Classic"]`, Sort: 3, Status: 1, RestaurantID: 1}, }}, - {"热菜", []model.MenuItem{ - {Name: "宫保鸡丁", Description: "鸡胸肉丁配花生米,酸甜微辣。经典川菜,老少皆宜。", Price: 28, Rating: 4.5, Sales: 1900, Tags: `["酸甜"]`, Sort: 1, Status: 1, RestaurantID: 1}, - {Name: "鱼香肉丝", Description: "猪里脊配木耳笋丝,鱼香味型。咸甜酸辣兼备。", Price: 26, Rating: 4.4, Sales: 1600, Tags: `["经典"]`, Sort: 2, Status: 1, RestaurantID: 1}, - {Name: "干煸四季豆", Description: "四季豆配肉末,干煸至表皮起皱。香脆入味。", Price: 20, Rating: 4.5, Sales: 1200, Tags: `["素菜"]`, Sort: 3, Status: 1, RestaurantID: 1}, + {"Hot Dishes", []model.MenuItem{ + {Name: "Kung Pao Chicken", Description: "Diced chicken breast with peanuts in a sweet and slightly spicy sauce. A timeless Sichuan classic loved by all ages.", Price: 28, Rating: 4.5, Sales: 1900, Tags: `["Sweet & Sour"]`, Sort: 1, Status: 1, RestaurantID: 1}, + {Name: "Yu Xiang Shredded Pork", Description: "Shredded pork tenderloin with wood ear mushrooms and bamboo shoots in a fish-fragrant sauce. A perfect balance of salty, sweet, sour, and spicy.", Price: 26, Rating: 4.4, Sales: 1600, Tags: `["Classic"]`, Sort: 2, Status: 1, RestaurantID: 1}, + {Name: "Dry-Fried Green Beans", Description: "Green beans with minced pork, dry-fried until the skin wrinkles. Crispy and full of flavor.", Price: 20, Rating: 4.5, Sales: 1200, Tags: `["Vegetable"]`, Sort: 3, Status: 1, RestaurantID: 1}, }}, - {"主食汤品", []model.MenuItem{ - {Name: "担担面", Description: "细面配肉末浇头,红油花生碎。麻辣鲜香。", Price: 18, Rating: 4.6, Sales: 1500, Tags: `["主食"]`, Sort: 1, Status: 1, RestaurantID: 1}, - {Name: "酸辣汤", Description: "豆腐丝木耳火腿丝,酸辣开胃。", Price: 12, Rating: 4.3, Sales: 800, Tags: `["汤品"]`, Sort: 2, Status: 1, RestaurantID: 1}, + {"Staples & Soups", []model.MenuItem{ + {Name: "Dan Dan Noodles", Description: "Thin noodles topped with minced meat and chili oil with crushed peanuts. Numbing and fragrant.", Price: 18, Rating: 4.6, Sales: 1500, Tags: `["Staple"]`, Sort: 1, Status: 1, RestaurantID: 1}, + {Name: "Hot & Sour Soup", Description: "Shredded tofu, wood ear mushrooms, and ham in a tangy, spicy broth. Appetizing and warming.", Price: 12, Rating: 4.3, Sales: 800, Tags: `["Soup"]`, Sort: 2, Status: 1, RestaurantID: 1}, }}, }, // 老北京烤鸭 2: { - {"招牌烤鸭", []model.MenuItem{ - {Name: "经典烤鸭(整只)", Description: "果木炭火烤制,皮脆肉嫩。配薄饼、葱丝、甜面酱,4-6人份。", Price: 168, OriginalPrice: 198, Rating: 4.9, Sales: 1800, Tags: `["招牌","整只"]`, Sort: 1, Status: 1, RestaurantID: 2}, - {Name: "烤鸭半只", Description: "半只烤鸭,配饼和酱料。2-3人份。", Price: 88, Rating: 4.8, Sales: 1200, Tags: `["招牌"]`, Sort: 2, Status: 1, RestaurantID: 2}, + {"Signature Roast Duck", []model.MenuItem{ + {Name: "Classic Roast Duck (Whole)", Description: "Slow-roasted over fruitwood charcoal for crispy skin and tender meat. Served with thin pancakes, scallion strips, and sweet bean sauce. Serves 4-6.", Price: 168, OriginalPrice: 198, Rating: 4.9, Sales: 1800, Tags: `["Signature","Whole"]`, Sort: 1, Status: 1, RestaurantID: 2}, + {Name: "Roast Duck (Half)", Description: "Half a roast duck with pancakes and sauce. Serves 2-3.", Price: 88, Rating: 4.8, Sales: 1200, Tags: `["Signature"]`, Sort: 2, Status: 1, RestaurantID: 2}, }}, - {"京味小菜", []model.MenuItem{ - {Name: "芥末墩儿", Description: "大白菜配芥末,爽口开胃。老北京传统凉菜。", Price: 18, Rating: 4.3, Sales: 500, Tags: `["凉菜"]`, Sort: 1, Status: 1, RestaurantID: 2}, - {Name: "炸酱面", Description: "手擀面配肉末炸酱,黄瓜丝豆芽。地道京味。", Price: 22, Rating: 4.6, Sales: 900, Tags: `["主食"]`, Sort: 2, Status: 1, RestaurantID: 2}, + {"Beijing Side Dishes", []model.MenuItem{ + {Name: "Mustard Napa Cabbage", Description: "Napa cabbage with mustard, refreshing and appetizing. A traditional Beijing cold dish.", Price: 18, Rating: 4.3, Sales: 500, Tags: `["Cold Dish"]`, Sort: 1, Status: 1, RestaurantID: 2}, + {Name: "Zhajiang Noodles", Description: "Hand-pulled noodles with minced meat sauce, shredded cucumber, and bean sprouts. Authentic Beijing flavor.", Price: 22, Rating: 4.6, Sales: 900, Tags: `["Staple"]`, Sort: 2, Status: 1, RestaurantID: 2}, }}, }, // 粤式茶餐厅 3: { - {"港式饮品", []model.MenuItem{ - {Name: "丝袜奶茶", Description: "锡兰红茶配淡奶,丝滑浓郁。港式经典。", Price: 15, Rating: 4.7, Sales: 2800, Tags: `["招牌","饮品"]`, Sort: 1, Status: 1, RestaurantID: 3}, - {Name: "冻柠茶", Description: "红茶配鲜柠檬,冰爽解腻。", Price: 13, Rating: 4.5, Sales: 1900, Tags: `["饮品"]`, Sort: 2, Status: 1, RestaurantID: 3}, + {"Hong Kong-Style Drinks", []model.MenuItem{ + {Name: "Silk-Stocking Milk Tea", Description: "Ceylon black tea blended with evaporated milk for a silky, rich flavor. A Hong Kong classic.", Price: 15, Rating: 4.7, Sales: 2800, Tags: `["Signature","Drink"]`, Sort: 1, Status: 1, RestaurantID: 3}, + {Name: "Iced Lemon Tea", Description: "Black tea with fresh lemon, chilled and refreshing.", Price: 13, Rating: 4.5, Sales: 1900, Tags: `["Drink"]`, Sort: 2, Status: 1, RestaurantID: 3}, }}, - {"茶点主食", []model.MenuItem{ - {Name: "鲜虾饺", Description: "水晶皮包裹整只鲜虾,Q弹爽口。一笼4个。", Price: 25, Rating: 4.8, Sales: 1600, Tags: `["点心","招牌"]`, Sort: 1, Status: 1, RestaurantID: 3}, - {Name: "干炒牛河", Description: "河粉配牛肉芽菜,大火猛炒。镬气十足。", Price: 28, Rating: 4.6, Sales: 1400, Tags: `["主食"]`, Sort: 2, Status: 1, RestaurantID: 3}, - {Name: "菠萝油", Description: "新鲜菠萝包夹冰镇黄油,外酥内软。", Price: 12, Rating: 4.5, Sales: 1100, Tags: `["烘焙"]`, Sort: 3, Status: 1, RestaurantID: 3}, + {"Dim Sum & Staples", []model.MenuItem{ + {Name: "Crystal Shrimp Dumplings", Description: "Translucent wrappers encasing whole fresh shrimp, bouncy and delicious. 4 pieces per basket.", Price: 25, Rating: 4.8, Sales: 1600, Tags: `["Dim Sum","Signature"]`, Sort: 1, Status: 1, RestaurantID: 3}, + {Name: "Wok-Fried Beef Chow Fun", Description: "Rice noodles with beef and bean sprouts, wok-tossed over high heat. Full of wok hei.", Price: 28, Rating: 4.6, Sales: 1400, Tags: `["Staple"]`, Sort: 2, Status: 1, RestaurantID: 3}, + {Name: "Pineapple Bun with Butter", Description: "Freshly baked pineapple bun with a slab of chilled butter. Crispy outside, soft inside.", Price: 12, Rating: 4.5, Sales: 1100, Tags: `["Baked"]`, Sort: 3, Status: 1, RestaurantID: 3}, }}, }, // 樱花日料 4: { - {"刺身", []model.MenuItem{ - {Name: "三文鱼刺身(6片)", Description: "挪威三文鱼,厚切。肉质橙红,口感绵密。", Price: 58, Rating: 4.8, Sales: 900, Tags: `["招牌","刺身"]`, Sort: 1, Status: 1, RestaurantID: 4}, - {Name: "金枪鱼刺身(6片)", Description: "大腹金枪鱼,油脂丰富。入口即化。", Price: 68, Rating: 4.7, Sales: 600, Tags: `["刺身"]`, Sort: 2, Status: 1, RestaurantID: 4}, + {"Sashimi", []model.MenuItem{ + {Name: "Salmon Sashimi (6 slices)", Description: "Norwegian salmon, thick-cut. Vibrant orange-red flesh with a buttery, melt-in-your-mouth texture.", Price: 58, Rating: 4.8, Sales: 900, Tags: `["Signature","Sashimi"]`, Sort: 1, Status: 1, RestaurantID: 4}, + {Name: "Tuna Sashimi (6 slices)", Description: "Bluefin tuna belly, rich in marbling. Dissolves on the tongue.", Price: 68, Rating: 4.7, Sales: 600, Tags: `["Sashimi"]`, Sort: 2, Status: 1, RestaurantID: 4}, }}, - {"寿司手卷", []model.MenuItem{ - {Name: "三文鱼手握(2贯)", Description: "醋饭配厚切三文鱼,简洁纯粹。", Price: 22, Rating: 4.6, Sales: 800, Tags: `["寿司"]`, Sort: 1, Status: 1, RestaurantID: 4}, - {Name: "鳗鱼寿司(2贯)", Description: "蒲烧鳗鱼配醋饭,酱汁浓郁。", Price: 28, Rating: 4.7, Sales: 700, Tags: `["寿司"]`, Sort: 2, Status: 1, RestaurantID: 4}, - {Name: "加州卷(8件)", Description: "蟹肉牛油果黄瓜卷,外裹飞鱼籽。", Price: 32, Rating: 4.5, Sales: 1000, Tags: `["卷物"]`, Sort: 3, Status: 1, RestaurantID: 4}, + {"Sushi & Hand Rolls", []model.MenuItem{ + {Name: "Salmon Nigiri (2 pieces)", Description: "Vinegared rice with thick-cut salmon — simple and pure.", Price: 22, Rating: 4.6, Sales: 800, Tags: `["Sushi"]`, Sort: 1, Status: 1, RestaurantID: 4}, + {Name: "Eel Sushi (2 pieces)", Description: "Kabayaki-glazed eel over vinegared rice, rich in savory sauce.", Price: 28, Rating: 4.7, Sales: 700, Tags: `["Sushi"]`, Sort: 2, Status: 1, RestaurantID: 4}, + {Name: "California Roll (8 pieces)", Description: "Crab, avocado, and cucumber rolled and coated with flying fish roe.", Price: 32, Rating: 4.5, Sales: 1000, Tags: `["Roll"]`, Sort: 3, Status: 1, RestaurantID: 4}, }}, }, // 韩宫 5: { - {"烤肉", []model.MenuItem{ - {Name: "五花肉套餐", Description: "厚切五花肉,配生菜蒜瓣包饭。2-3人份。", Price: 68, Rating: 4.6, Sales: 1200, Tags: `["招牌","烤肉"]`, Sort: 1, Status: 1, RestaurantID: 5}, - {Name: "牛排骨肉", Description: "腌制牛小排,肉嫩多汁。配小菜。", Price: 88, Rating: 4.7, Sales: 800, Tags: `["烤肉"]`, Sort: 2, Status: 1, RestaurantID: 5}, + {"BBQ", []model.MenuItem{ + {Name: "Pork Belly Set", Description: "Thick-cut pork belly served with lettuce, garlic, and rice. Serves 2-3.", Price: 68, Rating: 4.6, Sales: 1200, Tags: `["Signature","BBQ"]`, Sort: 1, Status: 1, RestaurantID: 5}, + {Name: "Beef Short Ribs", Description: "Marinated beef short ribs, tender and juicy. Served with side dishes.", Price: 88, Rating: 4.7, Sales: 800, Tags: `["BBQ"]`, Sort: 2, Status: 1, RestaurantID: 5}, }}, - {"主食小菜", []model.MenuItem{ - {Name: "石锅拌饭", Description: "米饭配蔬菜牛肉鸡蛋,石锅滋滋作响。", Price: 28, Rating: 4.5, Sales: 1500, Tags: `["主食","招牌"]`, Sort: 1, Status: 1, RestaurantID: 5}, - {Name: "泡菜汤", Description: "酸辣泡菜锅,配豆腐猪肉。暖胃开胃。", Price: 25, Rating: 4.4, Sales: 700, Tags: `["汤品"]`, Sort: 2, Status: 1, RestaurantID: 5}, + {"Staples & Side Dishes", []model.MenuItem{ + {Name: "Stone Pot Bibimbap", Description: "Rice topped with vegetables, beef, and egg in a sizzling stone pot.", Price: 28, Rating: 4.5, Sales: 1500, Tags: `["Staple","Signature"]`, Sort: 1, Status: 1, RestaurantID: 5}, + {Name: "Kimchi Stew", Description: "Tangy and spicy kimchi stew with tofu and pork. Warming and appetizing.", Price: 25, Rating: 4.4, Sales: 700, Tags: `["Soup"]`, Sort: 2, Status: 1, RestaurantID: 5}, }}, }, // Burger House 6: { - {"汉堡", []model.MenuItem{ - {Name: "经典双层芝士堡", Description: "双层安格斯牛肉饼,双倍切达奶酪。满足感爆棚。", Price: 38, Rating: 4.7, Sales: 2800, Tags: `["招牌","双层"]`, Sort: 1, Status: 1, RestaurantID: 6}, - {Name: "培根牛肉堡", Description: "牛肉饼配脆培根生菜番茄,秘制酱汁。", Price: 32, Rating: 4.6, Sales: 2100, Tags: `["热销"]`, Sort: 2, Status: 1, RestaurantID: 6}, - {Name: "炸鸡堡", Description: "酥炸鸡排配蛋黄酱生菜,外酥里嫩。", Price: 26, Rating: 4.5, Sales: 1800, Tags: `["鸡肉"]`, Sort: 3, Status: 1, RestaurantID: 6}, + {"Burgers", []model.MenuItem{ + {Name: "Classic Double Cheeseburger", Description: "Double Angus beef patties with double cheddar cheese. Maximum satisfaction.", Price: 38, Rating: 4.7, Sales: 2800, Tags: `["Signature","Double"]`, Sort: 1, Status: 1, RestaurantID: 6}, + {Name: "Bacon Beef Burger", Description: "Beef patty with crispy bacon, lettuce, tomato, and secret sauce.", Price: 32, Rating: 4.6, Sales: 2100, Tags: `["Best Seller"]`, Sort: 2, Status: 1, RestaurantID: 6}, + {Name: "Crispy Chicken Burger", Description: "Crispy fried chicken patty with mayo and lettuce. Crunchy outside, juicy inside.", Price: 26, Rating: 4.5, Sales: 1800, Tags: `["Chicken"]`, Sort: 3, Status: 1, RestaurantID: 6}, }}, - {"小食饮品", []model.MenuItem{ - {Name: "粗切薯条", Description: "大块薯条,外酥里软。配番茄酱。", Price: 12, Rating: 4.5, Sales: 2200, Tags: `["小食"]`, Sort: 1, Status: 1, RestaurantID: 6}, - {Name: "可乐", Description: "冰镇可口可乐 330ml。", Price: 6, Rating: 4.2, Sales: 1500, Tags: `["饮品"]`, Sort: 2, Status: 1, RestaurantID: 6}, + {"Sides & Drinks", []model.MenuItem{ + {Name: "Thick-Cut Fries", Description: "Chunky fries, crispy on the outside, fluffy inside. Served with ketchup.", Price: 12, Rating: 4.5, Sales: 2200, Tags: `["Side"]`, Sort: 1, Status: 1, RestaurantID: 6}, + {Name: "Cola", Description: "Ice-cold Coca-Cola 330ml.", Price: 6, Rating: 4.2, Sales: 1500, Tags: `["Drink"]`, Sort: 2, Status: 1, RestaurantID: 6}, }}, }, // Pizza Hot 7: { - {"披萨", []model.MenuItem{ - {Name: "玛格丽特披萨(9寸)", Description: "番茄底酱配新鲜马苏里拉芝士和罗勒。经典意式。", Price: 48, Rating: 4.6, Sales: 800, Tags: `["经典"]`, Sort: 1, Status: 1, RestaurantID: 7}, - {Name: "肉食爱好者(9寸)", Description: "培根火腿牛肉粒,三重肉满足。芝士拉丝。", Price: 58, Rating: 4.7, Sales: 700, Tags: `["招牌","肉食"]`, Sort: 2, Status: 1, RestaurantID: 7}, - {Name: "夏威夷风情(9寸)", Description: "火腿配菠萝,甜咸搭配。", Price: 45, Rating: 4.3, Sales: 500, Tags: `["甜咸"]`, Sort: 3, Status: 1, RestaurantID: 7}, + {"Pizza", []model.MenuItem{ + {Name: "Margherita Pizza (9 inch)", Description: "Tomato base sauce with fresh mozzarella and basil. A timeless Italian classic.", Price: 48, Rating: 4.6, Sales: 800, Tags: `["Classic"]`, Sort: 1, Status: 1, RestaurantID: 7}, + {Name: "Meat Lover's (9 inch)", Description: "Bacon, ham, and beef crumbles — triple meat indulgence with stretchy cheese.", Price: 58, Rating: 4.7, Sales: 700, Tags: `["Signature","Meat Lovers"]`, Sort: 2, Status: 1, RestaurantID: 7}, + {Name: "Hawaiian (9 inch)", Description: "Ham paired with pineapple for a sweet and savory combination.", Price: 45, Rating: 4.3, Sales: 500, Tags: `["Sweet & Savory"]`, Sort: 3, Status: 1, RestaurantID: 7}, }}, - {"小食", []model.MenuItem{ - {Name: "芝士条(5根)", Description: "马苏里拉芝士条,炸至金黄。配番茄酱。", Price: 18, Rating: 4.5, Sales: 600, Tags: `["小食"]`, Sort: 1, Status: 1, RestaurantID: 7}, - {Name: "鸡翅(6只)", Description: "烤鸡翅,蜂蜜芥末酱。", Price: 22, Rating: 4.4, Sales: 500, Tags: `["小食"]`, Sort: 2, Status: 1, RestaurantID: 7}, + {"Sides", []model.MenuItem{ + {Name: "Mozzarella Sticks (5 pcs)", Description: "Mozzarella cheese sticks fried golden. Served with ketchup.", Price: 18, Rating: 4.5, Sales: 600, Tags: `["Side"]`, Sort: 1, Status: 1, RestaurantID: 7}, + {Name: "Chicken Wings (6 pcs)", Description: "Roasted chicken wings with honey mustard sauce.", Price: 22, Rating: 4.4, Sales: 500, Tags: `["Side"]`, Sort: 2, Status: 1, RestaurantID: 7}, }}, }, // 重庆老火锅 8: { - {"锅底", []model.MenuItem{ - {Name: "牛油九宫格锅底", Description: "正宗重庆牛油锅底,麻辣鲜香。醇厚浓郁。", Price: 48, Rating: 4.8, Sales: 1500, Tags: `["招牌","麻辣"]`, Sort: 1, Status: 1, RestaurantID: 8}, - {Name: "番茄锅底", Description: "新鲜番茄熬制,酸甜开胃。不辣选择。", Price: 28, Rating: 4.5, Sales: 600, Tags: `["不辣"]`, Sort: 2, Status: 1, RestaurantID: 8}, + {"Hot Pot Broth", []model.MenuItem{ + {Name: "Nine-Grid Beef Tallow Broth", Description: "Authentic Chongqing beef tallow broth — numbing, spicy, rich, and deeply flavorful.", Price: 48, Rating: 4.8, Sales: 1500, Tags: `["Signature","Spicy"]`, Sort: 1, Status: 1, RestaurantID: 8}, + {Name: "Tomato Broth", Description: "Simmered from fresh tomatoes, tangy and appetizing. A non-spicy option.", Price: 28, Rating: 4.5, Sales: 600, Tags: `["Non-Spicy"]`, Sort: 2, Status: 1, RestaurantID: 8}, }}, - {"涮菜", []model.MenuItem{ - {Name: "鲜毛肚", Description: "新鲜毛肚,七上八下涮煮。脆嫩爽口。", Price: 38, Rating: 4.7, Sales: 1200, Tags: `["招牌"]`, Sort: 1, Status: 1, RestaurantID: 8}, - {Name: "鸭肠", Description: "新鲜鸭肠,涮 10 秒即食。脆爽。", Price: 32, Rating: 4.6, Sales: 900, Tags: `["经典"]`, Sort: 2, Status: 1, RestaurantID: 8}, - {Name: "嫩牛肉", Description: "腌制牛里脊,嫩滑多汁。", Price: 42, Rating: 4.5, Sales: 1100, Tags: `["肉类"]`, Sort: 3, Status: 1, RestaurantID: 8}, - {Name: "鲜鸭血", Description: "嫩滑鸭血,久煮不老。", Price: 15, Rating: 4.4, Sales: 700, Tags: `["经典"]`, Sort: 4, Status: 1, RestaurantID: 8}, + {"Hot Pot Ingredients", []model.MenuItem{ + {Name: "Fresh Beef Tripe", Description: "Fresh tripe, quick-dipped for the perfect crunch. Tender and crisp.", Price: 38, Rating: 4.7, Sales: 1200, Tags: `["Signature"]`, Sort: 1, Status: 1, RestaurantID: 8}, + {Name: "Duck Intestines", Description: "Fresh duck intestines, ready in just 10 seconds. Ultra-crispy.", Price: 32, Rating: 4.6, Sales: 900, Tags: `["Classic"]`, Sort: 2, Status: 1, RestaurantID: 8}, + {Name: "Tender Beef Slices", Description: "Marinated beef tenderloin, silky and juicy.", Price: 42, Rating: 4.5, Sales: 1100, Tags: `["Meat"]`, Sort: 3, Status: 1, RestaurantID: 8}, + {Name: "Fresh Duck Blood Curd", Description: "Silky duck blood curd that stays tender no matter how long it's cooked.", Price: 15, Rating: 4.4, Sales: 700, Tags: `["Classic"]`, Sort: 4, Status: 1, RestaurantID: 8}, }}, }, // 东北串王 9: { - {"烤串", []model.MenuItem{ - {Name: "羊肉串(10串)", Description: "炭火现烤,孜然辣椒面。外焦里嫩。", Price: 35, Rating: 4.7, Sales: 3200, Tags: `["招牌","必点"]`, Sort: 1, Status: 1, RestaurantID: 9}, - {Name: "烤大腰子(3串)", Description: "新鲜羊腰,大火猛烤。外焦里嫩无腥味。", Price: 28, Rating: 4.5, Sales: 1800, Tags: `["特色"]`, Sort: 2, Status: 1, RestaurantID: 9}, - {Name: "烤鸡翅(4只)", Description: "蜜汁烤翅,外皮焦脆。多汁入味。", Price: 24, Rating: 4.6, Sales: 2100, Tags: `["热销"]`, Sort: 3, Status: 1, RestaurantID: 9}, + {"Grilled Skewers", []model.MenuItem{ + {Name: "Lamb Skewers (10 skewers)", Description: "Charcoal-grilled to order with cumin and chili powder. Crispy outside, juicy inside.", Price: 35, Rating: 4.7, Sales: 3200, Tags: `["Signature","Must Order"]`, Sort: 1, Status: 1, RestaurantID: 9}, + {Name: "Grilled Lamb Kidneys (3 skewers)", Description: "Fresh lamb kidneys, seared over high heat. Crispy and completely odor-free.", Price: 28, Rating: 4.5, Sales: 1800, Tags: `["Specialty"]`, Sort: 2, Status: 1, RestaurantID: 9}, + {Name: "Grilled Chicken Wings (4 pcs)", Description: "Honey-glazed wings with crispy skin. Juicy and full of flavor.", Price: 24, Rating: 4.6, Sales: 2100, Tags: `["Best Seller"]`, Sort: 3, Status: 1, RestaurantID: 9}, }}, - {"烤菜主食", []model.MenuItem{ - {Name: "烤韭菜", Description: "新鲜韭菜,刷油撒料。香气扑鼻。", Price: 12, Rating: 4.3, Sales: 900, Tags: `["素菜"]`, Sort: 1, Status: 1, RestaurantID: 9}, - {Name: "烤馒头片", Description: "馒头切片刷酱,外酥里软。", Price: 8, Rating: 4.4, Sales: 800, Tags: `["主食"]`, Sort: 2, Status: 1, RestaurantID: 9}, - {Name: "凉啤酒", Description: "冰镇青岛啤酒 500ml。", Price: 8, Rating: 4.5, Sales: 2500, Tags: `["饮品"]`, Sort: 3, Status: 1, RestaurantID: 9}, + {"Grilled Sides & Staples", []model.MenuItem{ + {Name: "Grilled Leeks", Description: "Fresh leeks brushed with oil and seasoned. Aromatic and irresistible.", Price: 12, Rating: 4.3, Sales: 900, Tags: `["Vegetable"]`, Sort: 1, Status: 1, RestaurantID: 9}, + {Name: "Grilled Bun Slices", Description: "Sliced steamed buns brushed with sauce, crispy outside and soft inside.", Price: 8, Rating: 4.4, Sales: 800, Tags: `["Staple"]`, Sort: 2, Status: 1, RestaurantID: 9}, + {Name: "Chilled Beer", Description: "Ice-cold Tsingtao Beer 500ml.", Price: 8, Rating: 4.5, Sales: 2500, Tags: `["Drink"]`, Sort: 3, Status: 1, RestaurantID: 9}, }}, }, // 茶颜悦色 10: { - {"招牌奶茶", []model.MenuItem{ - {Name: "幽兰拿铁", Description: "斯里兰卡红茶配鲜奶,顶铺碧根果碎。茶香奶滑。", Price: 18, Rating: 4.9, Sales: 5800, Tags: `["招牌","人气"]`, Sort: 1, Status: 1, RestaurantID: 10}, - {Name: "声声乌龙", Description: "高山乌龙茶配鲜奶,茶韵悠长。", Price: 16, Rating: 4.7, Sales: 3200, Tags: `["热销"]`, Sort: 2, Status: 1, RestaurantID: 10}, - {Name: "桂花弄", Description: "桂花乌龙鲜奶茶,淡淡花香。", Price: 17, Rating: 4.6, Sales: 2400, Tags: `["花香"]`, Sort: 3, Status: 1, RestaurantID: 10}, + {"Signature Milk Teas", []model.MenuItem{ + {Name: "Youlan Latte", Description: "Sri Lankan black tea with fresh milk, topped with crushed pecans. Aromatic tea with creamy smoothness.", Price: 18, Rating: 4.9, Sales: 5800, Tags: `["Signature","Popular"]`, Sort: 1, Status: 1, RestaurantID: 10}, + {Name: "Shengsheng Oolong", Description: "High-mountain oolong tea with fresh milk for a lingering tea flavor.", Price: 16, Rating: 4.7, Sales: 3200, Tags: `["Best Seller"]`, Sort: 2, Status: 1, RestaurantID: 10}, + {Name: "Osmanthus Oolong", Description: "Osmanthus oolong fresh milk tea with a delicate floral aroma.", Price: 17, Rating: 4.6, Sales: 2400, Tags: `["Floral"]`, Sort: 3, Status: 1, RestaurantID: 10}, }}, - {"果茶冰饮", []model.MenuItem{ - {Name: "草莓摇摇奶昔", Description: "新鲜草莓配鲜奶冰沙,酸甜清爽。", Price: 20, Rating: 4.6, Sales: 2800, Tags: `["夏季限定"]`, Sort: 1, Status: 1, RestaurantID: 10}, - {Name: "芒果椰椰", Description: "芒果泥配椰乳,热带风情。", Price: 19, Rating: 4.5, Sales: 2200, Tags: `["新品"]`, Sort: 2, Status: 1, RestaurantID: 10}, + {"Fruit Tea & Iced Drinks", []model.MenuItem{ + {Name: "Strawberry Shake Smoothie", Description: "Fresh strawberries blended with milk and ice — sweet, tangy, and refreshing.", Price: 20, Rating: 4.6, Sales: 2800, Tags: `["Summer Limited"]`, Sort: 1, Status: 1, RestaurantID: 10}, + {Name: "Mango Coconut Delight", Description: "Mango puree with coconut milk — tropical vibes in every sip.", Price: 19, Rating: 4.5, Sales: 2200, Tags: `["New"]`, Sort: 2, Status: 1, RestaurantID: 10}, }}, }, // 甜蜜时光 11: { - {"招牌甜品", []model.MenuItem{ - {Name: "经典提拉米苏", Description: "马斯卡彭芝士配咖啡手指饼干。层次丰富。", Price: 32, Rating: 4.8, Sales: 600, Tags: `["招牌"]`, Sort: 1, Status: 1, RestaurantID: 11}, - {Name: "熔岩巧克力蛋糕", Description: "外层蛋糕内心流心。配香草冰淇淋。", Price: 28, Rating: 4.7, Sales: 500, Tags: `["热销"]`, Sort: 2, Status: 1, RestaurantID: 11}, - {Name: "马卡龙(6枚)", Description: "法式马卡龙,多种口味。外脆内软。", Price: 38, Rating: 4.5, Sales: 300, Tags: `["精致"]`, Sort: 3, Status: 1, RestaurantID: 11}, + {"Signature Desserts", []model.MenuItem{ + {Name: "Classic Tiramisu", Description: "Mascarpone cheese layered with coffee-soaked ladyfingers. Rich and decadent.", Price: 32, Rating: 4.8, Sales: 600, Tags: `["Signature"]`, Sort: 1, Status: 1, RestaurantID: 11}, + {Name: "Chocolate Lava Cake", Description: "Warm cake with a molten chocolate center. Served with vanilla ice cream.", Price: 28, Rating: 4.7, Sales: 500, Tags: `["Best Seller"]`, Sort: 2, Status: 1, RestaurantID: 11}, + {Name: "Macarons (6 pcs)", Description: "French macarons in assorted flavors. Crisp shell with a chewy center.", Price: 38, Rating: 4.5, Sales: 300, Tags: `["Refined"]`, Sort: 3, Status: 1, RestaurantID: 11}, }}, }, // 绿野轻食 12: { - {"沙拉碗", []model.MenuItem{ - {Name: "牛油果鸡胸沙拉", Description: "有机蔬菜配煎鸡胸肉和牛油果。低卡高蛋白。", Price: 35, Rating: 4.6, Sales: 1200, Tags: `["招牌","低卡"]`, Sort: 1, Status: 1, RestaurantID: 12}, - {Name: "藜麦三文鱼碗", Description: "藜麦底配三文鱼和蔬菜。营养均衡。", Price: 42, Rating: 4.7, Sales: 800, Tags: `["高蛋白"]`, Sort: 2, Status: 1, RestaurantID: 12}, - {Name: "田园素食沙拉", Description: "纯素沙拉,多种蔬菜配油醋汁。", Price: 28, Rating: 4.4, Sales: 600, Tags: `["素食"]`, Sort: 3, Status: 1, RestaurantID: 12}, + {"Salad Bowls", []model.MenuItem{ + {Name: "Avocado Chicken Breast Salad", Description: "Organic greens with grilled chicken breast and avocado. Low-calorie, high-protein.", Price: 35, Rating: 4.6, Sales: 1200, Tags: `["Signature","Low Calorie"]`, Sort: 1, Status: 1, RestaurantID: 12}, + {Name: "Quinoa Salmon Bowl", Description: "Quinoa base with salmon and fresh vegetables. Nutritionally balanced.", Price: 42, Rating: 4.7, Sales: 800, Tags: `["High Protein"]`, Sort: 2, Status: 1, RestaurantID: 12}, + {Name: "Garden Vegan Salad", Description: "All-vegan salad with assorted greens and vinaigrette dressing.", Price: 28, Rating: 4.4, Sales: 600, Tags: `["Vegan"]`, Sort: 3, Status: 1, RestaurantID: 12}, }}, - {"饮品", []model.MenuItem{ - {Name: "鲜榨果蔬汁", Description: "胡萝卜苹果橙子,新鲜榨取。", Price: 18, Rating: 4.5, Sales: 500, Tags: `["鲜榨"]`, Sort: 1, Status: 1, RestaurantID: 12}, - {Name: "酸奶杯", Description: "希腊酸奶配坚果蓝莓。", Price: 15, Rating: 4.4, Sales: 400, Tags: `["健康"]`, Sort: 2, Status: 1, RestaurantID: 12}, + {"Drinks", []model.MenuItem{ + {Name: "Fresh-Pressed Juice", Description: "Carrot, apple, and orange — freshly pressed to order.", Price: 18, Rating: 4.5, Sales: 500, Tags: `["Freshly Pressed"]`, Sort: 1, Status: 1, RestaurantID: 12}, + {Name: "Yogurt Cup", Description: "Greek yogurt topped with nuts and blueberries.", Price: 15, Rating: 4.4, Sales: 400, Tags: `["Healthy"]`, Sort: 2, Status: 1, RestaurantID: 12}, }}, }, } diff --git a/internal/database/seed_game.go b/internal/database/seed_game.go index 962e223..393a225 100644 --- a/internal/database/seed_game.go +++ b/internal/database/seed_game.go @@ -8,7 +8,6 @@ import ( "gorm.io/gorm" ) -// seedGameData 初始化游戏数据(3 套游戏网站共用) func seedGameData(db *gorm.DB) error { var count int64 db.Model(&model.Game{}).Count(&count) @@ -17,14 +16,13 @@ func seedGameData(db *gorm.DB) error { return nil } - // 游戏分类 categories := []model.GameCategory{ - {Name: "动作冒险", Icon: "action", Sort: 1}, - {Name: "角色扮演", Icon: "rpg", Sort: 2}, - {Name: "策略模拟", Icon: "strategy", Sort: 3}, - {Name: "休闲益智", Icon: "casual", Sort: 4}, - {Name: "体育竞速", Icon: "sports", Sort: 5}, - {Name: "射击对战", Icon: "shooter", Sort: 6}, + {Name: "Action Adventure", Icon: "action", Sort: 1}, + {Name: "RPG", Icon: "rpg", Sort: 2}, + {Name: "Strategy & Simulation", Icon: "strategy", Sort: 3}, + {Name: "Casual & Puzzle", Icon: "casual", Sort: 4}, + {Name: "Sports & Racing", Icon: "sports", Sort: 5}, + {Name: "Shooter & Combat", Icon: "shooter", Sort: 6}, } for i := range categories { if err := db.Create(&categories[i]).Error; err != nil { @@ -32,36 +30,35 @@ func seedGameData(db *gorm.DB) error { } } - // 游戏数据 games := []model.Game{ - // 动作冒险 - {Name: "暗影纪元:觉醒", Description: "开放世界动作冒险巨作。探索广袤的奇幻大陆,与远古巨龙激战,揭开失落文明的秘密。流畅的战斗系统,震撼的视觉效果,超过 100 小时的主线剧情等你体验。", CategoryID: 1, CategoryName: "动作冒险", Developer: "Phoenix Studio", Publisher: "Nexus Games", Rating: 4.9, Plays: 890000, Downloads: 560000, Size: "45.2 GB", Version: "v2.1.0", ReleaseDate: "2026-03-15", Platform: "PC / PS5 / Xbox", Tags: `["开放世界","巨龙","史诗"]`, Features: `["无缝开放世界","实时战斗系统","动态天气","多结局剧情"]`, IsHot: true, Sort: 1, Status: 1}, - {Name: "忍者之刃:影遁", Description: "硬核动作游戏,融合忍术与暗杀。在战国时代的日本,扮演最后的影忍,用速度和技巧消灭敌人。像素级精准操作,爽快连招系统。", CategoryID: 1, CategoryName: "动作冒险", Developer: "Shadow Forge", Publisher: "Nexus Games", Rating: 4.7, Plays: 450000, Downloads: 280000, Size: "18.5 GB", Version: "v1.3.2", ReleaseDate: "2026-01-20", Platform: "PC / Switch", Tags: `["忍术","硬核","连招"]`, Features: `["精准格挡系统","忍术技能树","无UI沉浸模式"], "速通排行榜"`, IsHot: true, Sort: 2, Status: 1}, - {Name: "深海迷踪", Description: "水下探险生存游戏。在神秘的深海世界中采集资源、建造基地、发现远古遗迹。 beware 隐藏在黑暗中的深海巨兽。", CategoryID: 1, CategoryName: "动作冒险", Developer: "Abyss Team", Publisher: "Ocean Interactive", Rating: 4.5, Plays: 320000, Downloads: 190000, Size: "22.0 GB", Version: "v1.0.5", ReleaseDate: "2026-05-01", Platform: "PC / PS5", Tags: `["生存","水下","探索"]`, Features: `["深海生态系统","基地建造","多人协作"]`, IsNew: true, Sort: 3, Status: 1}, + // Action Adventure + {Name: "Shadow Epoch: Awakening", Description: "Open-world action adventure epic. Explore a vast fantasy continent, battle ancient dragons, and uncover the secrets of lost civilizations. Fluid combat system, stunning visuals, and over 100 hours of main storyline await you.", CategoryID: 1, CategoryName: "Action Adventure", Developer: "Phoenix Studio", Publisher: "Nexus Games", Rating: 4.9, Plays: 890000, Downloads: 560000, Size: "45.2 GB", Version: "v2.1.0", ReleaseDate: "2026-03-15", Platform: "PC / PS5 / Xbox", Tags: `["Open World","Dragons","Epic"]`, Features: `["Seamless Open World","Real-time Combat System","Dynamic Weather","Multiple Endings"]`, IsHot: true, Sort: 1, Status: 1}, + {Name: "Ninja Blade: Shadow Step", Description: "Hardcore action game blending ninjutsu and assassination. Set in Japan's Warring States period, play as the last shadow ninja and eliminate enemies with speed and skill. Pixel-perfect controls and satisfying combo system.", CategoryID: 1, CategoryName: "Action Adventure", Developer: "Shadow Forge", Publisher: "Nexus Games", Rating: 4.7, Plays: 450000, Downloads: 280000, Size: "18.5 GB", Version: "v1.3.2", ReleaseDate: "2026-01-20", Platform: "PC / Switch", Tags: `["Ninjutsu","Hardcore","Combos"]`, Features: `["Precision Parry System","Ninjutsu Skill Tree","No-UI Immersion Mode","Speedrun Leaderboard"]`, IsHot: true, Sort: 2, Status: 1}, + {Name: "Deep Sea Mystery", Description: "Underwater exploration survival game. Gather resources, build bases, and discover ancient ruins in a mysterious deep-sea world. Beware of the colossal creatures lurking in the darkness.", CategoryID: 1, CategoryName: "Action Adventure", Developer: "Abyss Team", Publisher: "Ocean Interactive", Rating: 4.5, Plays: 320000, Downloads: 190000, Size: "22.0 GB", Version: "v1.0.5", ReleaseDate: "2026-05-01", Platform: "PC / PS5", Tags: `["Survival","Underwater","Exploration"]`, Features: `["Deep-sea Ecosystem","Base Building","Multiplayer Co-op"]`, IsNew: true, Sort: 3, Status: 1}, - // 角色扮演 - {Name: "星域编年史", Description: "科幻 MMORPG 巨作。跨越银河系的史诗冒险,选择你的种族和职业,与千万玩家共同书写星际历史。自由度极高的技能搭配和装备系统。", CategoryID: 2, CategoryName: "角色扮演", Developer: "Galaxy Works", Publisher: "Nexus Games", Rating: 4.8, Plays: 1200000, Downloads: 890000, Size: "80.0 GB", Version: "v5.0.1", ReleaseDate: "2025-11-10", Platform: "PC / Mobile", Tags: `["MMORPG","科幻","多人"]`, Features: `["6大种族12职业","星际舰队战","玩家经济系统","跨服竞技"]`, IsHot: true, Sort: 1, Status: 1}, - {Name: "幻灵大陆:重生", Description: "经典日式 RPG 回归。手绘风格画面,感人至深的剧情,回合制战斗系统全新升级。收集 200+ 幻灵伙伴,组建你的最强队伍。", CategoryID: 2, CategoryName: "角色扮演", Developer: "Dreamlight", Publisher: "Square Nexus", Rating: 4.7, Plays: 670000, Downloads: 450000, Size: "12.8 GB", Version: "v3.2.0", ReleaseDate: "2026-02-28", Platform: "PC / Switch / Mobile", Tags: `["JRPG","回合制","收集"]`, Features: `["200+幻灵收集","手绘动画","分支剧情","宠物养成"]`, Sort: 2, Status: 1}, - {Name: "修仙问道录", Description: "国风仙侠开放世界 RPG。从凡人修炼至飞升仙界,体验完整的修仙体系。御剑飞行、炼丹炼器、渡劫飞升,感受东方仙侠之美。", CategoryID: 2, CategoryName: "角色扮演", Developer: "云海工作室", Publisher: "仙界互娱", Rating: 4.6, Plays: 980000, Downloads: 720000, Size: "35.0 GB", Version: "v2.0.0", ReleaseDate: "2026-04-01", Platform: "PC / Mobile", Tags: `["仙侠","开放世界","国风"]`, Features: `["修仙境界体系","御剑飞行","炼丹炼器","宗门争霸"]`, IsNew: true, IsHot: true, Sort: 3, Status: 1}, + // RPG + {Name: "Stellar Chronicles", Description: "Sci-fi MMORPG epic. Embark on an intergalactic adventure, choose your race and class, and write stellar history alongside millions of players. Highly customizable skill builds and gear systems.", CategoryID: 2, CategoryName: "RPG", Developer: "Galaxy Works", Publisher: "Nexus Games", Rating: 4.8, Plays: 1200000, Downloads: 890000, Size: "80.0 GB", Version: "v5.0.1", ReleaseDate: "2025-11-10", Platform: "PC / Mobile", Tags: `["MMORPG","Sci-Fi","Multiplayer"]`, Features: `["6 Races, 12 Classes","Starfleet Battles","Player Economy System","Cross-server PvP"]`, IsHot: true, Sort: 1, Status: 1}, + {Name: "Phantom Spirits: Rebirth", Description: "Classic Japanese RPG revival. Hand-drawn art style, deeply moving storyline, and a revamped turn-based combat system. Collect 200+ phantom spirit companions and build your ultimate team.", CategoryID: 2, CategoryName: "RPG", Developer: "Dreamlight", Publisher: "Square Nexus", Rating: 4.7, Plays: 670000, Downloads: 450000, Size: "12.8 GB", Version: "v3.2.0", ReleaseDate: "2026-02-28", Platform: "PC / Switch / Mobile", Tags: `["JRPG","Turn-based","Collection"]`, Features: `["200+ Spirit Collection","Hand-drawn Animation","Branching Storylines","Pet Raising"]`, Sort: 2, Status: 1}, + {Name: "Immortal Cultivation Records", Description: "Chinese fantasy open-world RPG. Progress from mortal to immortal, experiencing the complete cultivation system. Soar on swords, refine pills and artifacts, and transcend tribulations to ascend. Immerse yourself in the beauty of Eastern fantasy.", CategoryID: 2, CategoryName: "RPG", Developer: "Cloud Sea Studio", Publisher: "Immortal Realm Interactive", Rating: 4.6, Plays: 980000, Downloads: 720000, Size: "35.0 GB", Version: "v2.0.0", ReleaseDate: "2026-04-01", Platform: "PC / Mobile", Tags: `["Xianxia","Open World","Chinese Fantasy"]`, Features: `["Cultivation Realm System","Sword Flying","Pill & Artifact Refinement","Sect Warfare"]`, IsNew: true, IsHot: true, Sort: 3, Status: 1}, - // 策略模拟 - {Name: "帝国黎明:文明崛起", Description: "4X 策略巨作。从石器时代到星际文明,带领你的民族走过万年历史。外交、战争、科技、文化,多种胜利方式。支持最多 12 人联机。", CategoryID: 3, CategoryName: "策略模拟", Developer: "Strategy Labs", Publisher: "Nexus Games", Rating: 4.8, Plays: 560000, Downloads: 340000, Size: "28.0 GB", Version: "v4.1.0", ReleaseDate: "2026-01-05", Platform: "PC / Mac", Tags: `["4X","文明","策略"]`, Features: `["万年文明演进","12人联机","随机地图生成","科技树系统"]`, IsHot: true, Sort: 1, Status: 1}, - {Name: "星际拓荒者", Description: "太空殖民模拟经营。建立你的星际帝国,开发星球资源,研究科技,与外星文明交流或对抗。沙盒式自由玩法。", CategoryID: 3, CategoryName: "策略模拟", Developer: "Cosmic Dev", Publisher: "Space Games", Rating: 4.5, Plays: 380000, Downloads: 210000, Size: "15.0 GB", Version: "v1.5.0", ReleaseDate: "2026-03-20", Platform: "PC", Tags: `["模拟","太空","经营"]`, Features: `["星球殖民","科技研究","外交系统","沙盒模式"]`, Sort: 2, Status: 1}, - {Name: "农场物语:四季", Description: "治愈系农场模拟。种田、养殖、钓鱼、采矿、交友。四季变换的美景,温馨的村庄生活。支持 4 人联机合作。", CategoryID: 3, CategoryName: "策略模拟", Developer: "Green Valley", Publisher: "Harvest Games", Rating: 4.7, Plays: 720000, Downloads: 520000, Size: "8.5 GB", Version: "v2.3.0", ReleaseDate: "2026-02-14", Platform: "PC / Switch / Mobile", Tags: `["农场","治愈","联机"]`, Features: `["四季农场经营","4人联机","村民社交","节日活动"]`, IsHot: true, Sort: 3, Status: 1}, + // Strategy & Simulation + {Name: "Empire Dawn: Rise of Civilizations", Description: "4X strategy epic. Lead your nation from the Stone Age through interstellar civilization across ten thousand years of history. Diplomacy, warfare, technology, and culture — multiple paths to victory. Supports up to 12-player multiplayer.", CategoryID: 3, CategoryName: "Strategy & Simulation", Developer: "Strategy Labs", Publisher: "Nexus Games", Rating: 4.8, Plays: 560000, Downloads: 340000, Size: "28.0 GB", Version: "v4.1.0", ReleaseDate: "2026-01-05", Platform: "PC / Mac", Tags: `["4X","Civilization","Strategy"]`, Features: `["10,000-Year Civilization Evolution","12-Player Multiplayer","Random Map Generation","Tech Tree System"]`, IsHot: true, Sort: 1, Status: 1}, + {Name: "Stellar Pioneers", Description: "Space colonization simulation. Build your interstellar empire, develop planetary resources, research technologies, and interact or compete with alien civilizations. Sandbox-style freeform gameplay.", CategoryID: 3, CategoryName: "Strategy & Simulation", Developer: "Cosmic Dev", Publisher: "Space Games", Rating: 4.5, Plays: 380000, Downloads: 210000, Size: "15.0 GB", Version: "v1.5.0", ReleaseDate: "2026-03-20", Platform: "PC", Tags: `["Simulation","Space","Management"]`, Features: `["Planet Colonization","Technology Research","Diplomacy System","Sandbox Mode"]`, Sort: 2, Status: 1}, + {Name: "Farm Story: Four Seasons", Description: "Cozy farming simulation. Plant crops, raise animals, fish, mine, and make friends. Beautiful scenery across four seasons in a heartwarming village life. Supports 4-player cooperative multiplayer.", CategoryID: 3, CategoryName: "Strategy & Simulation", Developer: "Green Valley", Publisher: "Harvest Games", Rating: 4.7, Plays: 720000, Downloads: 520000, Size: "8.5 GB", Version: "v2.3.0", ReleaseDate: "2026-02-14", Platform: "PC / Switch / Mobile", Tags: `["Farming","Cozy","Multiplayer"]`, Features: `["Four-Season Farm Management","4-Player Co-op","Villager Socializing","Festival Events"]`, IsHot: true, Sort: 3, Status: 1}, - // 休闲益智 - {Name: "方块消消乐:无尽版", Description: "经典三消玩法全新升级。数百个精心设计的关卡,丰富的道具和障碍,每周更新限时活动。轻松上手,难以放下。", CategoryID: 4, CategoryName: "休闲益智", Developer: "Fun Factory", Publisher: "Casual Games", Rating: 4.6, Plays: 3500000, Downloads: 2800000, Size: "320 MB", Version: "v8.0.0", ReleaseDate: "2026-04-15", Platform: "Mobile / PC", Tags: `["三消","休闲","限时活动"]`, Features: `["500+关卡","每周活动","社交排行榜","离线可玩"]`, IsHot: true, Sort: 1, Status: 1}, - {Name: "脑洞大师", Description: "创意脑筋急转弯合集。1000+ 脑洞题目,考验你的逆向思维和创意。每关都有意想不到的解法,让你大呼过瘾。", CategoryID: 4, CategoryName: "休闲益智", Developer: "Brain Box", Publisher: "Puzzle Games", Rating: 4.4, Plays: 1800000, Downloads: 1200000, Size: "150 MB", Version: "v3.0.0", ReleaseDate: "2026-05-10", Platform: "Mobile", Tags: `["益智","脑筋急转弯","创意"]`, Features: `["1000+题目","每日挑战","提示系统","成就收集"]`, IsNew: true, Sort: 2, Status: 1}, - {Name: "音符跳跃", Description: "音乐节奏游戏。跟随节拍跳跃,感受音乐与操作的完美融合。100+ 授权热门曲目,多种难度可选。", CategoryID: 4, CategoryName: "休闲益智", Developer: "Rhythm Works", Publisher: "Music Games", Rating: 4.5, Plays: 920000, Downloads: 680000, Size: "680 MB", Version: "v2.1.0", ReleaseDate: "2026-03-01", Platform: "Mobile / PC", Tags: `["音乐","节奏","手速"]`, Features: `["100+授权曲目","多难度","自定义谱面","全球排名"]`, Sort: 3, Status: 1}, + // Casual & Puzzle + {Name: "Block Crusher: Infinite", Description: "Classic match-3 gameplay fully reimagined. Hundreds of meticulously designed levels, abundant power-ups and obstacles, weekly limited-time events. Easy to pick up, hard to put down.", CategoryID: 4, CategoryName: "Casual & Puzzle", Developer: "Fun Factory", Publisher: "Casual Games", Rating: 4.6, Plays: 3500000, Downloads: 2800000, Size: "320 MB", Version: "v8.0.0", ReleaseDate: "2026-04-15", Platform: "Mobile / PC", Tags: `["Match-3","Casual","Limited-time Events"]`, Features: `["500+ Levels","Weekly Events","Social Leaderboards","Offline Play"]`, IsHot: true, Sort: 1, Status: 1}, + {Name: "Mind Master", Description: "Creative brain teaser collection. 1000+ brain-bending puzzles that test your lateral thinking and creativity. Every level has an unexpected solution that will leave you thrilled.", CategoryID: 4, CategoryName: "Casual & Puzzle", Developer: "Brain Box", Publisher: "Puzzle Games", Rating: 4.4, Plays: 1800000, Downloads: 1200000, Size: "150 MB", Version: "v3.0.0", ReleaseDate: "2026-05-10", Platform: "Mobile", Tags: `["Puzzle","Brain Teaser","Creative"]`, Features: `["1000+ Puzzles","Daily Challenge","Hint System","Achievement Collection"]`, IsNew: true, Sort: 2, Status: 1}, + {Name: "Note Jump", Description: "Music rhythm game. Jump to the beat and feel the perfect fusion of music and gameplay. 100+ licensed popular tracks with multiple difficulty levels to choose from.", CategoryID: 4, CategoryName: "Casual & Puzzle", Developer: "Rhythm Works", Publisher: "Music Games", Rating: 4.5, Plays: 920000, Downloads: 680000, Size: "680 MB", Version: "v2.1.0", ReleaseDate: "2026-03-01", Platform: "Mobile / PC", Tags: `["Music","Rhythm","Reflexes"]`, Features: `["100+ Licensed Tracks","Multiple Difficulties","Custom Charts","Global Rankings"]`, Sort: 3, Status: 1}, - // 体育竞速 - {Name: "极速狂飙:霓虹之城", Description: "赛博朋克风格竞速游戏。在霓虹闪烁的未来都市飙车,改装你的超跑,挑战极限赛道。支持 16 人在线竞速。", CategoryID: 5, CategoryName: "体育竞速", Developer: "Turbo Studio", Publisher: "Racing Games", Rating: 4.7, Plays: 680000, Downloads: 430000, Size: "55.0 GB", Version: "v2.0.0", ReleaseDate: "2026-04-20", Platform: "PC / PS5 / Xbox", Tags: `["竞速","赛博朋克","改装"]`, Features: `["16人在线","车辆改装","开放城市","动态天气"]`, IsHot: true, Sort: 1, Status: 1}, - {Name: "绿茵传奇 2026", Description: "次世代足球模拟。真实球员授权,精细到每个动作的动作捕捉。全新战术系统,经理模式深度运营。电竞赛事指定用游。", CategoryID: 5, CategoryName: "体育竞速", Developer: "Sports Pro", Publisher: "Champion Games", Rating: 4.6, Plays: 1100000, Downloads: 820000, Size: "65.0 GB", Version: "v2026.1", ReleaseDate: "2026-01-01", Platform: "PC / PS5 / Xbox / Switch", Tags: `["足球","模拟","电竞"]`, Features: `["真实球员授权","经理模式","在线对战","UT卡牌"]`, Sort: 2, Status: 1}, + // Sports & Racing + {Name: "Speed Blitz: Neon City", Description: "Cyberpunk-style racing game. Race through neon-lit futuristic streets, customize your supercar, and push your limits on extreme tracks. Supports 16-player online racing.", CategoryID: 5, CategoryName: "Sports & Racing", Developer: "Turbo Studio", Publisher: "Racing Games", Rating: 4.7, Plays: 680000, Downloads: 430000, Size: "55.0 GB", Version: "v2.0.0", ReleaseDate: "2026-04-20", Platform: "PC / PS5 / Xbox", Tags: `["Racing","Cyberpunk","Customization"]`, Features: `["16-Player Online","Vehicle Customization","Open City","Dynamic Weather"]`, IsHot: true, Sort: 1, Status: 1}, + {Name: "Green Turf Legend 2026", Description: "Next-generation football simulation. Official player licensing and motion-captured animations down to every detail. All-new tactical system and deep manager mode. Official esports tournament game.", CategoryID: 5, CategoryName: "Sports & Racing", Developer: "Sports Pro", Publisher: "Champion Games", Rating: 4.6, Plays: 1100000, Downloads: 820000, Size: "65.0 GB", Version: "v2026.1", ReleaseDate: "2026-01-01", Platform: "PC / PS5 / Xbox / Switch", Tags: `["Football","Simulation","Esports"]`, Features: `["Official Player Licensing","Manager Mode","Online Matches","UT Card System"]`, Sort: 2, Status: 1}, - // 射击对战 - {Name: "战术先锋:零点行动", Description: "5v5 战术 FPS 对战。精准枪械手感,丰富的战术道具,公平竞技无付费增强。排位赛、休闲赛、僵尸模式应有尽有。", CategoryID: 6, CategoryName: "射击对战", Developer: "Tactical Ops", Publisher: "Nexus Games", Rating: 4.8, Plays: 2500000, Downloads: 1800000, Size: "40.0 GB", Version: "v6.0", ReleaseDate: "2025-12-01", Platform: "PC / Console", Tags: `["FPS","5v5","电竞"]`, Features: `["精准枪械手感","战术道具系统","排位竞技","僵尸模式"]`, IsHot: true, Sort: 1, Status: 1}, - {Name: "星际战甲:远征", Description: "PvE 合作射击 RPG。扮演星际战士,穿着可定制战甲,使用超能力和先进武器,与队友一起完成史诗任务。50+ 战甲可选。", CategoryID: 6, CategoryName: "射击对战", Developer: "Digital Forge", Publisher: "Space Games", Rating: 4.7, Plays: 1300000, Downloads: 950000, Size: "50.0 GB", Version: "v3.5.0", ReleaseDate: "2026-02-10", Platform: "PC / PS5 / Xbox", Tags: `["PvE","战甲","合作"]`, Features: `["50+可定制战甲","4人合作","开放世界任务","免费游玩"]`, IsHot: true, Sort: 2, Status: 1}, - {Name: "荒野求生:大逃杀", Description: "100 人大逃杀。跳伞、搜装备、缩圈、活到最后。多种地图和模式,真实弹道物理。战术竞技的极致体验。", CategoryID: 6, CategoryName: "射击对战", Developer: "Battle Royal", Publisher: "Nexus Games", Rating: 4.6, Plays: 3200000, Downloads: 2500000, Size: "35.0 GB", Version: "v12.0", ReleaseDate: "2026-03-01", Platform: "PC / Mobile / Console", Tags: `["大逃杀","100人","战术"]`, Features: `["100人对战","多地图模式","真实弹道","免费游玩"]`, IsNew: true, IsHot: true, Sort: 3, Status: 1}, + // Shooter & Combat + {Name: "Tactical Vanguard: Zero Hour", Description: "5v5 tactical FPS combat. Precise gunplay, rich tactical equipment, and fair competitive play with no pay-to-win. Ranked matches, casual games, and zombie mode — everything you could want.", CategoryID: 6, CategoryName: "Shooter & Combat", Developer: "Tactical Ops", Publisher: "Nexus Games", Rating: 4.8, Plays: 2500000, Downloads: 1800000, Size: "40.0 GB", Version: "v6.0", ReleaseDate: "2025-12-01", Platform: "PC / Console", Tags: `["FPS","5v5","Esports"]`, Features: `["Precise Gunplay","Tactical Equipment System","Ranked Competitive","Zombie Mode"]`, IsHot: true, Sort: 1, Status: 1}, + {Name: "Stellar Frame: Expedition", Description: "PvE cooperative shooter RPG. Play as a star soldier in customizable warframes, wielding superpowers and advanced weapons to complete epic missions with your team. 50+ warframes available.", CategoryID: 6, CategoryName: "Shooter & Combat", Developer: "Digital Forge", Publisher: "Space Games", Rating: 4.7, Plays: 1300000, Downloads: 950000, Size: "50.0 GB", Version: "v3.5.0", ReleaseDate: "2026-02-10", Platform: "PC / PS5 / Xbox", Tags: `["PvE","Warframes","Co-op"]`, Features: `["50+ Customizable Warframes","4-Player Co-op","Open World Missions","Free to Play"]`, IsHot: true, Sort: 2, Status: 1}, + {Name: "Wild Survival: Battle Royale", Description: "100-player battle royale. Parachute in, scavenge gear, survive the shrinking zone, and be the last one standing. Multiple maps and modes with realistic ballistics. The ultimate tactical competition experience.", CategoryID: 6, CategoryName: "Shooter & Combat", Developer: "Battle Royal", Publisher: "Nexus Games", Rating: 4.6, Plays: 3200000, Downloads: 2500000, Size: "35.0 GB", Version: "v12.0", ReleaseDate: "2026-03-01", Platform: "PC / Mobile / Console", Tags: `["Battle Royale","100 Players","Tactical"]`, Features: `["100-Player Battles","Multi-map Modes","Realistic Ballistics","Free to Play"]`, IsNew: true, IsHot: true, Sort: 3, Status: 1}, } for i := range games { if err := db.Create(&games[i]).Error; err != nil { diff --git a/internal/database/seed_music.go b/internal/database/seed_music.go index e4f8440..65d43f3 100644 --- a/internal/database/seed_music.go +++ b/internal/database/seed_music.go @@ -19,12 +19,12 @@ func seedMusicData(db *gorm.DB) error { // 音乐分类(曲风) categories := []model.MusicCategory{ - {Name: "流行", Icon: "pop", Sort: 1}, - {Name: "摇滚", Icon: "rock", Sort: 2}, - {Name: "民谣", Icon: "folk", Sort: 3}, - {Name: "电子", Icon: "electronic", Sort: 4}, - {Name: "古典", Icon: "classical", Sort: 5}, - {Name: "嘻哈", Icon: "hiphop", Sort: 6}, + {Name: "Pop", Icon: "pop", Sort: 1}, + {Name: "Rock", Icon: "rock", Sort: 2}, + {Name: "Folk", Icon: "folk", Sort: 3}, + {Name: "Electronic", Icon: "electronic", Sort: 4}, + {Name: "Classical", Icon: "classical", Sort: 5}, + {Name: "Hip-Hop", Icon: "hiphop", Sort: 6}, } for i := range categories { if err := db.Create(&categories[i]).Error; err != nil { @@ -35,34 +35,34 @@ func seedMusicData(db *gorm.DB) error { // 歌曲数据 songs := []model.Song{ // 流行 - {Title: "星海彼岸", Artist: "林夕音", Album: "星海彼岸", CategoryID: 1, CategoryName: "流行", Duration: 245, PlayCount: 98000000, LikeCount: 850000, ReleaseDate: "2026-06-15", Language: "华语", Tags: `["抒情","钢琴","治愈"]`, Lyrics: "越过星海的距离\n我在彼岸等你\n时光折叠成纸鹤\n飞向你的心里", IsHot: true, IsNew: true, Sort: 1, Status: 1}, - {Title: "霓虹城市", Artist: "Echo 乐队", Album: "都市光影", CategoryID: 1, CategoryName: "流行", Duration: 198, PlayCount: 67000000, LikeCount: 520000, ReleaseDate: "2026-05-20", Language: "华语", Tags: `["都市","电子流行","动感"]`, Lyrics: "霓虹灯下的城市\n我们擦肩而过\n每一盏灯都是一个故事", IsHot: true, Sort: 2, Status: 1}, - {Title: "夏日晚风", Artist: "苏念", Album: "夏日纪", CategoryID: 1, CategoryName: "流行", Duration: 213, PlayCount: 45000000, LikeCount: 380000, ReleaseDate: "2026-07-01", Language: "华语", Tags: `["夏日","清新","轻快"]`, Lyrics: "夏天的晚风轻轻吹\n带着栀子花的香味\n我们骑着单车\n追着夕阳跑", IsNew: true, Sort: 3, Status: 1}, + {Title: "Across the Star Sea", Artist: "Lin Xiyin", Album: "Across the Star Sea", CategoryID: 1, CategoryName: "Pop", Duration: 245, PlayCount: 98000000, LikeCount: 850000, ReleaseDate: "2026-06-15", Language: "Chinese", Tags: `["Ballad","Piano","Healing"]`, Lyrics: "Across the star sea\nI wait for you on the other shore\nTime folds into a paper crane\nFlying into your heart", IsHot: true, IsNew: true, Sort: 1, Status: 1}, + {Title: "Neon City", Artist: "Echo Band", Album: "City Lights", CategoryID: 1, CategoryName: "Pop", Duration: 198, PlayCount: 67000000, LikeCount: 520000, ReleaseDate: "2026-05-20", Language: "Chinese", Tags: `["Urban","Electropop","Energetic"]`, Lyrics: "Under the neon lights\nWe pass each other by\nEvery light tells a story", IsHot: true, Sort: 2, Status: 1}, + {Title: "Summer Evening Breeze", Artist: "Su Nian", Album: "Summer Diary", CategoryID: 1, CategoryName: "Pop", Duration: 213, PlayCount: 45000000, LikeCount: 380000, ReleaseDate: "2026-07-01", Language: "Chinese", Tags: `["Summer","Fresh","Upbeat"]`, Lyrics: "The summer evening breeze blows gently\nCarrying the scent of gardenia\nWe ride our bicycles\nChasing the sunset", IsNew: true, Sort: 3, Status: 1}, // 摇滚 - {Title: "燃烧的翅膀", Artist: "狂焰乐队", Album: "烈火纪元", CategoryID: 2, CategoryName: "摇滚", Duration: 312, PlayCount: 56000000, LikeCount: 680000, ReleaseDate: "2026-04-10", Language: "华语", Tags: `["硬摇滚","热血","励志"]`, Lyrics: "展开燃烧的翅膀\n冲破所有阻挡\n就算坠落也要\n飞向太阳的方向", IsHot: true, Sort: 1, Status: 1}, - {Title: "破碎的镜", Artist: "黑曜石", Album: "反射", CategoryID: 2, CategoryName: "摇滚", Duration: 267, PlayCount: 34000000, LikeCount: 420000, ReleaseDate: "2026-03-15", Language: "华语", Tags: `["另类摇滚","深沉","思考"]`, Lyrics: "破碎的镜中\n映出无数个自己\n哪一个才是真实", IsHot: true, Sort: 2, Status: 1}, - {Title: "自由之路", Artist: "远征者", Album: "无界", CategoryID: 2, CategoryName: "摇滚", Duration: 289, PlayCount: 28000000, LikeCount: 310000, ReleaseDate: "2026-06-28", Language: "华语", Tags: `["朋克","自由","公路"]`, Lyrics: "踏上自由之路\n油门踩到底\n风在耳边呼啸", IsNew: true, Sort: 3, Status: 1}, + {Title: "Burning Wings", Artist: "Wildfire Band", Album: "Era of Flames", CategoryID: 2, CategoryName: "Rock", Duration: 312, PlayCount: 56000000, LikeCount: 680000, ReleaseDate: "2026-04-10", Language: "Chinese", Tags: `["Hard Rock","Passionate","Inspirational"]`, Lyrics: "Spread your burning wings\nBreak through all barriers\nEven if you fall\nFly toward the sun", IsHot: true, Sort: 1, Status: 1}, + {Title: "Shattered Mirror", Artist: "Obsidian", Album: "Reflection", CategoryID: 2, CategoryName: "Rock", Duration: 267, PlayCount: 34000000, LikeCount: 420000, ReleaseDate: "2026-03-15", Language: "Chinese", Tags: `["Alternative Rock","Deep","Thoughtful"]`, Lyrics: "In the shattered mirror\nCountless versions of me appear\nWhich one is real", IsHot: true, Sort: 2, Status: 1}, + {Title: "Road to Freedom", Artist: "The Vanguard", Album: "Boundless", CategoryID: 2, CategoryName: "Rock", Duration: 289, PlayCount: 28000000, LikeCount: 310000, ReleaseDate: "2026-06-28", Language: "Chinese", Tags: `["Punk","Freedom","Road"]`, Lyrics: "Step onto the road to freedom\nFloor it to the max\nWind howling in my ears", IsNew: true, Sort: 3, Status: 1}, // 民谣 - {Title: "故乡的云", Artist: "陈木然", Album: "远方", CategoryID: 3, CategoryName: "民谣", Duration: 256, PlayCount: 78000000, LikeCount: 920000, ReleaseDate: "2026-05-01", Language: "华语", Tags: `["乡愁","吉他","温暖"]`, Lyrics: "故乡的云\n慢慢地飘\n带走我的思念\n留在远方的家", IsHot: true, Sort: 1, Status: 1}, - {Title: "老街时光", Artist: "江南月", Album: "巷子里的歌", CategoryID: 3, CategoryName: "民谣", Duration: 224, PlayCount: 42000000, LikeCount: 560000, ReleaseDate: "2026-04-22", Language: "华语", Tags: `["怀旧","口琴","叙事"]`, Lyrics: "老街的石板路\n刻着岁月的纹\n阿婆的摇椅\n还在门前摇晃", Sort: 2, Status: 1}, - {Title: "山野间", Artist: "风之声", Album: "自然录", CategoryID: 3, CategoryName: "民谣", Duration: 198, PlayCount: 31000000, LikeCount: 410000, ReleaseDate: "2026-07-05", Language: "华语", Tags: `["自然","竹笛","宁静"]`, Lyrics: "山野间的风\n带着青草的味道\n溪水潺潺流过\n鸟儿在歌唱", IsNew: true, Sort: 3, Status: 1}, + {Title: "Clouds of Home", Artist: "Chen Muran", Album: "Faraway", CategoryID: 3, CategoryName: "Folk", Duration: 256, PlayCount: 78000000, LikeCount: 920000, ReleaseDate: "2026-05-01", Language: "Chinese", Tags: `["Nostalgia","Guitar","Warmth"]`, Lyrics: "The clouds of home\nDrift slowly by\nCarrying my longing\nLeft at home far away", IsHot: true, Sort: 1, Status: 1}, + {Title: "Old Street Memories", Artist: "Jiangnan Yue", Album: "Songs in the Alley", CategoryID: 3, CategoryName: "Folk", Duration: 224, PlayCount: 42000000, LikeCount: 560000, ReleaseDate: "2026-04-22", Language: "Chinese", Tags: `["Vintage","Harmonica","Storytelling"]`, Lyrics: "The cobblestone road of the old street\nEtched with the lines of time\nGrandmother's rocking chair\nStill sways by the door", Sort: 2, Status: 1}, + {Title: "Among the Mountains", Artist: "Voice of the Wind", Album: "Nature Recordings", CategoryID: 3, CategoryName: "Folk", Duration: 198, PlayCount: 31000000, LikeCount: 410000, ReleaseDate: "2026-07-05", Language: "Chinese", Tags: `["Nature","Bamboo Flute","Tranquility"]`, Lyrics: "The wind among the mountains\nCarries the scent of fresh grass\nA stream flows gently\nBirds are singing", IsNew: true, Sort: 3, Status: 1}, // 电子 - {Title: "赛博梦境", Artist: "Neon Pulse", Album: "Digital Dreams", CategoryID: 4, CategoryName: "电子", Duration: 345, PlayCount: 89000000, LikeCount: 750000, ReleaseDate: "2026-06-18", Language: "纯音乐", Tags: `["合成器","赛博朋克","氛围"]`, Lyrics: "", IsHot: true, IsNew: true, Sort: 1, Status: 1}, - {Title: "脉冲星", Artist: "Synthwave Lab", Album: "Cosmic Frequencies", CategoryID: 4, CategoryName: "电子", Duration: 278, PlayCount: 52000000, LikeCount: 480000, ReleaseDate: "2026-05-10", Language: "纯音乐", Tags: `["电子舞曲","太空","律动"]`, Lyrics: "", IsHot: true, Sort: 2, Status: 1}, - {Title: "数据洪流", Artist: "CodeBeat", Album: "Binary", CategoryID: 4, CategoryName: "电子", Duration: 234, PlayCount: 36000000, LikeCount: 320000, ReleaseDate: "2026-07-08", Language: "纯音乐", Tags: `["Glitch","科技","实验"]`, Lyrics: "", IsNew: true, Sort: 3, Status: 1}, + {Title: "Cyber Dreamscape", Artist: "Neon Pulse", Album: "Digital Dreams", CategoryID: 4, CategoryName: "Electronic", Duration: 345, PlayCount: 89000000, LikeCount: 750000, ReleaseDate: "2026-06-18", Language: "Instrumental", Tags: `["Synth","Cyberpunk","Ambient"]`, Lyrics: "", IsHot: true, IsNew: true, Sort: 1, Status: 1}, + {Title: "Pulsar", Artist: "Synthwave Lab", Album: "Cosmic Frequencies", CategoryID: 4, CategoryName: "Electronic", Duration: 278, PlayCount: 52000000, LikeCount: 480000, ReleaseDate: "2026-05-10", Language: "Instrumental", Tags: `["EDM","Space","Groove"]`, Lyrics: "", IsHot: true, Sort: 2, Status: 1}, + {Title: "Data Flood", Artist: "CodeBeat", Album: "Binary", CategoryID: 4, CategoryName: "Electronic", Duration: 234, PlayCount: 36000000, LikeCount: 320000, ReleaseDate: "2026-07-08", Language: "Instrumental", Tags: `["Glitch","Tech","Experimental"]`, Lyrics: "", IsNew: true, Sort: 3, Status: 1}, // 古典 - {Title: "月光奏鸣曲 (改编)", Artist: "李云朗", Album: "古典新声", CategoryID: 5, CategoryName: "古典", Duration: 420, PlayCount: 65000000, LikeCount: 880000, ReleaseDate: "2026-03-20", Language: "纯音乐", Tags: `["钢琴","贝多芬","改编"]`, Lyrics: "", IsHot: true, Sort: 1, Status: 1}, - {Title: "春之圆舞曲", Artist: "维也纳爱乐", Album: "四季", CategoryID: 5, CategoryName: "古典", Duration: 387, PlayCount: 43000000, LikeCount: 560000, ReleaseDate: "2026-04-05", Language: "纯音乐", Tags: `["管弦乐","圆舞曲","经典"]`, Lyrics: "", Sort: 2, Status: 1}, - {Title: "二泉映月", Artist: "华彦钧", Album: "中国传统名曲", CategoryID: 5, CategoryName: "古典", Duration: 512, PlayCount: 38000000, LikeCount: 620000, ReleaseDate: "2026-01-15", Language: "纯音乐", Tags: `["二胡","传统","名曲"]`, Lyrics: "", Sort: 3, Status: 1}, + {Title: "Moonlight Sonata (Arrangement)", Artist: "Li Yunlang", Album: "Classical Reimagined", CategoryID: 5, CategoryName: "Classical", Duration: 420, PlayCount: 65000000, LikeCount: 880000, ReleaseDate: "2026-03-20", Language: "Instrumental", Tags: `["Piano","Beethoven","Arrangement"]`, Lyrics: "", IsHot: true, Sort: 1, Status: 1}, + {Title: "Spring Waltz", Artist: "Vienna Philharmonic", Album: "Four Seasons", CategoryID: 5, CategoryName: "Classical", Duration: 387, PlayCount: 43000000, LikeCount: 560000, ReleaseDate: "2026-04-05", Language: "Instrumental", Tags: `["Orchestral","Waltz","Classic"]`, Lyrics: "", Sort: 2, Status: 1}, + {Title: "Erquan Yingyue", Artist: "Hua Yanjun", Album: "Chinese Traditional Masterpieces", CategoryID: 5, CategoryName: "Classical", Duration: 512, PlayCount: 38000000, LikeCount: 620000, ReleaseDate: "2026-01-15", Language: "Instrumental", Tags: `["Erhu","Traditional","Masterpiece"]`, Lyrics: "", Sort: 3, Status: 1}, // 嘻哈 - {Title: "街头诗人", Artist: "MC 锋芒", Album: "地下之声", CategoryID: 6, CategoryName: "嘻哈", Duration: 187, PlayCount: 72000000, LikeCount: 650000, ReleaseDate: "2026-06-25", Language: "华语", Tags: `["说唱","街头","真实"]`, Lyrics: "我是街头诗人\n用韵脚写日记\n每一句都是生活\n每一个节拍都是心跳", IsHot: true, IsNew: true, Sort: 1, Status: 1}, - {Title: "不眠夜", Artist: "Trap Master", Album: "Midnight", CategoryID: 6, CategoryName: "嘻哈", Duration: 165, PlayCount: 48000000, LikeCount: 430000, ReleaseDate: "2026-05-15", Language: "英语", Tags: `["Trap","夜店","律动"]`, Lyrics: "Midnight city lights\nWe don't sleep tonight\nBeat drops heavy\nFlow so tight", IsHot: true, Sort: 2, Status: 1}, - {Title: "逐梦", Artist: "新生代", Album: "破茧", CategoryID: 6, CategoryName: "嘻哈", Duration: 198, PlayCount: 35000000, LikeCount: 390000, ReleaseDate: "2026-07-03", Language: "华语", Tags: `["励志","Flow","新生代"]`, Lyrics: "从地下到舞台\n每一步都不容易\n但梦想从不骗人\n只要你敢追", IsNew: true, Sort: 3, Status: 1}, + {Title: "Street Poet", Artist: "MC Fengmang", Album: "Underground Voice", CategoryID: 6, CategoryName: "Hip-Hop", Duration: 187, PlayCount: 72000000, LikeCount: 650000, ReleaseDate: "2026-06-25", Language: "Chinese", Tags: `["Rap","Street","Authentic"]`, Lyrics: "I am a street poet\nWriting diaries with rhymes\nEvery line is life\nEvery beat is a heartbeat", IsHot: true, IsNew: true, Sort: 1, Status: 1}, + {Title: "Sleepless Night", Artist: "Trap Master", Album: "Midnight", CategoryID: 6, CategoryName: "Hip-Hop", Duration: 165, PlayCount: 48000000, LikeCount: 430000, ReleaseDate: "2026-05-15", Language: "English", Tags: `["Trap","Nightlife","Groove"]`, Lyrics: "Midnight city lights\nWe don't sleep tonight\nBeat drops heavy\nFlow so tight", IsHot: true, Sort: 2, Status: 1}, + {Title: "Chasing Dreams", Artist: "New Generation", Album: "Breaking Free", CategoryID: 6, CategoryName: "Hip-Hop", Duration: 198, PlayCount: 35000000, LikeCount: 390000, ReleaseDate: "2026-07-03", Language: "Chinese", Tags: `["Inspirational","Flow","New Generation"]`, Lyrics: "From underground to the stage\nEvery step is hard\nBut dreams never lie\nAs long as you dare to chase", IsNew: true, Sort: 3, Status: 1}, } for i := range songs { if err := db.Create(&songs[i]).Error; err != nil { diff --git a/internal/database/seed_shop.go b/internal/database/seed_shop.go index 4b5398f..df98c0c 100644 --- a/internal/database/seed_shop.go +++ b/internal/database/seed_shop.go @@ -20,11 +20,11 @@ func seedShopData(db *gorm.DB) error { // 商品分类 categories := []model.ProductCategory{ - {Name: "智能电子", Icon: "electronic", Sort: 1}, - {Name: "家居生活", Icon: "home", Sort: 2}, - {Name: "时尚服饰", Icon: "fashion", Sort: 3}, - {Name: "运动户外", Icon: "sport", Sort: 4}, - {Name: "美妆个护", Icon: "beauty", Sort: 5}, + {Name: "Smart Electronics", Icon: "electronic", Sort: 1}, + {Name: "Home & Living", Icon: "home", Sort: 2}, + {Name: "Fashion & Apparel", Icon: "fashion", Sort: 3}, + {Name: "Sports & Outdoors", Icon: "sport", Sort: 4}, + {Name: "Beauty & Personal Care", Icon: "beauty", Sort: 5}, } for i := range categories { if err := db.Create(&categories[i]).Error; err != nil { @@ -35,32 +35,32 @@ func seedShopData(db *gorm.DB) error { // 商品数据 products := []model.Product{ // 智能电子 - {Name: "无线降噪蓝牙耳机 Pro Max", Description: "主动降噪技术,40 小时超长续航,蓝牙 5.3 芯片,搭载 13mm 动圈单元,Hi-Res 认证音质。支持双设备连接,IPX5 防水等级,适合运动和通勤场景。", Price: 79.99, OriginalPrice: 129.99, CategoryID: 1, Stock: 500, Rating: 4.8, Sales: 12800, Tags: `["热销","新品","限时折扣"]`, Sort: 1, Status: 1}, - {Name: "4K 智能投影仪 Home Cinema", Description: "原生 4K 分辨率,3000 ANSI 流明高亮,支持 HDR10+ 和 Dolby Vision。内置 Android TV 系统,自动梯形校正,支持 5G WiFi。家庭影院级体验。", Price: 399.99, OriginalPrice: 599.99, CategoryID: 1, Stock: 200, Rating: 4.7, Sales: 3600, Tags: `["爆款","4K超清"]`, Sort: 2, Status: 1}, - {Name: "智能手表 GT Series 5", Description: "1.43 英寸 AMOLED 高清屏,14 天超长续航,支持 100+ 运动模式,血氧心率实时监测,5ATM 防水。蓝牙通话,NFC 支付,智能通知推送。", Price: 149.99, OriginalPrice: 229.99, CategoryID: 1, Stock: 800, Rating: 4.9, Sales: 25600, Tags: `["热销","健康监测"]`, Sort: 3, Status: 1}, - {Name: "便携式充电宝 20000mAh", Description: "20000mAh 大容量,PD 65W 快充,可为笔记本充电。支持三设备同时充电,LED 数字显示,航空安全认证,随身携带无忧。", Price: 39.99, OriginalPrice: 59.99, CategoryID: 1, Stock: 1200, Rating: 4.6, Sales: 45000, Tags: `["性价比","快充"]`, Sort: 4, Status: 1}, - {Name: "机械键盘 RGB 背光版", Description: "客制化热插拔轴体,PBT 双色注塑键帽,RGB 1680 万色背光,Type-C 有线连接,全键无冲设计。游戏办公两相宜。", Price: 59.99, OriginalPrice: 89.99, CategoryID: 1, Stock: 600, Rating: 4.7, Sales: 8900, Tags: `["游戏","机械轴"]`, Sort: 5, Status: 1}, + {Name: "Wireless Noise-Canceling Bluetooth Headphones Pro Max", Description: "Active noise cancellation technology, 40-hour ultra-long battery life, Bluetooth 5.3 chip, equipped with 13mm dynamic drivers, Hi-Res certified audio quality. Supports dual-device connection, IPX5 waterproof rating, perfect for sports and commuting.", Price: 79.99, OriginalPrice: 129.99, CategoryID: 1, Stock: 500, Rating: 4.8, Sales: 12800, Tags: `["Best Seller","New","Limited Discount"]`, Sort: 1, Status: 1}, + {Name: "4K Smart Projector Home Cinema", Description: "Native 4K resolution, 3000 ANSI lumens high brightness, supports HDR10+ and Dolby Vision. Built-in Android TV system, automatic keystone correction, supports 5G WiFi. Home theater level experience.", Price: 399.99, OriginalPrice: 599.99, CategoryID: 1, Stock: 200, Rating: 4.7, Sales: 3600, Tags: `["Hot Item","4K Ultra HD"]`, Sort: 2, Status: 1}, + {Name: "Smart Watch GT Series 5", Description: "1.43-inch AMOLED HD display, 14-day ultra-long battery life, supports 100+ sport modes, real-time blood oxygen and heart rate monitoring, 5ATM waterproof. Bluetooth calling, NFC payment, smart notification push.", Price: 149.99, OriginalPrice: 229.99, CategoryID: 1, Stock: 800, Rating: 4.9, Sales: 25600, Tags: `["Best Seller","Health Monitoring"]`, Sort: 3, Status: 1}, + {Name: "Portable Power Bank 20000mAh", Description: "20000mAh large capacity, PD 65W fast charging, can charge laptops. Supports simultaneous charging of three devices, LED digital display, aviation safety certified, carry with confidence.", Price: 39.99, OriginalPrice: 59.99, CategoryID: 1, Stock: 1200, Rating: 4.6, Sales: 45000, Tags: `["Best Value","Fast Charging"]`, Sort: 4, Status: 1}, + {Name: "Mechanical Keyboard RGB Backlit Edition", Description: "Customizable hot-swappable switches, PBT double-shot keycaps, RGB 16.8 million color backlight, Type-C wired connection, full key anti-ghosting design. Perfect for both gaming and office use.", Price: 59.99, OriginalPrice: 89.99, CategoryID: 1, Stock: 600, Rating: 4.7, Sales: 8900, Tags: `["Gaming","Mechanical Switch"]`, Sort: 5, Status: 1}, // 家居生活 - {Name: "智能扫地机器人 L10 Pro", Description: "激光导航精准建图,4000Pa 强力吸尘,自动集尘基站,拖扫一体。APP 远程控制,支持多楼层地图,280 分钟超长续航。", Price: 299.99, OriginalPrice: 449.99, CategoryID: 2, Stock: 300, Rating: 4.8, Sales: 6700, Tags: `["热销","激光导航"]`, Sort: 1, Status: 1}, - {Name: "空气炸锅 5.5L 大容量", Description: "5.5L 大容量,360° 热风循环,无油健康烹饪。8 种预设菜单,可视化窗口,触控面板,拆卸清洗方便。一锅多用。", Price: 69.99, OriginalPrice: 99.99, CategoryID: 2, Stock: 900, Rating: 4.7, Sales: 18900, Tags: `["爆款","无油烹饪"]`, Sort: 2, Status: 1}, - {Name: "记忆棉颈椎枕", Description: "航天级记忆棉材质,人体工学曲线设计,有效缓解颈椎压力。透气亲肤面料,可拆卸水洗,适合各睡姿人群。", Price: 29.99, OriginalPrice: 49.99, CategoryID: 2, Stock: 1500, Rating: 4.6, Sales: 23000, Tags: `["舒适","护颈"]`, Sort: 3, Status: 1}, - {Name: "智能香薰加湿器", Description: "超声波雾化技术,7 色氛围灯,静音运行低于 30dB,4L 大容量水箱,定时功能。支持精油香薰,营造舒适居家氛围。", Price: 34.99, OriginalPrice: 54.99, CategoryID: 2, Stock: 700, Rating: 4.5, Sales: 11200, Tags: `["氛围","静音"]`, Sort: 4, Status: 1}, + {Name: "Smart Robot Vacuum Cleaner L10 Pro", Description: "LiDAR navigation precise mapping, 4000Pa powerful suction, automatic dust collection base, vacuum and mop combo. APP remote control, supports multi-floor mapping, 280-minute ultra-long battery life.", Price: 299.99, OriginalPrice: 449.99, CategoryID: 2, Stock: 300, Rating: 4.8, Sales: 6700, Tags: `["Best Seller","LiDAR Navigation"]`, Sort: 1, Status: 1}, + {Name: "Air Fryer 5.5L Large Capacity", Description: "5.5L large capacity, 360° hot air circulation, oil-free healthy cooking. 8 preset menus, transparent viewing window, touch panel, easy to disassemble and clean. Multi-purpose appliance.", Price: 69.99, OriginalPrice: 99.99, CategoryID: 2, Stock: 900, Rating: 4.7, Sales: 18900, Tags: `["Hot Item","Oil-Free Cooking"]`, Sort: 2, Status: 1}, + {Name: "Memory Foam Cervical Pillow", Description: "Aerospace-grade memory foam material, ergonomic curve design, effectively relieves cervical spine pressure. Breathable skin-friendly fabric, removable and washable, suitable for all sleeping positions.", Price: 29.99, OriginalPrice: 49.99, CategoryID: 2, Stock: 1500, Rating: 4.6, Sales: 23000, Tags: `["Comfort","Neck Support"]`, Sort: 3, Status: 1}, + {Name: "Smart Aroma Diffuser Humidifier", Description: "Ultrasonic atomization technology, 7-color ambient light, quiet operation below 30dB, 4L large capacity water tank, timer function. Supports essential oil aromatherapy, creates a cozy home atmosphere.", Price: 34.99, OriginalPrice: 54.99, CategoryID: 2, Stock: 700, Rating: 4.5, Sales: 11200, Tags: `["Ambient","Silent"]`, Sort: 4, Status: 1}, // 时尚服饰 - {Name: "纯棉重磅 T恤", Description: "280g 重磅纯棉面料,质感挺括不易变形,落肩宽松版型,多色可选。胸前印花设计,街头潮流风格。", Price: 19.99, OriginalPrice: 34.99, CategoryID: 3, Stock: 2000, Rating: 4.6, Sales: 56000, Tags: `["热销","纯棉"]`, Sort: 1, Status: 1}, - {Name: "防晒速干运动套装", Description: "UPF50+ 专业防晒,冰丝速干面料,透气排汗。含防晒衣 + 运动裤,适合户外运动、徒步旅行。男女同款。", Price: 49.99, OriginalPrice: 79.99, CategoryID: 3, Stock: 1000, Rating: 4.7, Sales: 15600, Tags: `["防晒","速干"]`, Sort: 2, Status: 1}, - {Name: "真皮商务皮带", Description: "头层牛皮材质,自动扣设计,简约商务风格。耐用不易断裂,多尺寸可选,送礼自用皆宜。精美礼盒包装。", Price: 24.99, OriginalPrice: 44.99, CategoryID: 3, Stock: 800, Rating: 4.5, Sales: 9300, Tags: `["真皮","商务"]`, Sort: 3, Status: 1}, + {Name: "Premium Heavyweight Cotton T-Shirt", Description: "280g heavyweight cotton fabric, structured and shape-retaining, drop-shoulder relaxed fit, available in multiple colors. Front print design, streetwear style.", Price: 19.99, OriginalPrice: 34.99, CategoryID: 3, Stock: 2000, Rating: 4.6, Sales: 56000, Tags: `["Best Seller","100% Cotton"]`, Sort: 1, Status: 1}, + {Name: "UV Protection Quick-Dry Sports Set", Description: "UPF50+ professional sun protection, ice silk quick-dry fabric, breathable and moisture-wicking. Includes sun protection jacket + sports pants, suitable for outdoor activities and hiking. Unisex design.", Price: 49.99, OriginalPrice: 79.99, CategoryID: 3, Stock: 1000, Rating: 4.7, Sales: 15600, Tags: `["UV Protection","Quick-Dry"]`, Sort: 2, Status: 1}, + {Name: "Genuine Leather Business Belt", Description: "Top-grain cowhide leather, automatic buckle design, minimalist business style. Durable and resistant to breakage, available in multiple sizes, suitable for gifts or personal use. Elegant gift box packaging.", Price: 24.99, OriginalPrice: 44.99, CategoryID: 3, Stock: 800, Rating: 4.5, Sales: 9300, Tags: `["Genuine Leather","Business"]`, Sort: 3, Status: 1}, // 运动户外 - {Name: "专业登山背包 45L", Description: "45L 大容量,防泼水面料,人体工学背负系统,减压透气背板。多隔层设计,含防雨罩,适合长途徒步和登山。", Price: 89.99, OriginalPrice: 139.99, CategoryID: 4, Stock: 400, Rating: 4.8, Sales: 5400, Tags: `["专业","大容量"]`, Sort: 1, Status: 1}, - {Name: "瑜伽垫加厚防滑", Description: "TPE 环保材质,8mm 加厚,双面防滑设计,回弹力强。自带对齐辅助线,附绑带和收纳袋。适合瑜伽、健身、冥想。", Price: 22.99, OriginalPrice: 39.99, CategoryID: 4, Stock: 1200, Rating: 4.7, Sales: 21000, Tags: `["环保","防滑"]`, Sort: 2, Status: 1}, - {Name: "智能跳绳计数器", Description: "内置高精度传感器,自动计数跳绳次数,蓝牙连接 APP 记录运动数据。钢丝绳可调节长度,防滑手柄,静音轴承。", Price: 14.99, OriginalPrice: 24.99, CategoryID: 4, Stock: 2000, Rating: 4.5, Sales: 34000, Tags: `["智能","性价比"]`, Sort: 3, Status: 1}, + {Name: "Professional Hiking Backpack 45L", Description: "45L large capacity, water-resistant fabric, ergonomic carrying system, pressure-reducing breathable back panel. Multi-compartment design, includes rain cover, suitable for long-distance hiking and mountaineering.", Price: 89.99, OriginalPrice: 139.99, CategoryID: 4, Stock: 400, Rating: 4.8, Sales: 5400, Tags: `["Professional","Large Capacity"]`, Sort: 1, Status: 1}, + {Name: "Thickened Non-Slip Yoga Mat", Description: "TPE eco-friendly material, 8mm thickened, dual-sided non-slip design, strong resilience. Includes alignment guide lines, carrying strap and storage bag. Suitable for yoga, fitness, and meditation.", Price: 22.99, OriginalPrice: 39.99, CategoryID: 4, Stock: 1200, Rating: 4.7, Sales: 21000, Tags: `["Eco-Friendly","Non-Slip"]`, Sort: 2, Status: 1}, + {Name: "Smart Jump Rope with Counter", Description: "Built-in high-precision sensor, automatic jump counting, Bluetooth connection to APP for exercise data tracking. Adjustable steel wire rope length, non-slip handle, silent bearings.", Price: 14.99, OriginalPrice: 24.99, CategoryID: 4, Stock: 2000, Rating: 4.5, Sales: 34000, Tags: `["Smart","Best Value"]`, Sort: 3, Status: 1}, // 美妆个护 - {Name: "声波电动牙刷套装", Description: "31000 次/分声波震动,5 种清洁模式,IPX7 全身防水,30 秒换区提醒。含 4 个刷头 + 旅行盒,续航 60 天。", Price: 27.99, OriginalPrice: 49.99, CategoryID: 5, Stock: 1000, Rating: 4.7, Sales: 27800, Tags: `["热销","防水"]`, Sort: 1, Status: 1}, - {Name: "纳米离子面部美容仪", Description: "纳米离子导入导出技术,冷热双效护理,红蓝光模式。深层清洁 + 营养导入 + 紧致提升,三合一护肤方案。", Price: 119.99, OriginalPrice: 199.99, CategoryID: 5, Stock: 300, Rating: 4.6, Sales: 4200, Tags: `["美容","三合一"]`, Sort: 2, Status: 1}, - {Name: "氨基酸洁面泡沫", Description: "温和氨基酸配方,深层清洁不紧绷,泡沫绵密细腻。含玻尿酸和烟酰胺,洁面同时保湿亮肤。150ml 大容量。", Price: 12.99, OriginalPrice: 19.99, CategoryID: 5, Stock: 3000, Rating: 4.8, Sales: 67000, Tags: `["温和","保湿"]`, Sort: 3, Status: 1}, + {Name: "Sonic Electric Toothbrush Set", Description: "31,000 sonic vibrations per minute, 5 cleaning modes, IPX7 full-body waterproof, 30-second interval reminder. Includes 4 brush heads + travel case, 60-day battery life.", Price: 27.99, OriginalPrice: 49.99, CategoryID: 5, Stock: 1000, Rating: 4.7, Sales: 27800, Tags: `["Best Seller","Waterproof"]`, Sort: 1, Status: 1}, + {Name: "Nano Ionic Facial Beauty Device", Description: "Nano ionic import and export technology, hot and cold dual-effect care, red and blue light modes. Deep cleansing + nutrient infusion + firming, 3-in-1 skincare solution.", Price: 119.99, OriginalPrice: 199.99, CategoryID: 5, Stock: 300, Rating: 4.6, Sales: 4200, Tags: `["Beauty","3-in-1"]`, Sort: 2, Status: 1}, + {Name: "Amino Acid Cleansing Foam", Description: "Gentle amino acid formula, deep cleansing without tightness, dense and fine foam. Contains hyaluronic acid and niacinamide, cleanses while moisturizing and brightening skin. 150ml large capacity.", Price: 12.99, OriginalPrice: 19.99, CategoryID: 5, Stock: 3000, Rating: 4.8, Sales: 67000, Tags: `["Gentle","Moisturizing"]`, Sort: 3, Status: 1}, } for i := range products { if err := db.Create(&products[i]).Error; err != nil {