ahserver/ahserver/error.py
2019-07-29 10:01:11 +08:00

15 lines
195 B
Python

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