소스 검색

change xorm.io

tags/v1.0.8
liangzy 3 년 전
부모
커밋
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()
}



불러오는 중...
취소
저장