liangzy 3 лет назад
Родитель
Сommit
1c9190e98f
1 измененных файлов: 1 добавлений и 1 удалений
  1. +1
    -1
      mvc/controller.go

+ 1
- 1
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()
}



Загрузка…
Отмена
Сохранить