优化架构,新增路由

This commit is contained in:
robin
2022-06-04 11:43:05 +08:00
parent ba9ca43729
commit 264ab8d979
22 changed files with 161 additions and 60 deletions
+12
View File
@@ -0,0 +1,12 @@
'use strict';
/*封装入参*/
module.exports = {
sort: 3, //排序
use : true, // 是否使用
fun : async (ctx, next, app) => {
ctx.params = ctx.request.body || ctx.query
await next()
}
}