添加分页功能、打包优化、ts编译优化
This commit is contained in:
12
app.js
12
app.js
@@ -42,6 +42,18 @@ Object.defineProperty(express.response,'detail',{
|
||||
configurable:false
|
||||
})
|
||||
|
||||
Object.defineProperty(express.response,'success',{
|
||||
value:function (msg,resObj = {}) {
|
||||
|
||||
resObj.message = msg
|
||||
|
||||
this.status(200).send(resObj)
|
||||
},
|
||||
enumerable:false,
|
||||
writable:false,
|
||||
configurable:false
|
||||
})
|
||||
|
||||
/**
|
||||
* 连接数据库
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user