feat(平台): 补齐服务端持久化和AI拆解契约

This commit is contained in:
Script Generator
2026-06-25 15:21:32 +08:00
parent 5723356d08
commit 5adc7759ad
73 changed files with 5599 additions and 368 deletions

View File

@@ -0,0 +1,46 @@
import { IsString, IsArray, ValidateNested, IsOptional } from 'class-validator';
import { Type } from 'class-transformer';
export class DecomposeReqMemberDto {
@IsString()
name!: string;
@IsString()
role!: string;
}
export class DecomposeReqRequirementDto {
@IsString()
id!: string;
@IsString()
code!: string;
@IsString()
title!: string;
@IsString()
@IsOptional()
description?: string;
}
export class DecomposeDto {
@IsString()
prototypeUrl!: string;
@IsString()
versionId!: string;
@IsString()
planId!: string;
@IsArray()
@ValidateNested({ each: true })
@Type(() => DecomposeReqRequirementDto)
requirements!: DecomposeReqRequirementDto[];
@IsArray()
@ValidateNested({ each: true })
@Type(() => DecomposeReqMemberDto)
members!: DecomposeReqMemberDto[];
}