refactor: 实现正确的CurrentUser装饰器并修复类型问题

- 新增CurrentUser装饰器和CurrentUserData类型定义
- 替换content-moderation.controller.ts中的模拟装饰器实现
- 修复测试文件中的用户数据结构,确保包含必要的platform字段
- 修复app.module.ts中已删除控制器的引用
- 优化Swagger配置使用环境变量定义服务器地址
This commit is contained in:
imeepos
2025-09-08 11:06:09 +08:00
parent fe0aa0a9c5
commit 2bac851e6d
5 changed files with 23 additions and 10 deletions

View File

@@ -28,7 +28,8 @@ BYTEDANCE_APP_SECRET=04a026867fbd1ba52174c7c21d94cbc7361ec378
# 内容审核配置
# 图片审核回调地址(重要:抖音审核完成后会调用此接口)
AUDIT_CALLBACK_URL=https://sd2s2bl25ni4n75na2bog.apigateway-cn-beijing.volceapi.com/api/v1/content-moderation/bytedance/callback
TEST_SERVER_URL=https://sd2s2bl25ni4n75na2bog.apigateway-cn-beijing.volceapi.com
PROD_SERVER_URL=https://sd2s2bl25ni4n75na2bog.apigateway-cn-beijing.volceapi.com
# 抖音内容审核API地址
BYTEDANCE_AUDIT_API_URL=https://developer.toutiao.com/api/apps/v2/content/audit/image