feat: 数据库种子数据全部翻译为英语
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user