From 1b319373576ee2639e1ff7aa1cbb4e495bfdd4a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E4=BA=91?= Date: Fri, 13 Mar 2026 14:50:31 +0800 Subject: [PATCH] =?UTF-8?q?change:=E6=B8=85=E7=90=86=E4=B8=8D=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E7=9A=84=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +- app/models/fortune/__init__.py | 4 -- app/models/fortune/face_readings.py | 36 ---------------- app/models/fortune/fortune_tellings.py | 37 ----------------- frontend/src/pages/system/LogList.vue | 2 +- logs/app/app.log | 57 ++++++++++++++++++++++++++ 6 files changed, 60 insertions(+), 79 deletions(-) delete mode 100644 app/models/fortune/face_readings.py delete mode 100644 app/models/fortune/fortune_tellings.py diff --git a/.gitignore b/.gitignore index 1779e960..9d88a2f9 100644 --- a/.gitignore +++ b/.gitignore @@ -74,4 +74,5 @@ logs/* .mypy_cache/ .lingma/ .idea/ -data/* \ No newline at end of file +data/* +/logs/* \ No newline at end of file diff --git a/app/models/fortune/__init__.py b/app/models/fortune/__init__.py index 36bfb973..11b766c7 100644 --- a/app/models/fortune/__init__.py +++ b/app/models/fortune/__init__.py @@ -8,8 +8,6 @@ from app.models.fortune.zhou_yi import ZhouYi from app.models.fortune.constellation import Constellation from app.models.fortune.fortune_telling import FortuneTelling -from app.models.fortune.face_readings import FaceReadings -from app.models.fortune.fortune_tellings import FortuneTellings __all__ = [ 'FengShui', @@ -18,6 +16,4 @@ 'ZhouYi', 'Constellation', 'FortuneTelling', - 'FaceReadings', - 'FortuneTellings', ] diff --git a/app/models/fortune/face_readings.py b/app/models/fortune/face_readings.py deleted file mode 100644 index afd53212..00000000 --- a/app/models/fortune/face_readings.py +++ /dev/null @@ -1,36 +0,0 @@ -""" -面相记录模型 -对应数据库表:face_readings -""" -from sqlalchemy import Column, String, Integer, DateTime, Float, Text -from datetime import datetime - -from app.core.database import Base - - -class FaceReading(Base): - """面相记录表""" - __tablename__ = "face_readings" - - id = Column(Integer, primary_key=True, index=True, autoincrement=True) - face_id = Column(String(50), nullable=False, unique=True, index=True, comment="面相 ID") - name = Column(String(100), nullable=False, comment="姓名") - gender = Column(String(10), nullable=False, comment="性别") - age = Column(Integer, nullable=False, comment="年龄") - face_shape = Column(String(50), nullable=False, comment="脸型") - forehead_type = Column(String(50), nullable=True, comment="额头类型") - eyebrow_type = Column(String(50), nullable=True, comment="眉毛类型") - eye_type = Column(String(50), nullable=True, comment="眼睛类型") - nose_type = Column(String(50), nullable=True, comment="鼻子类型") - mouth_type = Column(String(50), nullable=True, comment="嘴巴类型") - chin_type = Column(String(50), nullable=True, comment="下巴类型") - skin_type = Column(String(50), nullable=True, comment="皮肤类型") - personality_analysis = Column(Text, nullable=True, comment="性格分析") - career_analysis = Column(Text, nullable=True, comment="事业分析") - relationship_analysis = Column(Text, nullable=True, comment="感情分析") - health_analysis = Column(Text, nullable=True, comment="健康分析") - wealth_analysis = Column(Text, nullable=True, comment="财富分析") - luck_score = Column(Float, nullable=True, comment="运势评分") - prediction_result = Column(Text, nullable=True, comment="预测结果") - created_at = Column(DateTime, nullable=False, default=datetime.utcnow, comment="创建时间") - updated_at = Column(DateTime, nullable=True, default=datetime.utcnow, onupdate=datetime.utcnow, comment="更新时间") diff --git a/app/models/fortune/fortune_tellings.py b/app/models/fortune/fortune_tellings.py deleted file mode 100644 index 1ebadc6d..00000000 --- a/app/models/fortune/fortune_tellings.py +++ /dev/null @@ -1,37 +0,0 @@ -""" -命理预测模型 -对应数据库表:fortune_tellings -""" -from sqlalchemy import Column, String, Integer, DateTime, Float, Text -from datetime import datetime - -from app.core.database import Base - - -class FortuneTelling(Base): - """命理预测表""" - __tablename__ = "fortune_tellings" - - id = Column(Integer, primary_key=True, index=True, autoincrement=True) - fortune_id = Column(String(50), nullable=False, unique=True, index=True, comment="命理 ID") - name = Column(String(100), nullable=False, comment="姓名") - gender = Column(String(10), nullable=False, comment="性别") - birth_date = Column(DateTime, nullable=False, comment="出生日期") - birth_time = Column(String(20), nullable=True, comment="出生时间") - birth_place = Column(String(100), nullable=True, comment="出生地点") - zodiac = Column(String(20), nullable=True, comment="生肖") - constellation = Column(String(20), nullable=True, comment="星座") - five_elements = Column(String(100), nullable=True, comment="五行分析") - bazi = Column(String(200), nullable=True, comment="八字分析") - overall_luck = Column(Text, nullable=True, comment="综合运势") - career_luck = Column(Text, nullable=True, comment="事业运势") - love_luck = Column(Text, nullable=True, comment="爱情运势") - wealth_luck = Column(Text, nullable=True, comment="财富运势") - health_luck = Column(Text, nullable=True, comment="健康运势") - luck_score = Column(Float, nullable=True, comment="运势评分") - lucky_direction = Column(String(100), nullable=True, comment="吉祥方位") - lucky_colors = Column(String(100), nullable=True, comment="吉祥颜色") - lucky_numbers = Column(String(100), nullable=True, comment="吉祥数字") - prediction_result = Column(Text, nullable=True, comment="预测结果") - created_at = Column(DateTime, nullable=False, default=datetime.utcnow, comment="创建时间") - updated_at = Column(DateTime, nullable=True, default=datetime.utcnow, onupdate=datetime.utcnow, comment="更新时间") diff --git a/frontend/src/pages/system/LogList.vue b/frontend/src/pages/system/LogList.vue index 3473d78c..da4ad9e7 100644 --- a/frontend/src/pages/system/LogList.vue +++ b/frontend/src/pages/system/LogList.vue @@ -164,7 +164,7 @@ const showDetailModal = ref(false) const searchQuery = ref('') const filterType = ref('') const filterLevel = ref('') -const dateRange = ref([]) +const dateRange = ref('') const page = ref(1) const pageSize = ref(10) const total = ref(0) diff --git a/logs/app/app.log b/logs/app/app.log index eca364c6..ca4c708c 100644 --- a/logs/app/app.log +++ b/logs/app/app.log @@ -318,3 +318,60 @@ WHERE users.username = %(username_1)s 2026-03-13 14:34:13,754 - app - INFO - __init__.py:25 - Application shutdown 2026-03-13 14:34:13,755 - app - INFO - __init__.py:25 - Application shutdown 2026-03-13 14:34:13,754 - app - INFO - __init__.py:25 - Application shutdown +2026-03-13 14:39:06,729 - app - INFO - __init__.py:20 - Application startup +2026-03-13 14:39:06,731 - app - INFO - __init__.py:21 - API documentation available at /docs +2026-03-13 14:39:06,731 - app - INFO - __init__.py:22 - Static files mounted at /static +2026-03-13 14:39:06,762 - app - INFO - __init__.py:20 - Application startup +2026-03-13 14:39:06,763 - app - INFO - __init__.py:21 - API documentation available at /docs +2026-03-13 14:39:06,763 - app - INFO - __init__.py:22 - Static files mounted at /static +2026-03-13 14:39:06,826 - app - INFO - __init__.py:20 - Application startup +2026-03-13 14:39:06,827 - app - INFO - __init__.py:21 - API documentation available at /docs +2026-03-13 14:39:06,827 - app - INFO - __init__.py:22 - Static files mounted at /static +2026-03-13 14:39:06,863 - app - INFO - __init__.py:20 - Application startup +2026-03-13 14:39:06,864 - app - INFO - __init__.py:21 - API documentation available at /docs +2026-03-13 14:39:06,865 - app - INFO - __init__.py:22 - Static files mounted at /static +2026-03-13 14:39:07,151 - app - INFO - __init__.py:20 - Application startup +2026-03-13 14:39:07,152 - app - INFO - __init__.py:21 - API documentation available at /docs +2026-03-13 14:39:07,153 - app - INFO - __init__.py:22 - Static files mounted at /static +2026-03-13 14:39:07,204 - app - INFO - __init__.py:20 - Application startup +2026-03-13 14:39:07,205 - app - INFO - __init__.py:21 - API documentation available at /docs +2026-03-13 14:39:07,206 - app - INFO - __init__.py:22 - Static files mounted at /static +2026-03-13 14:39:07,294 - app - INFO - __init__.py:20 - Application startup +2026-03-13 14:39:07,296 - app - INFO - __init__.py:21 - API documentation available at /docs +2026-03-13 14:39:07,296 - app - INFO - __init__.py:20 - Application startup +2026-03-13 14:39:07,296 - app - INFO - __init__.py:22 - Static files mounted at /static +2026-03-13 14:39:07,297 - app - INFO - __init__.py:21 - API documentation available at /docs +2026-03-13 14:39:07,297 - app - INFO - __init__.py:22 - Static files mounted at /static +2026-03-13 14:39:07,305 - app - INFO - __init__.py:20 - Application startup +2026-03-13 14:39:07,306 - app - INFO - __init__.py:21 - API documentation available at /docs +2026-03-13 14:39:07,306 - app - INFO - __init__.py:22 - Static files mounted at /static +2026-03-13 14:39:07,332 - app - INFO - __init__.py:20 - Application startup +2026-03-13 14:39:07,333 - app - INFO - __init__.py:21 - API documentation available at /docs +2026-03-13 14:39:07,334 - app - INFO - __init__.py:22 - Static files mounted at /static +2026-03-13 14:39:07,349 - app - INFO - __init__.py:20 - Application startup +2026-03-13 14:39:07,350 - app - INFO - __init__.py:21 - API documentation available at /docs +2026-03-13 14:39:07,350 - app - INFO - __init__.py:22 - Static files mounted at /static +2026-03-13 14:39:07,402 - app - INFO - __init__.py:20 - Application startup +2026-03-13 14:39:07,403 - app - INFO - __init__.py:21 - API documentation available at /docs +2026-03-13 14:39:07,403 - app - INFO - __init__.py:22 - Static files mounted at /static +2026-03-13 14:39:07,455 - app - INFO - __init__.py:20 - Application startup +2026-03-13 14:39:07,456 - app - INFO - __init__.py:21 - API documentation available at /docs +2026-03-13 14:39:07,457 - app - INFO - __init__.py:22 - Static files mounted at /static +2026-03-13 14:39:07,470 - app - INFO - __init__.py:20 - Application startup +2026-03-13 14:39:07,471 - app - INFO - __init__.py:21 - API documentation available at /docs +2026-03-13 14:39:07,471 - app - INFO - __init__.py:22 - Static files mounted at /static +2026-03-13 14:39:07,475 - app - INFO - __init__.py:20 - Application startup +2026-03-13 14:39:07,476 - app - INFO - __init__.py:21 - API documentation available at /docs +2026-03-13 14:39:07,476 - app - INFO - __init__.py:22 - Static files mounted at /static +2026-03-13 14:39:07,482 - app - INFO - __init__.py:20 - Application startup +2026-03-13 14:39:07,482 - app - INFO - __init__.py:21 - API documentation available at /docs +2026-03-13 14:39:07,483 - app - INFO - __init__.py:22 - Static files mounted at /static +2026-03-13 14:39:07,508 - app - INFO - __init__.py:20 - Application startup +2026-03-13 14:39:07,508 - app - INFO - __init__.py:21 - API documentation available at /docs +2026-03-13 14:39:07,509 - app - INFO - __init__.py:22 - Static files mounted at /static +2026-03-13 14:39:49,207 - api_logging - INFO - logging.py:144 - Request started: POST http://localhost:8009/api/v1/auth/login +2026-03-13 14:39:49,592 - monitoring - INFO - monitoring.py:50 - POST /api/v1/auth/login - Status: 200 - Time: 369.66ms +2026-03-13 14:39:49,593 - api_logging - INFO - logging.py:150 - Request completed: POST http://localhost:8009/api/v1/auth/login - 200 in 0.3859s +2026-03-13 14:40:16,252 - api_logging - INFO - logging.py:144 - Request started: POST http://localhost:8009/api/v1/auth/login +2026-03-13 14:40:16,575 - monitoring - INFO - monitoring.py:50 - POST /api/v1/auth/login - Status: 200 - Time: 290.46ms +2026-03-13 14:40:16,576 - api_logging - INFO - logging.py:150 - Request completed: POST http://localhost:8009/api/v1/auth/login - 200 in 0.3245s