diff --git a/src/modules/system/dict-item/dict-item.controller.ts b/src/modules/system/dict-item/dict-item.controller.ts index ece718c..d203265 100644 --- a/src/modules/system/dict-item/dict-item.controller.ts +++ b/src/modules/system/dict-item/dict-item.controller.ts @@ -13,9 +13,7 @@ import { DictItemDto, DictItemQueryDto } from './dict-item.dto'; import { DictItemService } from './dict-item.service'; export const permissions = definePermission('system:dict-item', { - LIST: 'list', CREATE: 'create', - READ: 'read', UPDATE: 'update', DELETE: 'delete' } as const); @@ -29,7 +27,6 @@ export class DictItemController { @Get() @ApiOperation({ summary: '获取字典项列表' }) @ApiResult({ type: [DictItemEntity], isPage: true }) - @Perm(permissions.LIST) async list(@Query() dto: DictItemQueryDto): Promise> { return this.dictItemService.page(dto); } @@ -37,7 +34,6 @@ export class DictItemController { @Get('all/:typeId') @ApiOperation({ summary: '一次性通过字典类型获取所有所属的字典项(不分页)' }) @ApiResult({ type: [DictItemEntity] }) - @Perm(permissions.LIST) async getAll(@Param('typeId') typeId: number): Promise { return this.dictItemService.getAllByType(typeId); } diff --git a/src/modules/system/dict-type/dict-type.controller.ts b/src/modules/system/dict-type/dict-type.controller.ts index d434dc8..4f54a55 100644 --- a/src/modules/system/dict-type/dict-type.controller.ts +++ b/src/modules/system/dict-type/dict-type.controller.ts @@ -13,9 +13,7 @@ import { DictTypeDto, DictTypeQueryDto } from './dict-type.dto'; import { DictTypeService } from './dict-type.service'; export const permissions = definePermission('system:dict-type', { - LIST: 'list', CREATE: 'create', - READ: 'read', UPDATE: 'update', DELETE: 'delete' } as const); @@ -29,7 +27,6 @@ export class DictTypeController { @Get() @ApiOperation({ summary: '获取字典类型列表' }) @ApiResult({ type: [DictTypeEntity], isPage: true }) - @Perm(permissions.LIST) async list(@Query() dto: DictTypeQueryDto): Promise> { return this.dictTypeService.page(dto); } @@ -37,7 +34,6 @@ export class DictTypeController { @Post('all') @ApiOperation({ summary: '一次性获取所有的字典类型(不分页)' }) @ApiResult({ type: [DictTypeEntity] }) - @Perm(permissions.LIST) async getAll(@Body() dto: DictTypeQueryDto): Promise { return this.dictTypeService.getAll(dto); } @@ -54,7 +50,6 @@ export class DictTypeController { @Get(':id') @ApiOperation({ summary: '查询字典类型信息' }) @ApiResult({ type: DictTypeEntity }) - @Perm(permissions.READ) async info(@IdParam() id: number): Promise { return this.dictTypeService.findOne(id); } diff --git a/src/modules/system/param-config/param-config.controller.ts b/src/modules/system/param-config/param-config.controller.ts index b93fd70..3214d79 100644 --- a/src/modules/system/param-config/param-config.controller.ts +++ b/src/modules/system/param-config/param-config.controller.ts @@ -28,7 +28,6 @@ export class ParamConfigController { @Get() @ApiOperation({ summary: '获取参数配置列表' }) @ApiResult({ type: [ParamConfigEntity], isPage: true }) - @Perm(permissions.LIST) async list(@Query() dto: ParamConfigQueryDto): Promise> { return this.paramConfigService.page(dto); } @@ -44,7 +43,6 @@ export class ParamConfigController { @Get('key/:code') @ApiOperation({ summary: '查询参数配置信息By key' }) @ApiResult({ type: String }) - @Perm(permissions.READ) async code(@Param('code') code: string): Promise { return this.paramConfigService.findValueByKey(code); } @@ -52,7 +50,6 @@ export class ParamConfigController { @Get(':id') @ApiOperation({ summary: '查询参数配置信息' }) @ApiResult({ type: ParamConfigEntity }) - @Perm(permissions.READ) async info(@IdParam() id: number): Promise { return this.paramConfigService.findOne(id); }