feat(repos): 添加checkout接口。
This commit is contained in:
16
src/repos/dtos/checkout.input.ts
Normal file
16
src/repos/dtos/checkout.input.ts
Normal 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;
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
import { InputType, ObjectType } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { IsOptional, IsString, IsUUID } from 'class-validator';
|
||||
|
||||
@InputType()
|
||||
|
Reference in New Issue
Block a user