调度系统开发
This commit is contained in:
@@ -8,8 +8,8 @@ https://alidocs.dingtalk.com/i/nodes/NZQYprEoWoexdo1ohPdxXvDbJ1waOeDk?utm_scene=
|
||||
intelligence_system/
|
||||
├── config/ # 系统配置中心
|
||||
│ ├── __init__.py # 配置包初始化
|
||||
│ ├── settings.py # 主配置文件(数据库连接、API密钥等)
|
||||
│ └── scheduler_rules.yaml # 任务调度规则
|
||||
│ ├── config.py # 配置加载与管理
|
||||
│ └── constants.py # 系统常量定义
|
||||
|
||||
├── data_collection/ # 数据采集层
|
||||
│ ├── spiders/ # 网络爬虫子系统
|
||||
@@ -36,10 +36,6 @@ intelligence_system/
|
||||
│ ├── sentiment_analyzer.py # 情感分析模型
|
||||
│ └── topic_modeler.py # LDA主题建模工具
|
||||
|
||||
├── storage/ # 数据存储层
|
||||
│ ├── mysql_agent.py # MySQL读写管理器
|
||||
│ └── query_builder.py # SQL动态构建器
|
||||
|
||||
├── services/ # 应用服务层
|
||||
│ ├── monitoring/ # 舆情监控
|
||||
│ │ ├── opinion_monitor.py # 实时舆情追踪
|
||||
@@ -68,10 +64,12 @@ intelligence_system/
|
||||
├── utils/ # 工具库
|
||||
│ ├── file_handler.py # 通用文件操作
|
||||
│ ├── logger.py # 日志系统
|
||||
│ ├── mysql_agent.py # MySQL读写管理器
|
||||
│ └── datetime_parser.py # 时间格式处理
|
||||
|
||||
└── main.py # 系统入口(启动所有服务)
|
||||
```
|
||||
|
||||
### 程序设计原则
|
||||
1. 所有程序尽可能在py文件中运行,尽量避免使用命令行执行
|
||||
2. 配置需要在配置类中定义
|
||||
|
||||
Reference in New Issue
Block a user