-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: 나도 뭐 한지 몰라용... 이것저것들 수정했어요 (#82)
* fix(db): mongodb의 username 외 2개의 필드를 optional로 수정 * refactor: 몰라요... 이것저것 * feat: 검색 추가 * fix: 테스트 코드 버그 수정
- Loading branch information
1 parent
0ff5531
commit 23ce8e2
Showing
37 changed files
with
465 additions
and
152 deletions.
There are no files selected for viewing
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
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
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
13 changes: 13 additions & 0 deletions
13
src/domain/activity/project/dto/request/search-projects.request.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,13 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
import { CommonValidation, TypeValidation } from '@wink/validation'; | ||
|
||
export class SearchProjectsRequestDto { | ||
@ApiProperty({ | ||
description: '검색어', | ||
example: '김', | ||
}) | ||
@CommonValidation.IsNotEmpty() | ||
@TypeValidation.IsString() | ||
query!: string; | ||
} |
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
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
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
16 changes: 16 additions & 0 deletions
16
src/domain/activity/social/dto/request/get-socials.request.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,16 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
import { CommonValidation, TypeValidation } from '@wink/validation'; | ||
|
||
import { Type } from 'class-transformer'; | ||
|
||
export class GetSocialsRequestDto { | ||
@ApiProperty({ | ||
description: '페이지', | ||
example: 1, | ||
}) | ||
@Type(() => Number) | ||
@CommonValidation.IsNotEmpty() | ||
@TypeValidation.IsNumber() | ||
page!: number; | ||
} |
13 changes: 13 additions & 0 deletions
13
src/domain/activity/social/dto/request/search-socials.request.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,13 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
import { CommonValidation, TypeValidation } from '@wink/validation'; | ||
|
||
export class SearchSocialsRequestDto { | ||
@ApiProperty({ | ||
description: '검색어', | ||
example: '김', | ||
}) | ||
@CommonValidation.IsNotEmpty() | ||
@TypeValidation.IsString() | ||
query!: string; | ||
} |
9 changes: 9 additions & 0 deletions
9
src/domain/activity/social/dto/response/get-socials-page.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,9 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class GetSocialsPageResponseDto { | ||
@ApiProperty({ | ||
description: '최대 페이지', | ||
example: 1, | ||
}) | ||
page!: 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
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
Oops, something went wrong.