style: return a uniform variable name

This commit is contained in:
Vincent Young 2023-02-25 22:17:13 +08:00
parent a3778c05fb
commit ffdba23b03

View File

@ -195,7 +195,7 @@ func main() {
log.Println(res.Get("error").String()) log.Println(res.Get("error").String())
c.JSON(http.StatusNotAcceptable, gin.H{ c.JSON(http.StatusNotAcceptable, gin.H{
"code": http.StatusNotAcceptable, "code": http.StatusNotAcceptable,
"msg": "Invalid targetLang", "message": "Invalid targetLang",
}) })
return return
} }