已经接入配置文件,开始准备生成代码
This commit is contained in:
@@ -44,6 +44,8 @@ func (that *Context) Display(statu int, data interface{}) {
|
||||
temp["type"] = tpe
|
||||
temp["msg"] = data
|
||||
resp["result"] = temp
|
||||
//兼容android等需要json转对象的服务
|
||||
resp["error"] = temp
|
||||
} else {
|
||||
resp["result"] = data
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user