log更新

This commit is contained in:
2025-08-06 09:27:44 +08:00
parent fad2b2d1c8
commit c2a941d4f5
2 changed files with 142 additions and 129 deletions
+66 -22
View File
@@ -3,28 +3,72 @@
### 程序框架
```angular2html
intelligence_system/
├── config/ # 配置管理
│ ├── __init__.py
│ ├── settings.py # 全局参数
│ └── logging.conf # 日志配置
├── collectors/ # 数据采集
│ ├── news_api.py
── complaint_spider.py
├── processors/ # 数据处理
├── text_processor.py
── image_processor.py
├── storage/ # 数据存储
├── database.py
│ └── cache_manager.py
├── applications/ # 应用层
│ ├── reporter/
│ │ ├── daily.py
│ └── monthly.py
└── alert.py
├── utils/ # 工具类
├── logger.py
── network.py
└── main.py # 调度入口
├── config/ # 系统配置中心
│ ├── __init__.py # 配置包初始化
│ ├── settings.py # 主配置文件(数据库连接、API密钥等)
│ └── scheduler_rules.yaml # 任务调度规则
├── data_collection/ # 数据采集层
── spiders/ # 网络爬虫子系统
│ │ ├── weibo_spider.py # 黑猫爬虫
── api_integration/ # API接口子系统
│ │ ├── news_api.py # 新闻接口
│ └── internal/ # 内部数据收集
│ ├── jian_dao_cloud.py # 简道云表单收集器
├── data_processing/ # 数据处理层
├── structured/ # 结构化数据处理
│ ├── data_cleaner.py # 数据清洗(去重/标准化)
└── schema_mapper.py # 数据结构转换器
── unstructured/ # 非结构化数据处理
│ │ ├── text_parser.py # 文本解析(PDF/HTML等)
│ │ ├── image_analyzer.py # 图像识别(OpenCV集成)
│ │ └── video_processor.py # 音视频分离分析
│ │
│ └── ai_engine/ # AI分析核心
│ ├── nlp_processor.py # 自然语言处理引擎
│ ├── sentiment_analyzer.py # 情感分析模型
│ └── topic_modeler.py # LDA主题建模工具
├── storage/ # 数据存储层
│ ├── mysql_agent.py # MySQL读写管理器
│ └── query_builder.py # SQL动态构建器
├── services/ # 应用服务层
│ ├── monitoring/ # 舆情监控
│ │ ├── opinion_monitor.py # 实时舆情追踪
│ │ └── brand_reputation.py # 品牌口碑分析
│ │
│ ├── analysis/ # 竞品分析
│ │ ├── competitor_tracker.py # 竞品动态监控
│ │ └── swot_generator.py # SWOT分析报告
│ │
│ ├── reporting/ # 报告服务
│ │ ├── daily_reporter.py # 自动化日报生成
│ │ └── weekly_digest.py # 周报汇编系统
│ │
│ └── alert/ # 预警服务
│ ├── alert_trigger.py # 动态阈值告警
│ └── notification_center.py # 邮件/短信通知
├── system_management/ # 系统管理层
│ ├── scheduler/ # 任务调度
│ │ ├── task_scheduler.py # 分布式任务调度器
│ │ └── cron_manager.py # 定时规则配置
│ │
│ └── monitor/ # 系统监控
│ ├── health_monitor.py # 服务健康检测
│ └── performance_watcher.py # 资源占用监控
├── utils/ # 工具库
│ ├── file_handler.py # 通用文件操作
│ ├── logger.py # 日志系统
│ └── datetime_parser.py # 时间格式处理
└── main.py # 系统入口(启动所有服务)
```
### 程序设计原则
1. 所有程序尽可能在py文件中运行,尽量避免使用命令行执行