From 6d13da4cc217a72f26855fc5b4d55b68f0c6df9a Mon Sep 17 00:00:00 2001 From: wsy182 <2392948297@qq.com> Date: Thu, 12 Mar 2026 10:24:57 +0800 Subject: [PATCH] =?UTF-8?q?refactor(project):=20=E9=87=8D=E6=9E=84?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=BB=93=E6=9E=84=E5=B9=B6=E6=B8=85=E7=90=86?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将业务对象抽取到model包下 - 数据库实体移到model包下 - 删除wits_sample.txt示例数据文件 - 更新requirements.md文档结构 --- app/__init__.py | 0 mqtt_mock.py => app/mqtt_mock.py | 0 mqtt_sender.py => app/mqtt_sender.py | 0 mqtt_subscriber.py => app/mqtt_subscriber.py | 0 wits_sender.py => app/wits_sender.py | 0 data/wits_sample.txt | 47 -------------------- install.bat | 1 - model/__init__.py | 0 requirements.md | 6 ++- 9 files changed, 5 insertions(+), 49 deletions(-) create mode 100644 app/__init__.py rename mqtt_mock.py => app/mqtt_mock.py (100%) rename mqtt_sender.py => app/mqtt_sender.py (100%) rename mqtt_subscriber.py => app/mqtt_subscriber.py (100%) rename wits_sender.py => app/wits_sender.py (100%) delete mode 100644 data/wits_sample.txt delete mode 100644 install.bat create mode 100644 model/__init__.py diff --git a/app/__init__.py b/app/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/mqtt_mock.py b/app/mqtt_mock.py similarity index 100% rename from mqtt_mock.py rename to app/mqtt_mock.py diff --git a/mqtt_sender.py b/app/mqtt_sender.py similarity index 100% rename from mqtt_sender.py rename to app/mqtt_sender.py diff --git a/mqtt_subscriber.py b/app/mqtt_subscriber.py similarity index 100% rename from mqtt_subscriber.py rename to app/mqtt_subscriber.py diff --git a/wits_sender.py b/app/wits_sender.py similarity index 100% rename from wits_sender.py rename to app/wits_sender.py diff --git a/data/wits_sample.txt b/data/wits_sample.txt deleted file mode 100644 index d7985df..0000000 --- a/data/wits_sample.txt +++ /dev/null @@ -1,47 +0,0 @@ -&& -01GJ-304-0088 -020 -030 -041 -0520250312.00 -6120000.00 -70 -80.00 -90.00 -100.00 -110.00 -120.00 -130.00 -140.00 -150.00 -160.00 -170.00 -180.00 -190.00 -200 -210.00 -220.00 -230 -240 -250 -260.00 -270.00 -280 -290.00 -300.00 -310.00 -320.00 -330.00 -340.00 -350.00 -360.00 -370 -380 -390.00 -400.00 -410.00 -420.00 -430.00 -440.00 -450.00 -!! diff --git a/install.bat b/install.bat deleted file mode 100644 index d2a62d3..0000000 --- a/install.bat +++ /dev/null @@ -1 +0,0 @@ -pip install pyyaml paho-mqtt \ No newline at end of file diff --git a/model/__init__.py b/model/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/requirements.md b/requirements.md index f109e5b..9b25aec 100644 --- a/requirements.md +++ b/requirements.md @@ -18,4 +18,8 @@ ## 要求 -程序启动入口main.py,使用logging记录日志。 \ No newline at end of file +程序启动入口main.py,使用logging记录日志。 + +将业务对象抽取到model包下。 + +数据库实体放在model包下。 \ No newline at end of file