13 lines
202 B
JavaScript
13 lines
202 B
JavaScript
'use strict';
|
|
|
|
/*封装入参*/
|
|
module.exports = {
|
|
sort: 5, //排序
|
|
use : true, // 是否使用
|
|
fun : async (ctx, next, app) => {
|
|
ctx.params = ctx.request.body || ctx.query
|
|
|
|
await next()
|
|
}
|
|
}
|