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
+5
View File
@@ -0,0 +1,5 @@
module.exports = {
path : "app/*/api/*.js",
prefix : "",//接口前缀
statusTobody: true,//是否跟随body结果(如需接口报错也返回200,那么设置为false)
}
+18
View File
@@ -0,0 +1,18 @@
'use strict';
/**
* RBAC用户、角色、权限、组设
* saas的权限验证
*/
const config = require("./config")
// 错误处理
module.exports = {
sort : 1, //排序
use : true, // 是否使用
fun : async (ctx, next, app) => {
await next()
}
}