ahserver_g/ahserver/error.py

15 lines
195 B
Python
Raw Normal View History

2019-07-29 10:01:11 +08:00
def Error(errno='undefined error',msg='Error'):
return {
"status":"Error",
"data":{
"message":msg,
"errno":errno
}
}
def Success(data):
return {
"status":"OK",
"data":data
}