import { IsNotEmpty, IsString, IsOptional, IsInt, MaxLength, IsIn } from 'class-validator';

/**
 * 도움말 생성 DTO
 *
 * @export
 * @class CreateHelpDto
 */
export class CreateHelpDto {
  @IsNotEmpty()
  @IsString()
  @IsIn(['SNP', 'GENOME', 'MPT'])
  @MaxLength(20)
  helpCtgry: string;

  @IsNotEmpty()
  @IsString()
  @MaxLength(100)
  targetNm: string;

  @IsOptional()
  @IsString()
  @MaxLength(200)
  helpTitle?: string;

  @IsOptional()
  @IsString()
  helpShort?: string;

  @IsOptional()
  @IsString()
  helpFull?: string;

  @IsOptional()
  @IsString()
  @MaxLength(500)
  helpImageUrl?: string;

  @IsOptional()
  @IsString()
  @MaxLength(500)
  helpVideoUrl?: string;

  @IsOptional()
  @IsString()
  @MaxLength(500)
  helpLinkUrl?: string;

  @IsOptional()
  @IsInt()
  displayOrder?: number;

  @IsOptional()
  @IsString()
  @IsIn(['Y', 'N'])
  @MaxLength(1)
  useYn?: string;
}
