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

export class ApplyAuthProvinceDto {
  @ApiProperty({ description: '省份代码', example: '430000' })
  @IsString()
  @IsNotEmpty({ message: '省份代码不能为空' })
  @MaxLength(20, { message: '省份代码最大20字符' })
  provinceCode: string

  @ApiProperty({ description: '省份名称', example: '湖南省' })
  @IsString()
  @IsNotEmpty({ message: '省份名称不能为空' })
  @MaxLength(50, { message: '省份名称最大50字符' })
  provinceName: string
}
