feat: Phase 3 - 工具层 + 测试 + 数据库迁移
This commit is contained in:
40
CHANGELOG.md
40
CHANGELOG.md
@@ -11,6 +11,46 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
---
|
||||
|
||||
## [0.5.0] - 2026-03-14
|
||||
|
||||
### Added
|
||||
|
||||
#### 🔧 工具层实现 (Phase 3)
|
||||
|
||||
- **validators.py** - 输入验证工具
|
||||
- Marshmallow Schema 验证
|
||||
- UUID/Email/用户名/URL 验证
|
||||
- 字符串清理
|
||||
|
||||
- **security.py** - 安全工具
|
||||
- Token/密码哈希
|
||||
- API Key 生成
|
||||
- RateLimiter 限流器
|
||||
- IPWhitelist IP 白名单
|
||||
|
||||
- **helpers.py** - 辅助函数
|
||||
- 日期时间格式化
|
||||
- 分页辅助
|
||||
- JSON 安全解析
|
||||
|
||||
#### 🧪 测试模块
|
||||
|
||||
- **conftest.py** - pytest 配置
|
||||
- **test_auth.py** - 认证 API 单元测试
|
||||
- **test_scheduler.py** - 调度器单元测试
|
||||
- **test_message_queue.py** - 消息队列单元测试
|
||||
|
||||
#### 🗄️ 数据库迁移
|
||||
|
||||
- **Alembic 配置** - 数据库迁移工具
|
||||
- **初始迁移脚本** - 创建所有数据表
|
||||
|
||||
### Changed
|
||||
|
||||
- **requirements.txt** - 添加 gevent 依赖(用于 gunicorn)
|
||||
|
||||
---
|
||||
|
||||
## [0.4.0] - 2026-03-14
|
||||
|
||||
### Added
|
||||
|
||||
Reference in New Issue
Block a user