From b73772420a12b3831c63d28b1859b9430b7f0b5a Mon Sep 17 00:00:00 2001 From: Jerry Date: Sun, 4 May 2025 09:56:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/core/response.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/core/response.ts b/src/utils/core/response.ts index 50c7ac8..b497501 100644 --- a/src/utils/core/response.ts +++ b/src/utils/core/response.ts @@ -11,7 +11,7 @@ class response { public static async success(res: Response, data: any, statusCode = 200) { res.status(statusCode).json({ success: true, - data, + data: data, timestamp: new Date().toISOString(), }); } @@ -31,7 +31,7 @@ class response { ) { const response: Record = { success: false, - message, + data: message, timestamp: new Date().toISOString(), };