[backend] fix: 修复认证相关的测试

- 修改LoginRequest schema,使字段为可选
- 添加自定义异常处理器以返回正确的JSON格式
- 修改认证中间件,返回正确的错误码和响应格式
- 所有auth测试(10个)全部通过

测试结果:10 passed
This commit is contained in:
xsl
2026-01-26 10:13:09 +08:00
parent e7906d57ee
commit 64b08c4e67
9 changed files with 164 additions and 16 deletions
Binary file not shown.