This commit is contained in:
Jay 2018-08-15 17:58:59 +08:00
parent 15b54b9c87
commit 62af46007f
2 changed files with 5 additions and 2 deletions

View File

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

View File

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