feat(repos): 添加checkout接口。

This commit is contained in:
Ivan Li
2021-02-28 21:51:52 +08:00
parent 11cf2a6c12
commit 32102ffefd
4 changed files with 32 additions and 4 deletions

View File

@ -0,0 +1,16 @@
import { InputType } from '@nestjs/graphql';
import { IsOptional, IsString, IsUUID } from 'class-validator';
@InputType()
export class CheckoutInput {
@IsUUID()
projectId: string;
@IsString()
@IsOptional()
branch?: string;
@IsString()
@IsOptional()
commitNumber?: string;
}

View File

@ -1,4 +1,4 @@
import { InputType, ObjectType } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { IsOptional, IsString, IsUUID } from 'class-validator';
@InputType()