change xorm.io
This commit is contained in:
		
							parent
							
								
									75ac9985a0
								
							
						
					
					
						commit
						1c9190e98f
					
				@ -24,7 +24,7 @@ func (this *BaseController) Prepare() {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (this *BaseController) RespJson(status bool, code int, msg string, data interface{}) {
 | 
					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()
 | 
						this.ServeJSON()
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user