Commit 52eb78dc authored by nanahira's avatar nanahira

fix

parent 23f50897
Pipeline #7152 passed with stages
in 1 minute and 26 seconds
import { Column } from 'typeorm';
import { MergePropertyDecorators } from './base';
import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsOptional, IsPositive } from 'class-validator';
import { IsInt, IsNotEmpty, IsOptional, IsPositive } from 'class-validator';
import { BigintTransformer } from '../utility/bigint-transform';
export const RelationColumn = (description = '对应编号', notNull = false) =>
......@@ -13,6 +13,7 @@ export const RelationColumn = (description = '对应编号', notNull = false) =>
}),
ApiProperty({ type: Number, description }),
...(notNull ? [] : [IsOptional()]),
IsInt(),
IsPositive(),
]);
export const StringRelationColumn = (
......
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