Commit 19ab5ac 1 parent 161eee6 commit 19ab5ac Copy full SHA for 19ab5ac
File tree 1 file changed +3
-13
lines changed
1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change 3
3
ApiBadRequestResponse ,
4
4
ApiInternalServerErrorResponse ,
5
5
ApiNotFoundResponse ,
6
+ ApiOkResponse ,
6
7
ApiOperation ,
7
8
} from '@nestjs/swagger' ;
8
9
import { BaseSwaggerDecorator } from 'nestjs-swagger-decorator' ;
@@ -38,20 +39,9 @@ export function CreateMatchingSwagger(apiSummary: string) {
38
39
export function PatchMatchingRequestStatusSwagger ( apiSummary : string ) {
39
40
return BaseSwaggerDecorator (
40
41
{ summary : apiSummary } ,
42
+ [ ] ,
41
43
[
42
- {
43
- statusCode : 200 ,
44
- responseOptions : [
45
- {
46
- model : BaseResponse ,
47
- exampleTitle : '성공' ,
48
- exampleDescription : '성공했을 때 값' ,
49
- } ,
50
- ] ,
51
- baseResponseDto : BaseResponse ,
52
- } ,
53
- ] ,
54
- [
44
+ ApiOkResponse ( { description : '성공' , type : BaseResponse } ) ,
55
45
ApiBadRequestResponse ( { description : 'Bad Request' } ) ,
56
46
ApiNotFoundResponse ( { description : '해당 유저가 존재하지 않습니다.' } ) ,
57
47
ApiInternalServerErrorResponse ( { description : 'Internal Server Error' } ) ,
You can’t perform that action at this time.
0 commit comments