mtfosbot/libs/route-utils/res-message/index.js
Jay 4e610d87e3 1. add login api
2. add get channel list api
2018-08-15 21:19:06 +08:00

50 lines
741 B
JavaScript

module.exports = {
Success: {
status: 200,
obj: {
status: 200,
msgCode: 10000,
message: 'success'
}
},
DataFormat: {
status: 400,
obj: {
status: 400,
msgCode: 11000,
message: 'input data format error'
}
},
NotLogin: {
status: 401,
obj: {
status: 401,
message: 'login first'
}
},
Forbidden: {
status: 403,
obj: {
status: 403,
message: 'Forbidden'
}
},
NotFound: {
status: 404,
obj: {
status: {
status: 404,
message: 'not found'
}
}
},
InternalError: {
status: 500,
obj: {
status: 500,
msgCode: 12000,
message: 'server internal error'
}
}
}