This commit is contained in:
Jay 2018-08-15 20:05:15 +08:00
commit ff36b00097
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,5 @@
const _ = require('lodash') const _ = require('lodash')
const resMessage = require('./res-message')
/** /**
* check Object * check Object
* @param {string} key key name * @param {string} key key name
@ -44,7 +44,7 @@ const chkObject = function (key = '', type = '', empty = false) {
return true return true
} }
const resObject = () => { const resObject = (key = null, message = null, msgCode = null) => {
} }

View File

@ -3,6 +3,7 @@ module.exports = {
status: 200, status: 200,
obj: { obj: {
status: 200, status: 200,
msgCode: 10000,
message: 'success' message: 'success'
} }
}, },
@ -10,6 +11,7 @@ module.exports = {
status: 400, status: 400,
obj: { obj: {
status: 400, status: 400,
msgCode: 11000,
message: 'input data format error' message: 'input data format error'
} }
}, },
@ -33,6 +35,7 @@ module.exports = {
status: 500, status: 500,
obj: { obj: {
status: 500, status: 500,
msgCode: 12000,
message: 'server internal error' message: 'server internal error'
} }
} }