import { IsString, IsNotEmpty, MaxLength } from 'class-validator'
import { ApiProperty } from '@nestjs/swagger'

export class ApplyCommunityAuthDto {
  @ApiProperty({ description: '社区名称', example: '量子社区' })
  @IsString()
  @IsNotEmpty({ message: '社区名称不能为空' })
  @MaxLength(50, { message: '社区名称最大50字符' })
  communityName: string
}
