From d8d5df12fe3df2914a7cba764f4c89120a06162b Mon Sep 17 00:00:00 2001 From: John Denver Date: Tue, 18 Oct 2022 12:02:20 +0800 Subject: [PATCH] fix: clear unless decorator --- src/decorator.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/decorator.ts b/src/decorator.ts index 71789a5..14db358 100644 --- a/src/decorator.ts +++ b/src/decorator.ts @@ -1,5 +1,5 @@ import { Type, applyDecorators } from '@nestjs/common'; -import { ApiBody, ApiConsumes, ApiOkResponse, getSchemaPath } from '@nestjs/swagger'; +import { ApiOkResponse, getSchemaPath } from '@nestjs/swagger'; import { ExtraModelStore } from './struct'; @@ -7,13 +7,6 @@ export function SwaggerEntity(target: any) { ExtraModelStore.set(target?.name, target); } -export function ApiFormData(options: any) { - return applyDecorators( - ApiConsumes('multipart/form-data'), - ApiBody(options), - ); -} - export function getResponseVo(ResponseBodyVo: Type) { return function(Vo?: Type) { return applyDecorators(