From ffdba23b031b6001c05308ce90123980696dcfd7 Mon Sep 17 00:00:00 2001 From: Vincent Young Date: Sat, 25 Feb 2023 22:17:13 +0800 Subject: [PATCH] style: return a uniform variable name --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 391911c..45c4434 100644 --- a/main.go +++ b/main.go @@ -194,8 +194,8 @@ func main() { if res.Get("error.code").String() == "-32600" { log.Println(res.Get("error").String()) c.JSON(http.StatusNotAcceptable, gin.H{ - "code": http.StatusNotAcceptable, - "msg": "Invalid targetLang", + "code": http.StatusNotAcceptable, + "message": "Invalid targetLang", }) return }