import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';
import { PaginationDTO } from '../../common/pagination.dto';

export class SearchLsitDto extends PaginationDTO {
  @ApiProperty({ description: '需要搜索的名称' })
  // @IsNotEmpty({ message: '搜索内容不能为空' })
  value: string;

  @ApiProperty({ description: '搜索内容的分类' })
  classify: number;
}
export class SearchNoClassLsitDto extends PaginationDTO {
  @ApiProperty({ description: '需要搜索的名称' })
  // @IsNotEmpty({ message: '搜索内容不能为空' })
  value: string;
}
export class getCourseClassifyLsitDto extends PaginationDTO {
  @ApiProperty({ description: '分类不可为空' })
  @IsNotEmpty({ message: '分类不可为空' })
  classify: number;
}
