Files
YiAi/service/src/modules/app/dto/queryApp.dto.ts
2024-01-27 19:53:17 +08:00

31 lines
1.0 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { IsNotEmpty, MinLength, MaxLength, IsString, IsIn, IsOptional, Max, Min, ValidateNested, IsNumber, IsDefined } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
import { Type } from 'class-transformer';
import { BaseEntity } from 'typeorm';
export class QuerAppDto {
@ApiProperty({ example: 1, description: '查询页数', required: false })
@IsOptional()
page: number;
@ApiProperty({ example: 10, description: '每页数量', required: false })
@IsOptional()
size: number;
@ApiProperty({ example: 'name', description: 'app名称', required: false })
@IsOptional()
name: string;
@ApiProperty({ example: 1, description: 'app状态 0禁用 1启用 3:审核加入广场中 4已拒绝加入广场', required: false })
@IsOptional()
status: number;
@ApiProperty({ example: 2, description: 'app分类Id', required: false })
@IsOptional()
catId: number;
@ApiProperty({ example: 'role', description: 'app角色', required: false })
@IsOptional()
role: string;
}