Files
simon 6ec198687c feat(djapi): 新增日报查询 API(news/reports + news/events)及文档
- api/report/ 包:query(连库+SQL)/ views(2 视图)/ serializers(OpenAPI)/ tests(17 单测)
- urls.py 注册 news/reports/、news/events/;settings.py SPECTACULAR 加「日报」tag
- .env.example 补 NEWS_DB_* 占位配置;README/continuation.md 更新
- docs/news_report_api.md 使用手册;CLAUDE*.md 修正 CLI 路径为 finance/ 前缀
2026-08-05 20:51:42 +08:00

29 lines
1.4 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
from django.urls import path
from . import views
from .report import views as report_views
urlpatterns = [
# 其他 URL 路由
path('python-version/', views.python_version, name='python_version'),
path('', views.home, name='home'), # 根 URL 映射到主页视图
path('stockbasic/', views.stockbasic, name='stockbasic'),
path('stockparam/', views.stockparam, name='stockparam'),
path('industrys/', views.industrys, name='industrys'),
path('stockinfo/', views.stockInfo, name='stockInfo'),
path('stockep/', views.stockep, name='stockep'),
path('quarterlyEps/', views.quarterlyEps, name='quarterlyEps'),
path('indexByName/', views.indexByName, name='indexByName'),
path('indexDatas/', views.indexDatas, name='indexDatas'),
path('dailymargin/', views.dailyMargin, name='dailyMargin'),
path('stockmargin/', views.stockMargin, name='stockMargin'),
path('stockep/', views.stockep, name='stockep'),
path('finance/', views.getFinaData, name='getFinaData'),
path('getdiv/', views.getDivData, name='getDivData'),
path('xwlbNews/', views.xwlbNews, name='xwlbNews'),
path('xwlbFine/', views.xwlbFine, name='xwlbFine'),
# 日报查询(news_report / news_event
path('news/reports/', report_views.news_reports, name='news_reports'),
path('news/events/', report_views.news_events, name='news_events'),
]