caoqianming
|
cc6db5ffd9
|
feat(system): 增加ApiKey管理, resm paper接口需API Key或登录访问
- 新增 ApiKey 模型, key 保存时自动生成, Django admin 中管理和查看
- 新增 ApiKeyAuthentication/HasApiKey, 支持 X-API-Key 请求头和 api_key 查询参数
- PaperViewSet GET 与 paper_pdf_view 由 AllowAny 改为 HasApiKey | IsAuthenticated
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-07-06 10:35:39 +08:00 |