|
@@ -19,6 +19,7 @@ import {
|
|
|
UDTO_application,
|
|
|
UVAO_application,
|
|
|
} from '../interface/application.interface';
|
|
|
+import { QVO_team } from '../interface/team.interface';
|
|
|
import { ApiResponse, ApiTags, ApiQuery } from '@midwayjs/swagger';
|
|
|
import { Validate } from '@midwayjs/validate';
|
|
|
@ApiTags(['比赛报名'])
|
|
@@ -51,6 +52,18 @@ export class ApplicationController extends BaseController {
|
|
|
return { data, total };
|
|
|
}
|
|
|
|
|
|
+ @Get('/team')
|
|
|
+ async team(@Query() filter: any) {
|
|
|
+ const list = await this.service.teamQuery(filter);
|
|
|
+ const data = [];
|
|
|
+ for (const i of list.list) {
|
|
|
+ const newData = new QVO_team(i);
|
|
|
+ data.push(newData);
|
|
|
+ }
|
|
|
+ const total = list.total;
|
|
|
+ return { data, total };
|
|
|
+ }
|
|
|
+
|
|
|
@Get('/:id')
|
|
|
@ApiResponse({ type: FVO_application })
|
|
|
async fetch(@Param('id') id: string) {
|