-
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.
Merge pull request #76 from tscenping/jangcho
WIP: add channels accept, refuse logic
- Loading branch information
Showing
10 changed files
with
173 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { ChannelInvitationListDto } from "./channel-Invitation-list-return.dto"; | ||
|
||
export type ChannelInvitationListResponseDto = { | ||
channelId : number; | ||
channelName : string; | ||
channelUsers: ChannelInvitationListDto[]; | ||
}; |
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,19 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { ChannelUserType } from 'src/common/enum'; | ||
|
||
export class ChannelInvitationListDto { | ||
@ApiProperty({ description: '채널유저id' }) | ||
channelUserId: number; | ||
@ApiProperty({ description: '유저id' }) | ||
userId : number; | ||
@ApiProperty({ description: '유저닉네임' }) | ||
nickname : string; | ||
@ApiProperty({ description: '유저아바타' }) | ||
avatar : string; | ||
@ApiProperty({ description: '친구여부' }) | ||
isFriend : boolean; | ||
@ApiProperty({ description: '차단여부' }) | ||
isBlocked : boolean; | ||
@ApiProperty({ description: '채널유저타입' }) | ||
channelUserType : ChannelUserType; | ||
} |
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,4 @@ | ||
export class ChannelInvitationParamDto { | ||
invitationId: number; | ||
invitedUserId: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export class DeleteChannelInvitationParamDto { | ||
cancelingUserId: number; | ||
invitationId: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export class DeleteChannelInvitationsParamDto { | ||
invitingUserId: number; | ||
invitedUserId: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export class GatewayCreateChannelInvitationParamDto { | ||
invitationId: number; | ||
|
||
invitingUserId: number; | ||
invitedUserId: number; | ||
} |