cms/entcms/init/data.json
yumoqing 52f4632dfc feat: 角色权限体系 + 栏目管理
1. 角色体系(owner企业类型):
   - superuser: 超级用户(继承全部权限)
   - webmaster: 内容管理员(CRUD全部内容/分类/栏目/配置/线索)
   - reviewer: 内容审核(查看内容+审批状态更新)
   - supervisor: 主管(只读全部+线索管理+审批)
   - customer-support: 客服(线索查看和更新)
   - anonymous: 匿名用户(公开页面+提交线索)

2. 超级用户初始化脚本(scripts/init_superuser.py)
   - 默认: admin/admin123
   - 自动创建用户+分配owner.superuser角色

3. cms_sections栏目管理表:
   - section_key: 栏目标识(hero/products/cases/news/cta/footer/float)
   - display_config: 展示配置JSON(布局/列数/悬停效果)
   - style_config: 样式配置JSON(颜色/渐变/边框)
   - static_content: 静态内容(Hero标语/产品卡片/CTA文案)
   - is_visible: 显示/隐藏控制
   - sort_order: 栏目排序

4. cms_categories增加display_config字段(分类展示风格)

5. 初始化6个栏目数据(Hero/产品/案例/新闻/页脚/浮动入口)

6. 更新菜单和管理后台增加栏目管理入口
2026-05-27 16:57:00 +08:00

