From a54d1f93f1c2a4692465e385bbe517abf2692ef0 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Mon, 8 Jul 2024 10:37:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B3=A8=E5=86=8C=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E5=80=BC=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/user.go b/handler/user.go index 35aa2c2..269078c 100644 --- a/handler/user.go +++ b/handler/user.go @@ -296,6 +296,6 @@ func registerHandler(c *gin.Context) { data["username"] = req_data.User data["email"] = req_data.Email data["token"] = tokenString - c.JSON(200, gin.H{"code": proto.SuccessCode, "message": "success", "date": data}) + c.JSON(200, gin.H{"code": proto.SuccessCode, "message": "success", "data": data}) return }