版本1.0.4 - 发布前准备
- 修复system.py缩进错误 - 优化前端页面样式(待重构) - 改进API接口结构 - 完善文档和自动化脚本 - 平台基本功能稳定运行
This commit is contained in:
@@ -56,7 +56,7 @@ async def get_topics(
|
||||
"updated_at": topic.updated_at.isoformat() if topic.updated_at else None,
|
||||
"generated_at": topic.generated_at.isoformat() if topic.generated_at else None,
|
||||
"published_at": topic.published_at.isoformat() if topic.published_at else None,
|
||||
"published_urls": topic.published_urls
|
||||
"platform_urls": topic.platform_urls
|
||||
})
|
||||
|
||||
return result
|
||||
@@ -140,7 +140,7 @@ async def update_topic(
|
||||
|
||||
@router.delete("/{topic_id}")
|
||||
async def delete_topic(
|
||||
topic_id: int,
|
||||
topic_id: str,
|
||||
current_user: User = Depends(get_current_admin_user),
|
||||
db: Session = Depends(get_db)
|
||||
):
|
||||
@@ -185,5 +185,5 @@ async def get_topic(
|
||||
"updated_at": topic.updated_at.isoformat() if topic.updated_at else None,
|
||||
"generated_at": topic.generated_at.isoformat() if topic.generated_at else None,
|
||||
"published_at": topic.published_at.isoformat() if topic.published_at else None,
|
||||
"published_urls": topic.published_urls
|
||||
"platform_urls": topic.platform_urls
|
||||
}
|
||||
Reference in New Issue
Block a user