数据库插件

This commit is contained in:
robin
2022-06-03 15:18:47 +08:00
parent 8150466cbd
commit ba9ca43729
25 changed files with 123 additions and 219 deletions
+16
View File
@@ -0,0 +1,16 @@
'use strict';
module.exports = {
doc : "默认页面",
path : "cms/index/",
method : ["get", "post"],
middleware: [],
params : {
"age": "int?"
},
return : {},
fun : async (ctx, app) => {
const User = await app.table("User").where(where).findAll()
ctx.body = {res}
}
}