-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 커뮤니티에 사용자 추가 service layer 구현 #95
- Loading branch information
1 parent
aaa69d7
commit 06d4d77
Showing
5 changed files
with
78 additions
and
6 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
23 changes: 23 additions & 0 deletions
23
server/apps/api/src/community/dto/append-particitants-to-community.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,23 @@ | ||
import { | ||
ArrayNotEmpty, | ||
IsArray, | ||
IsNotEmpty, | ||
IsNumber, | ||
IsOptional, | ||
IsString, | ||
} from 'class-validator'; | ||
|
||
export class AppendUsersToCommunityDto { | ||
@IsNotEmpty() | ||
@IsString() | ||
community_id: string; | ||
|
||
@IsOptional() | ||
@IsString() | ||
requestUser_id: string; | ||
|
||
@IsNotEmpty() | ||
@IsArray() | ||
@ArrayNotEmpty() | ||
users: 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