feat(backend): 实现 Cool-Admin 多租户与组织架构上下文模块及拦截中间件
这个提交包含在:
@@ -18,6 +18,7 @@ import * as LocalConfig from './config/config.local';
|
||||
import * as ProdConfig from './config/config.prod';
|
||||
import * as cool from '@cool-midway/core';
|
||||
import * as upload from '@midwayjs/upload';
|
||||
import { TenantMiddleware } from './comm/middleware/tenant';
|
||||
// import * as task from '@cool-midway/task';
|
||||
// import * as rpc from '@cool-midway/rpc';
|
||||
|
||||
@@ -66,5 +67,7 @@ export class MainConfiguration {
|
||||
@Inject()
|
||||
logger: ILogger;
|
||||
|
||||
async onReady() {}
|
||||
async onReady() {
|
||||
this.app.useMiddleware(TenantMiddleware);
|
||||
}
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户