feat(v2.7): 增加管理驾驶舱与治理字典服务

This commit is contained in:
2026-07-08 16:19:29 +08:00
parent 0f57e75689
commit bcbe84bb6e
10 changed files with 637 additions and 1 deletions

View File

@@ -0,0 +1,41 @@
import { IsArray, IsIn, IsOptional, IsString, ValidateNested } from 'class-validator';
import { Type } from 'class-transformer';
import { GOVERNANCE_DICTIONARY_KINDS, type GovernanceDictionaryKind } from '../governance.service';
export class GovernanceDictionaryDto {
@IsString()
actorId!: string;
@IsIn(GOVERNANCE_DICTIONARY_KINDS)
kind!: GovernanceDictionaryKind;
@IsString()
name!: string;
@IsOptional()
@IsString()
code?: string;
@IsOptional()
@IsString()
group?: string;
@IsOptional()
@IsString()
scope?: string;
}
export class RemoveGovernanceDictionaryDto {
@IsString()
actorId!: string;
}
export class ImportGovernanceDictionariesDto {
@IsString()
actorId!: string;
@IsArray()
@ValidateNested({ each: true })
@Type(() => GovernanceDictionaryDto)
items!: GovernanceDictionaryDto[];
}