feat: 增加一个callback的结果通知

This commit is contained in:
iHeyTang 2025-09-03 20:46:54 +08:00
parent 23356ad79e
commit 528d841d82
1 changed files with 11 additions and 0 deletions

View File

@ -159,4 +159,15 @@ export class AppController {
};
}
}
@Post('callback')
async callback(@Body() body: any): Promise<ApiResponse<any>> {
console.log(`🚀 [回调] 开始执行回调`);
console.log(`📋 回调参数: ${JSON.stringify(body, null, 2)}`);
return {
status: true,
data: body,
msg: 'success'
};
}
}