-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from boostcampwm-2024/be-feat#71
[BE] 기수별 전체 프로젝트 갯수 응답 API 구현
- Loading branch information
Showing
4 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
backend/console-server/src/project/dto/count-project-by-generation-response.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { Type } from 'class-transformer'; | ||
|
||
export class CountProjectByGenerationResponseDto { | ||
@ApiProperty({ | ||
example: '5', | ||
description: '부스트캠프 기수', | ||
}) | ||
@Type(() => Number) | ||
generation: number; | ||
|
||
@ApiProperty({ | ||
example: '42', | ||
description: '해당 기수의 프로젝트 총 개수', | ||
}) | ||
@Type(() => Number) | ||
count: number; | ||
} |
14 changes: 14 additions & 0 deletions
14
backend/console-server/src/project/dto/count-project-by-generation.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { IsNotEmpty, IsNumber } from 'class-validator'; | ||
import { Type } from 'class-transformer'; | ||
|
||
export class CountProjectByGenerationDto { | ||
@ApiProperty({ | ||
example: '5', | ||
description: '부스트캠프 기수', | ||
}) | ||
@IsNotEmpty() | ||
@Type(() => Number) | ||
@IsNumber() | ||
generation: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters