2018-08-14 16:15:28 +00:00
|
|
|
module.exports = {
|
|
|
|
Success: {
|
|
|
|
status: 200,
|
|
|
|
obj: {
|
|
|
|
status: 200,
|
2018-08-15 09:58:59 +00:00
|
|
|
msgCode: 10000,
|
2018-08-14 16:15:28 +00:00
|
|
|
message: 'success'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
DataFormat: {
|
|
|
|
status: 400,
|
|
|
|
obj: {
|
|
|
|
status: 400,
|
2018-08-15 09:58:59 +00:00
|
|
|
msgCode: 11000,
|
2018-08-14 16:15:28 +00:00
|
|
|
message: 'input data format error'
|
|
|
|
}
|
|
|
|
},
|
2018-08-15 12:05:08 +00:00
|
|
|
NotLogin: {
|
|
|
|
status: 401,
|
|
|
|
obj: {
|
|
|
|
status: 401,
|
|
|
|
message: 'login first'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
NotFound: {
|
|
|
|
status: 404,
|
|
|
|
obj: {
|
|
|
|
status: {
|
|
|
|
status: 404,
|
|
|
|
message: 'not found'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2018-08-14 16:15:28 +00:00
|
|
|
InternalError: {
|
|
|
|
status: 500,
|
|
|
|
obj: {
|
|
|
|
status: 500,
|
2018-08-15 09:58:59 +00:00
|
|
|
msgCode: 12000,
|
2018-08-14 16:15:28 +00:00
|
|
|
message: 'server internal error'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|