feat(pipelines): 添加流水线模块。
This commit is contained in:
26
src/pipelines/dtos/create-pipeline.input.ts
Normal file
26
src/pipelines/dtos/create-pipeline.input.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import {
|
||||
IsObject,
|
||||
IsOptional,
|
||||
IsString,
|
||||
IsUUID,
|
||||
MaxLength,
|
||||
} from 'class-validator';
|
||||
|
||||
@InputType({ isAbstract: true })
|
||||
export class CreatePipelineInput {
|
||||
@IsUUID()
|
||||
projectId: string;
|
||||
|
||||
@IsString()
|
||||
@MaxLength(100)
|
||||
branch: string;
|
||||
|
||||
@IsString()
|
||||
@MaxLength(32)
|
||||
name: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsObject()
|
||||
workUnitMetadata = {};
|
||||
}
|
Reference in New Issue
Block a user