Commit 74ea7332 authored by nanahira's avatar nanahira

fix openapi

parent b6b1987a
...@@ -17,6 +17,7 @@ import { ...@@ -17,6 +17,7 @@ import {
NotQueryable, NotQueryable,
NotWritable, NotWritable,
QueryEqual, QueryEqual,
RestfulFactory,
} from 'nicot'; } from 'nicot';
import { MycardUser } from 'nestjs-mycard'; import { MycardUser } from 'nestjs-mycard';
import { DescBase } from '../../utility/NamedBase.entity'; import { DescBase } from '../../utility/NamedBase.entity';
...@@ -134,7 +135,10 @@ export class Tournament extends DescBase { ...@@ -134,7 +135,10 @@ export class Tournament extends DescBase {
matches: Match[]; matches: Match[];
@NotColumn() @NotColumn()
@ApiProperty({ description: '对阵图树' }) @ApiProperty({
description: '对阵图树',
type: () => new RestfulFactory(Match).entityResultDto,
})
matchTree: Match; matchTree: Match;
async beforeCreate() { async beforeCreate() {
......
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