chore: src/modules/demo/controller/admin/tenant.ts
This commit is contained in:
@@ -0,0 +1,23 @@
|
|||||||
|
import { CoolController, BaseController } from '@cool-midway/core';
|
||||||
|
import { DemoGoodsEntity } from '../../entity/goods';
|
||||||
|
import { DemoTenantService } from '../../service/tenant';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 多租户
|
||||||
|
*/
|
||||||
|
@CoolController({
|
||||||
|
serviceApis: [
|
||||||
|
'use',
|
||||||
|
{
|
||||||
|
method: 'noUse',
|
||||||
|
summary: '不使用多租户',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
method: 'noTenant',
|
||||||
|
summary: '局部不使用多租户',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
entity: DemoGoodsEntity,
|
||||||
|
service: DemoTenantService,
|
||||||
|
})
|
||||||
|
export class AdminDemoTenantController extends BaseController {}
|
||||||
Reference in New Issue
Block a user