Skip to content

feat: 提交 human provider 后端#8

Open
linli2004 wants to merge 5 commits into
quanttide:mainfrom
linli2004:human-provider
Open

feat: 提交 human provider 后端#8
linli2004 wants to merge 5 commits into
quanttide:mainfrom
linli2004:human-provider

Conversation

@linli2004

Copy link
Copy Markdown

做了什么

提交 human provider FastAPI 后端:邮件拉取与 AI 分类管道、候选人 8 阶段状态机、待确认队列、飞书集成。

验证方式

cd src/provider && QTADMIN_TEST=1 python -m pytest tests/ -v

测试输出

tests/test_api.py::test_health PASSED
tests/test_api.py::test_pipeline PASSED
tests/test_api.py::test_queue_list PASSED
tests/test_api.py::test_recruitments PASSED
tests/test_api.py::test_candidates PASSED

========================= 5 passed in 0.27s =========================

文件变更

⚠️ 此为完整 provider 后端包新增,共 85 个源文件,超出 20 文件限制,特此说明。

纪律自检

  • git diff main --name-only 无构建产物
  • 文件数 >20(完整后端包新增,已说明)
  • pytest tests/ → 5 passed
  • PR 描述包含:做了什么 + 怎么验证 + 文件清单 + 测试输出
  • 分支已推送远端

qtadmin and others added 5 commits June 5, 2026 14:35
- 新增邮件消息模型 (MailMessage) 和已处理邮件追踪 (ProcessedMail)
- 新增 AI 智能分类器,支持 OpenAI 兼容 API
- 新增邮箱自动匹配 (EmailMatcher),同名邮箱自动归并
- 新增简历解析器、资料管理、导出功能
- 新增待确认队列 (PendingQueue) 完整流程
- 新增 CLI 邮件发送循环 (mail_sender_loop)
- 新增 Demo 前端 (examples/human/) 整合看板页面
- 新增部署脚本 (scripts/) 和 systemd 服务配置 (manifests/)
- 新增零基础用户指南 (docs/user-guide/human.md)
- 修复 pyproject.toml 包发现配置
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
更新招聘管道的后端服务,包括实体模型的字段调整、待确认队列处理、人才管道状态流转。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- PATCH /candidates/{id} 过滤 model_dump 中 None 值,防止 NOT NULL 列写入 NULL 导致 500
- confirm_queue_item 状态转换失败从静默 pass 改为返回 400 错误提示

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Remove allow_credentials=True (incompatible with wildcard allow_origins)
- Replace bare except: pass with logger.warning() calls
- Add module-level logger

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant