This commit is contained in:
robin
2022-07-07 22:16:39 +08:00
parent 264ab8d979
commit a9a4bd0981
86 changed files with 1198 additions and 310 deletions
+2
View File
@@ -0,0 +1,2 @@
module.exports = {
}
+10
View File
@@ -0,0 +1,10 @@
/**
* 参数验证插件
*/
const config = require("./config")
const Parameter = require('parameter');
const parameter = new Parameter();
module.exports = async (app) => {
app.parameter = parameter
app.alias["$parameter"] = app.parameter
}