def Error(errno='undefined error',msg='Error'):
return {
"status":"Error",
"data":{
"message":msg,
"errno":errno
}
def Success(data):
"status":"OK",
"data":data
def NeedLogin(path):
"status":"need_login",
"data":path
def NoPermission(path):
"status":"no_permission",