chore: src/modules/dict/controller/admin/type.ts
This commit is contained in:
@@ -0,0 +1,18 @@
|
|||||||
|
import { DictTypeEntity } from './../../entity/type';
|
||||||
|
import { Provide } from '@midwayjs/core';
|
||||||
|
import { CoolController, BaseController } from '@cool-midway/core';
|
||||||
|
import { DictTypeService } from '../../service/type';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字典类型
|
||||||
|
*/
|
||||||
|
@Provide()
|
||||||
|
@CoolController({
|
||||||
|
api: ['add', 'delete', 'update', 'info', 'list', 'page'],
|
||||||
|
entity: DictTypeEntity,
|
||||||
|
service: DictTypeService,
|
||||||
|
listQueryOp: {
|
||||||
|
keyWordLikeFields: ['name'],
|
||||||
|
},
|
||||||
|
})
|
||||||
|
export class AdminDictTypeController extends BaseController {}
|
||||||
Reference in New Issue
Block a user