Commit 82931ffb authored by nanahira's avatar nanahira

fix

parent ce2eacf8
......@@ -6,13 +6,13 @@ export class PageSettingsDto {
@IsOptional()
@IsPositive()
@IsInt()
@ApiProperty({ description: '第 n 页,从 1 开始' })
@ApiProperty({ description: '第 n 页,从 1 开始', required: false })
pageCount: number;
@IsOptional()
@IsPositive()
@IsInt()
@ApiProperty({ description: '每页显示的数量' })
@ApiProperty({ description: '每页显示的数量', required: false })
recordsPerPage: number;
private getRecordsPerPage() {
......
import { CreateDateColumn, DeleteDateColumn, UpdateDateColumn } from 'typeorm';
import { Exclude } from 'class-transformer';
import { PageSettingsDto } from '../../dto/PageSettings.dto';
import { ApiProperty } from '@nestjs/swagger';
export interface DeletionWise {
deleteTime?: Date;
......@@ -8,14 +9,17 @@ export interface DeletionWise {
export class TimeBase extends PageSettingsDto implements DeletionWise {
@CreateDateColumn({ select: false })
@ApiProperty({ required: false })
@Exclude()
createTime: Date;
@UpdateDateColumn({ select: false })
@ApiProperty({ required: false })
@Exclude()
updateTime: Date;
@DeleteDateColumn({ select: false })
@ApiProperty({ required: false })
@Exclude()
deleteTime: Date;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment