Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

node / app-admin

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • app-admin
  • src
  • modules
  • hello
  • dto
  • create-hello.dto.ts
  • yixinjj's avatar
    first commit · ca0d3ca9
    yixinjj committed Sep 10, 2024
    ca0d3ca9 Browse Files
create-hello.dto.ts 198 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12
import { IsInt, IsString } from 'class-validator';

export class CreateCatDto {
  @IsString()
  readonly name: string;

  @IsInt()
  readonly age: number;

  @IsString()
  readonly breed: string;
}