feat: 统一后端响应格式

This commit is contained in:
2025-12-15 22:24:32 +08:00
parent e30fe60277
commit 6157976029
4 changed files with 70 additions and 6 deletions

View File

@@ -15,7 +15,8 @@ export class ResponseInterceptor implements NestInterceptor {
): Observable<any> | Promise<Observable<any>> {
return next.handle().pipe(
map((data) => ({
statusCode: 200,
success: true,
code: 0,
message: '请求成功',
data,
})),