import { ApiProperty } from "@nestjs/swagger";
import { IsNumber, IsObject } from "class-validator";

export class updatePortionArticle {
    @ApiProperty({ description: '更新文章所属标题', example: '测试文章' })
    @IsNumber()
    manuals: number

    @ApiProperty({ description: '更新文章的相关数据', example: { delFlag: 1 } })
    @IsObject()
    data

    @ApiProperty({ description: '更新文章的ID，可以是数组，也可以是单个数字', example: [1, 2, 3] })
    id
}