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

export class RevokeAuthorizationDto {
  @ApiProperty({ description: '撤销原因', example: '违规操作' })
  @IsString()
  @IsNotEmpty({ message: '撤销原因不能为空' })
  @MaxLength(200, { message: '撤销原因最大200字符' })
  reason: string
}
