feature/verification-code-login-v1.1.0 #24

Merged
moyin merged 2 commits from feature/verification-code-login-v1.1.0 into main 2025-12-25 16:19:23 +08:00
5 changed files with 20 additions and 7 deletions
Showing only changes of commit 9f606abbb2 - Show all commits

View File

@@ -2288,6 +2288,19 @@ echo "📈 性能测试完成,请查看上述结果"
这些测试场景和边界条件将帮助前端开发者进行全面的API测试确保应用的稳定性和安全性。
- **v1.1.0** (2025-12-25):
- **新增验证码登录功能**
- 添加验证码登录接口 (POST /auth/verification-code-login)
- 添加发送登录验证码接口 (POST /auth/send-login-verification-code)
- 支持邮箱和手机号验证码登录
- 完善验证码相关错误处理和限流机制
- **文档完善**
- 更新API文档新增验证码登录相关说明
- 修正错误码与实际响应的一致性
- 添加验证码登录测试场景和使用示例
- 更新OpenAPI规范文档
- **接口数量更新**21个 → 23个API接口
- **用户认证接口**11个 → 13个接口
- **v1.0.0** (2025-12-24):
- **完整的API文档更新**
- 重新整理接口分类,将用户管理接口独立分类

View File

@@ -1,8 +1,8 @@
openapi: 3.0.3
info:
title: Pixel Game Server - Auth API
description: 像素游戏服务器用户认证API接口文档
version: 1.0.0
description: 像素游戏服务器用户认证API接口文档 - 包含验证码登录功能
version: 1.1.0
contact:
name: API Support
email: support@example.com

View File

@@ -1,7 +1,7 @@
{
"name": "pixel-game-server",
"version": "1.0.0",
"description": "A 2D pixel art game server built with NestJS",
"version": "1.1.0",
"description": "A 2D pixel art game server built with NestJS - 支持验证码登录功能",
"main": "dist/main.js",
"scripts": {
"dev": "nest start --watch",

View File

@@ -31,7 +31,7 @@ export class AppService {
return {
service: 'Pixel Game Server',
version: '1.0.0',
version: '1.1.0',
status: 'running',
timestamp: new Date().toISOString(),
uptime: Math.floor((Date.now() - this.startTime) / 1000),

View File

@@ -58,8 +58,8 @@ async function bootstrap() {
// 配置Swagger文档
const config = new DocumentBuilder()
.setTitle('Pixel Game Server API')
.setDescription('像素游戏服务器API文档 - 包含用户认证、登录注册等功能')
.setVersion('1.0.0')
.setDescription('像素游戏服务器API文档 - 包含用户认证、登录注册、验证码登录等功能')
.setVersion('1.1.0')
.addTag('auth', '用户认证相关接口')
.addTag('admin', '管理员后台相关接口')
.addBearerAuth(