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

// ==================== 更新配置 DTO ====================

export class UpdateConfigDto {
  @IsString()
  @IsNotEmpty()
  @MaxLength(10000)
  value: string;

  @IsString()
  @IsOptional()
  @MaxLength(50)
  category?: string;
}
