1. add response message
2. add account schema
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
const _ = require('lodash')
|
||||
|
||||
/**
|
||||
* check Object
|
||||
* @param {string} key key name
|
||||
@@ -42,6 +44,11 @@ const chkObject = function (key = '', type = '', empty = false) {
|
||||
return true
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
chkObject
|
||||
const resObject = () => {
|
||||
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
chkObject,
|
||||
resObject
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
module.exports = {
|
||||
Success: {
|
||||
status: 200,
|
||||
obj: {
|
||||
status: 200,
|
||||
message: 'success'
|
||||
}
|
||||
},
|
||||
DataFormat: {
|
||||
status: 400,
|
||||
obj: {
|
||||
status: 400,
|
||||
message: 'input data format error'
|
||||
}
|
||||
},
|
||||
InternalError: {
|
||||
status: 500,
|
||||
obj: {
|
||||
status: 500,
|
||||
message: 'server internal error'
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user