198 lines
9.0 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"cms_categories": [
{
"id": "cat_product_platform",
"org_id": "0",
"name": "AI平台",
"content_type": "product",
"sort_order": 1
},
{
"id": "cat_product_model",
"org_id": "0",
"name": "行业模型",
"content_type": "product",
"sort_order": 2
},
{
"id": "cat_product_agent",
"org_id": "0",
"name": "智能体",
"content_type": "product",
"sort_order": 3
},
{
"id": "cat_case_mfg",
"org_id": "0",
"name": "智能制造",
"content_type": "case",
"sort_order": 1
},
{
"id": "cat_case_finance",
"org_id": "0",
"name": "金融科技",
"content_type": "case",
"sort_order": 2
},
{
"id": "cat_case_healthcare",
"org_id": "0",
"name": "医疗健康",
"content_type": "case",
"sort_order": 3
},
{
"id": "cat_case_education",
"org_id": "0",
"name": "教育培训",
"content_type": "case",
"sort_order": 4
},
{
"id": "cat_news_company",
"org_id": "0",
"name": "公司动态",
"content_type": "news",
"sort_order": 1
},
{
"id": "cat_news_industry",
"org_id": "0",
"name": "行业资讯",
"content_type": "news",
"sort_order": 2
},
{
"id": "cat_news_product",
"org_id": "0",
"name": "产品更新",
"content_type": "news",
"sort_order": 3
}
],
"cms_site_config": [
{
"id": "cfg_hero_slogan",
"org_id": "0",
"config_group": "hero",
"config_key": "slogan",
"config_value": "一个平台,千行百业 智能跃迁",
"config_type": "text"
},
{
"id": "cfg_hero_subtitle",
"org_id": "0",
"config_group": "hero",
"config_key": "subtitle",
"config_value": "基于东数西算国家战略打造新一代AI智能体服务平台",
"config_type": "text"
},
{
"id": "cfg_hero_tag",
"org_id": "0",
"config_group": "hero",
"config_key": "tag_text",
"config_value": "AI 智能体服务平台",
"config_type": "text"
},
{
"id": "cfg_footer_copyright",
"org_id": "0",
"config_group": "footer",
"config_key": "copyright",
"config_value": "© 2026 开元云科技 · 国家级高新技术企业 · 专精特新企业",
"config_type": "text"
},
{
"id": "cfg_contact_company",
"org_id": "0",
"config_group": "contact",
"config_key": "company_name",
"config_value": "开元云科技",
"config_type": "text"
}
],
"cms_sections": [
{
"id": "sec_hero",
"org_id": "0",
"section_key": "hero",
"title": "首屏Hero",
"section_type": "hero",
"content_type": "",
"sort_order": 1,
"is_visible": "1",
"display_config": "{\"layout\": \"fullscreen\", \"height\": \"100vh\", \"bg_glow\": true}",
"style_config": "{\"gradient\": \"#6C5CE7,#A29BFE,#74B9FF\", \"title_size\": \"56px\"}",
"static_content": "{\"tag_text\": \"AI \\u667a\\u80fd\\u4f53\\u670d\\u52a1\\u5e73\\u53f0\", \"slogan\": \"\\u4e00\\u4e2a\\u5e73\\u53f0\\uff0c\\u5343\\u884c\\u767e\\u4e1a \\u667a\\u80fd\\u8dc3\\u8fc1\", \"subtitle\": \"\\u57fa\\u4e8e\\u4e1c\\u6570\\u897f\\u7b97\\u56fd\\u5bb6\\u6218\\u7565\\uff0c\\u6253\\u9020\\u65b0\\u4e00\\u4ee3AI\\u667a\\u80fd\\u4f53\\u670d\\u52a1\\u5e73\\u53f0\", \"btn_primary\": \"\\u8054\\u7cfb\\u9500\\u552e\", \"btn_secondary\": \"\\u4e86\\u89e3\\u4ea7\\u54c1\\u67b6\\u6784\"}"
},
{
"id": "sec_products",
"org_id": "0",
"section_key": "products",
"title": "1+N+X 产品架构",
"subtitle": "一个AI平台 + N个行业模型 + X个智能体",
"section_type": "cards",
"content_type": "product",
"sort_order": 2,
"is_visible": "1",
"display_config": "{\"columns\": 3, \"expandable\": true, \"icon_position\": \"top\"}",
"style_config": "{\"card_bg\": \"#1A1A1A\", \"card_border\": \"#222\", \"hover_border\": \"#6C5CE7\"}",
"static_content": "{\"cards\": [{\"icon\": \"\\ud83e\\udde0\", \"title\": \"1 \\u4e2a AI \\u5e73\\u53f0\", \"desc\": \"\\u7edf\\u4e00AI\\u57fa\\u7840\\u8bbe\\u65bd\\u5e73\\u53f0\\uff0c\\u63d0\\u4f9b\\u7b97\\u529b\\u8c03\\u5ea6\\u3001\\u6a21\\u578b\\u7ba1\\u7406\\u3001\\u667a\\u80fd\\u4f53\\u7f16\\u6392\\u7b49\\u6838\\u5fc3\\u80fd\\u529b\", \"detail\": \"\\u57fa\\u4e8e\\u4e1c\\u6570\\u897f\\u7b97\\u56fd\\u5bb6\\u6218\\u7565\\u90e8\\u7f72\\uff0c\\u63d0\\u4f9b\\u9ad8\\u6027\\u80fd\\u3001\\u4f4e\\u6210\\u672c\\u7684AI\\u7b97\\u529b\\u670d\\u52a1\\u3002\"}, {\"icon\": \"\\ud83c\\udfed\", \"title\": \"N \\u4e2a\\u884c\\u4e1a\\u6a21\\u578b\", \"desc\": \"\\u9488\\u5bf9\\u5236\\u9020\\u3001\\u91d1\\u878d\\u3001\\u533b\\u7597\\u3001\\u6559\\u80b2\\u7b49\\u884c\\u4e1a\\u6df1\\u5ea6\\u5b9a\\u5236\\u7684\\u4e13\\u4e1aAI\\u6a21\\u578b\", \"detail\": \"\\u6bcf\\u4e2a\\u884c\\u4e1a\\u6a21\\u578b\\u90fd\\u7ecf\\u8fc7\\u5927\\u91cf\\u884c\\u4e1a\\u6570\\u636e\\u8bad\\u7ec3\\u548c\\u5fae\\u8c03\\uff0c\\u7406\\u89e3\\u884c\\u4e1a\\u672f\\u8bed\\u548c\\u4e1a\\u52a1\\u6d41\\u7a0b\\u3002\"}, {\"icon\": \"\\ud83e\\udd16\", \"title\": \"X \\u4e2a\\u667a\\u80fd\\u4f53\", \"desc\": \"\\u7075\\u6d3b\\u7ec4\\u5408\\u7684\\u667a\\u80fd\\u4f53\\u5e94\\u7528\\uff0c\\u8986\\u76d6\\u5ba2\\u670d\\u3001\\u5199\\u4f5c\\u3001\\u5206\\u6790\\u3001\\u7f16\\u7a0b\\u7b49\\u591a\\u79cd\\u573a\\u666f\", \"detail\": \"\\u667a\\u80fd\\u4f53\\u652f\\u6301\\u591a\\u6a21\\u6001\\u4ea4\\u4e92\\u3001\\u5de5\\u5177\\u8c03\\u7528\\u3001\\u591aAgent\\u534f\\u4f5c\\u3002\"}]}"
},
{
"id": "sec_cases",
"org_id": "0",
"section_key": "cases",
"title": "成功案例",
"subtitle": "看看AI如何改变这些行业",
"section_type": "grid",
"content_type": "case",
"sort_order": 3,
"is_visible": "1",
"display_config": "{\"columns\": 3, \"hover_effect\": \"lift\", \"show_cta\": true}",
"style_config": "{\"card_bg\": \"#1A1A1A\", \"hover_border\": \"#6C5CE7\"}",
"static_content": "{\"cta_text\": \"\\u60f3\\u4e86\\u89e3\\u8fd9\\u4e9b\\u65b9\\u6848\\u5982\\u4f55\\u843d\\u5730\\uff1f\", \"cta_btn\": \"\\u4e86\\u89e3\\u66f4\\u591a \\u2192 \\u8054\\u7cfb\\u9500\\u552e\"}"
},
{
"id": "sec_news",
"org_id": "0",
"section_key": "news",
"title": "企业动态",
"section_type": "list",
"content_type": "news",
"sort_order": 4,
"is_visible": "1",
"display_config": "{\"limit\": 2, \"show_view_all\": true}",
"style_config": "{\"item_bg\": \"#1A1A1A\", \"item_border\": \"#222\"}",
"static_content": ""
},
{
"id": "sec_footer",
"org_id": "0",
"section_key": "footer",
"title": "页脚",
"section_type": "footer",
"content_type": "",
"sort_order": 99,
"is_visible": "1",
"display_config": "{\"show_qrcode\": false}",
"style_config": "{\"border_top\": \"1px solid rgba(255,255,255,0.06)\"}",
"static_content": "{\"copyright\": \"\\u00a9 2026 \\u5f00\\u5143\\u4e91\\u79d1\\u6280 \\u00b7 \\u56fd\\u5bb6\\u7ea7\\u9ad8\\u65b0\\u6280\\u672f\\u4f01\\u4e1a \\u00b7 \\u4e13\\u7cbe\\u7279\\u65b0\\u4f01\\u4e1a\"}"
},
{
"id": "sec_float",
"org_id": "0",
"section_key": "float_contact",
"title": "浮动商机入口",
"section_type": "float",
"content_type": "",
"sort_order": 100,
"is_visible": "1",
"display_config": "{\"position\": \"fixed\", \"right\": 24, \"bottom\": 24}",
"style_config": "{\"avatar_bg\": \"linear-gradient(135deg, #6C5CE7, #A29BFE)\", \"size\": \"56px\"}",
"static_content": "{\"bubble_text\": \"\\u6709\\u4ec0\\u4e48\\u53ef\\u4ee5\\u5e2e\\u60a8\\uff1f\", \"panel_title\": \"\\u4e91\\u5b9d\\u5546\\u673a\\u52a9\\u624b\", \"options\": [\"\\u60a8\\u5bf9\\u54ea\\u4e9b\\u4ea7\\u54c1\\u611f\\u5174\\u8da3\\uff1f\", \"\\u7ed9\\u6211\\u4eec\\u7559\\u8a00\", \"\\u7559\\u4e0b\\u8054\\u7cfb\\u65b9\\u5f0f\"]}"
}
]
}