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

export class ApplyAuthCityDto {
  @ApiProperty({ description: '城市代码', example: '430100' })
  @IsString()
  @IsNotEmpty({ message: '城市代码不能为空' })
  @MaxLength(20, { message: '城市代码最大20字符' })
  cityCode: string

  @ApiProperty({ description: '城市名称', example: '长沙市' })
  @IsString()
  @IsNotEmpty({ message: '城市名称不能为空' })
  @MaxLength(50, { message: '城市名称最大50字符' })
  cityName: string
}
