- cms/: Python包(合并原entcms+dingdingflow) - init.py: 791行,load_cms()注册所有CRUD+审批函数 - dingtalk_client.py: 钉钉API客户端 - models/: 7个表定义JSON(5个CMS+2个DD) - json/: 7个CRUD定义JSON - wwwroot/: 管理后台CRUD页面和API(37个dspy) - init/data.yaml: 模块初始数据(appcodes/appcodes_kv/分类/栏目/配置) - scripts/load_path.py: RBAC权限配置 - pyproject.toml: pip-installable包定义 - 删除: app/, conf/, build.sh, entcms/, dingdingflow/等webapp文件 - 数据库访问统一为DBPools()+_get_dbname()动态模式
296 lines
6.6 KiB
YAML
296 lines
6.6 KiB
YAML
appcodes:
|
||
- id: content_type
|
||
name: 内容类型
|
||
hierarchy_flg: 0
|
||
- id: content_status
|
||
name: 内容状态
|
||
hierarchy_flg: 0
|
||
- id: lead_status
|
||
name: 线索状态
|
||
hierarchy_flg: 0
|
||
- id: lead_source
|
||
name: 线索来源
|
||
hierarchy_flg: 0
|
||
- id: config_type
|
||
name: 配置类型
|
||
hierarchy_flg: 0
|
||
- id: approval_status
|
||
name: 审批状态
|
||
hierarchy_flg: 0
|
||
|
||
appcodes_kv:
|
||
# content_type
|
||
- id: content_type_news
|
||
parentid: content_type
|
||
k: news
|
||
v: 新闻
|
||
- id: content_type_case
|
||
parentid: content_type
|
||
k: case
|
||
v: 案例
|
||
- id: content_type_product
|
||
parentid: content_type
|
||
k: product
|
||
v: 产品
|
||
- id: content_type_banner
|
||
parentid: content_type
|
||
k: banner
|
||
v: Banner
|
||
|
||
# content_status
|
||
- id: content_status_draft
|
||
parentid: content_status
|
||
k: draft
|
||
v: 草稿
|
||
- id: content_status_pending
|
||
parentid: content_status
|
||
k: pending
|
||
v: 待审批
|
||
- id: content_status_approved
|
||
parentid: content_status
|
||
k: approved
|
||
v: 已审批
|
||
- id: content_status_published
|
||
parentid: content_status
|
||
k: published
|
||
v: 已发布
|
||
- id: content_status_rejected
|
||
parentid: content_status
|
||
k: rejected
|
||
v: 已拒绝
|
||
|
||
# lead_status
|
||
- id: lead_status_new
|
||
parentid: lead_status
|
||
k: new
|
||
v: 新线索
|
||
- id: lead_status_contacted
|
||
parentid: lead_status
|
||
k: contacted
|
||
v: 已联系
|
||
- id: lead_status_qualified
|
||
parentid: lead_status
|
||
k: qualified
|
||
v: 已确认
|
||
- id: lead_status_converted
|
||
parentid: lead_status
|
||
k: converted
|
||
v: 已转化
|
||
- id: lead_status_closed
|
||
parentid: lead_status
|
||
k: closed
|
||
v: 已关闭
|
||
|
||
# lead_source
|
||
- id: lead_source_website
|
||
parentid: lead_source
|
||
k: website
|
||
v: 官网
|
||
- id: lead_source_referral
|
||
parentid: lead_source
|
||
k: referral
|
||
v: 转介绍
|
||
- id: lead_source_event
|
||
parentid: lead_source
|
||
k: event
|
||
v: 活动
|
||
- id: lead_source_ai_extract
|
||
parentid: lead_source
|
||
k: ai_extract
|
||
v: AI抽取
|
||
|
||
# config_type
|
||
- id: config_type_text
|
||
parentid: config_type
|
||
k: text
|
||
v: 文本
|
||
- id: config_type_html
|
||
parentid: config_type
|
||
k: html
|
||
v: HTML
|
||
- id: config_type_json
|
||
parentid: config_type
|
||
k: json
|
||
v: JSON
|
||
- id: config_type_image
|
||
parentid: config_type
|
||
k: image
|
||
v: 图片
|
||
|
||
# approval_status
|
||
- id: approval_status_pending
|
||
parentid: approval_status
|
||
k: pending
|
||
v: 待审批
|
||
- id: approval_status_approved
|
||
parentid: approval_status
|
||
k: approved
|
||
v: 已通过
|
||
- id: approval_status_rejected
|
||
parentid: approval_status
|
||
k: rejected
|
||
v: 已拒绝
|
||
- id: approval_status_cancelled
|
||
parentid: approval_status
|
||
k: cancelled
|
||
v: 已取消
|
||
|
||
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 智能体服务平台", "slogan": "一个平台,千行百业 智能跃迁", "subtitle": "基于东数西算国家战略,打造新一代AI智能体服务平台", "btn_primary": "联系销售", "btn_secondary": "了解产品架构"}'
|
||
- 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"}'
|
||
- 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"}'
|
||
- 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"}'
|
||
- 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)"}'
|
||
- 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"}'
|
||
|
||
dd_approval_configs:
|
||
- id: apvcfg_content_publish
|
||
org_id: "0"
|
||
biz_type: content_publish
|
||
biz_type_title: 内容发布审批
|
||
process_code: ""
|
||
agent_id: ""
|
||
form_config: '[{"name": "审批类型", "value": "内容发布"}]'
|
||
is_active: "1"
|