From 1c9190e98ff39bff95b19cfa4aed9f39f086436a Mon Sep 17 00:00:00 2001 From: liangzy Date: Thu, 9 Jul 2020 12:01:51 +0800 Subject: [PATCH] change xorm.io --- mvc/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mvc/controller.go b/mvc/controller.go index ae7b052..7cc7a58 100644 --- a/mvc/controller.go +++ b/mvc/controller.go @@ -24,7 +24,7 @@ func (this *BaseController) Prepare() { } func (this *BaseController) RespJson(status bool, code int, msg string, data interface{}) { - this.Data["json"] = &map[string]interface{}{"status": status, "code": code, "msg": msg, "machine": data} + this.Data["json"] = &map[string]interface{}{"status": status, "code": code, "msg": msg, "data": data} this.ServeJSON() }