Commit 5313abfa authored by nanahira's avatar nanahira

fix

parent ce2eacf8
Pipeline #7278 passed with stages
in 1 minute and 27 seconds
......@@ -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 { ApiProperty } from '@nestjs/swagger';
import { HttpException } from '@nestjs/common';
import { User } from '../entities/User.entity';
export interface BlankReturnMessage {
statusCode: number;
......
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