Commit 74ea7332 authored by nanahira's avatar nanahira

fix openapi

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