版本1.0.4 - 发布前准备

- 修复system.py缩进错误
- 优化前端页面样式(待重构)
- 改进API接口结构
- 完善文档和自动化脚本
- 平台基本功能稳定运行
This commit is contained in:
lt
2026-04-29 09:32:43 +08:00
parent 0a31ae09af
commit e1ba31afda
96 changed files with 165251 additions and 376 deletions
+3 -2
View File
@@ -20,7 +20,7 @@ class User(Base):
class Topic(Base):
__tablename__ = "topics"
id = Column(Integer, primary_key=True, index=True)
id = Column(String(50), primary_key=True, index=True)
title = Column(String(500), nullable=False)
field = Column(String(100))
priority_score = Column(Integer, default=0)
@@ -34,12 +34,13 @@ class Topic(Base):
)
generated_at = Column(DateTime(timezone=True)) # 新增字段
published_at = Column(DateTime(timezone=True)) # 新增字段
published_urls = Column(JSON) # {"zhihu": "url", ...}
platform_urls = Column(JSON) # {"zhihu": "url", ...}
class AuditLog(Base):
__tablename__ = "audit_logs"
id = Column(Integer, primary_key=True, index=True)
username = Column(String(50), nullable=False)
user_id = Column(Integer, index=True)
action = Column(String(50), index=True) # login, create_user, delete_user, publish
resource_type = Column(String(50)) # user, topic, article