import { IsBoolean, IsOptional, IsString } from 'class-validator';

export class UpdateLoginSettingsDto {
  @IsBoolean()
  isCaptcha!: boolean;

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

  @IsBoolean()
  isSiteCaptcha!: boolean;

  @IsString()
  @IsOptional()
  siteBg?: string;
}

export interface LoginSettingsVo {
  isCaptcha: boolean;
  bg?: string;
  isSiteCaptcha: boolean;
  siteBg?: string;
}