refactor(services): 重构服务文件结构,将服务按功能分类到不同目录
- 将服务文件按功能分类到core、ai、analytics、security等目录 - 修复logger导入路径问题,统一使用相对路径 - 更新相关文件的导入路径引用 - 添加新的批量操作组件导出文件 - 修复dashboard页面中的类型错误 - 添加dotenv依赖到package.json
This commit is contained in:
@@ -18,6 +18,7 @@ import {
|
||||
RobotOutlined,
|
||||
AppstoreOutlined,
|
||||
LineChartOutlined,
|
||||
CloudServerOutlined,
|
||||
SafetyOutlined,
|
||||
CrownOutlined,
|
||||
SwapOutlined,
|
||||
@@ -141,7 +142,12 @@ const ALL_MENU_ITEMS: CustomMenuItem[] = [
|
||||
children: [
|
||||
{ key: '/dashboard/merchant', label: <Link to="/dashboard/merchant">商户管理</Link> },
|
||||
{ key: '/dashboard/b2b', label: <Link to="/dashboard/b2b">B2B贸易</Link> },
|
||||
{ key: '/dashboard/b2b/batch-order', label: <Link to="/dashboard/b2b/batch-order">批量订单</Link> },
|
||||
{ key: '/dashboard/b2b/enterprise-quote', label: <Link to="/dashboard/b2b/enterprise-quote">企业报价</Link> },
|
||||
{ key: '/dashboard/b2b/contract-manage', label: <Link to="/dashboard/b2b/contract-manage">合同管理</Link> },
|
||||
{ key: '/dashboard/procurement', label: <Link to="/dashboard/procurement">采购管理</Link> },
|
||||
{ key: '/dashboard/suppliers', label: <Link to="/dashboard/suppliers">供应商</Link> },
|
||||
{ key: '/dashboard/warehouse', label: <Link to="/dashboard/warehouse">仓库库存</Link> },
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -151,6 +157,11 @@ const ALL_MENU_ITEMS: CustomMenuItem[] = [
|
||||
requiredFeature: FEATURES.INDEPENDENT_SITE,
|
||||
children: [
|
||||
{ key: '/dashboard/independent-site', label: <Link to="/dashboard/independent-site">站点管理</Link> },
|
||||
{ key: '/dashboard/independent-site/create', label: <Link to="/dashboard/independent-site/create">创建站点</Link> },
|
||||
{ key: '/dashboard/independent-site/templates', label: <Link to="/dashboard/independent-site/templates">站点模板</Link> },
|
||||
{ key: '/dashboard/independent-site/analytics', label: <Link to="/dashboard/independent-site/analytics">站点分析</Link> },
|
||||
{ key: '/dashboard/independent-site/orders', label: <Link to="/dashboard/independent-site/orders">独立站订单</Link> },
|
||||
{ key: '/dashboard/independent-site/products', label: <Link to="/dashboard/independent-site/products">独立站商品</Link> },
|
||||
{ key: '/dashboard/independent-site/domains', label: <Link to="/dashboard/independent-site/domains">域名管理</Link> },
|
||||
],
|
||||
},
|
||||
@@ -159,9 +170,20 @@ const ALL_MENU_ITEMS: CustomMenuItem[] = [
|
||||
icon: <SafetyOutlined />,
|
||||
label: '风控合规',
|
||||
children: [
|
||||
{ key: '/dashboard/compliance', label: <Link to="/dashboard/compliance">合规概览</Link> },
|
||||
{ key: '/dashboard/blacklist', label: <Link to="/dashboard/blacklist">风险监控</Link> },
|
||||
{ key: '/dashboard/compliance', label: <Link to="/dashboard/compliance">合规检查</Link> },
|
||||
{ key: '/dashboard/audit', label: <Link to="/dashboard/audit">审计日志</Link> },
|
||||
{ key: '/dashboard/governance', label: <Link to="/dashboard/governance">治理中心</Link> },
|
||||
{ key: '/dashboard/sovereignty', label: <Link to="/dashboard/sovereignty">主权管理</Link> },
|
||||
{ key: '/dashboard/compliance/certificates', label: <Link to="/dashboard/compliance/certificates">证书管理</Link> },
|
||||
{ key: '/dashboard/blacklist', label: <Link to="/dashboard/blacklist">黑名单</Link> },
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'cloud-management',
|
||||
icon: <CloudServerOutlined />,
|
||||
label: '云服务器管理',
|
||||
children: [
|
||||
{ key: '/operation-agent-enhanced', label: <Link to="/operation-agent-enhanced">云服务器管理</Link> },
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user