import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';
import { CreateDto } from 'src/common/dto/create.dto';

export class UpdateOrgDto extends CreateDto {
  @ApiProperty({ description: '机构名称' })
  @IsNotEmpty({ message: '机构名称不能为空' })
  name: string;

  @ApiProperty({ description: '机构描述' })
  desc: string;

  @ApiProperty({ description: '上级组织机构' })
  @IsNotEmpty({ message: '请选择上级组织机构' })
  pid: number;
}
