ahserver_g/ahserver/error.py
2020-07-12 16:08:50 +08:00

15 lines
195 B
Python
Executable File

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