-
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.
Merge pull request #59 from depromeet/dev
알림탭 푸시알림 기능 구현
Showing
49 changed files
with
2,806 additions
and
198 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,3 +102,5 @@ dist | |
|
||
# TernJS port file | ||
.tern-port | ||
|
||
fcm-admin.json |
Large diffs are not rendered by default.
Oops, something went wrong.
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,36 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { Expose, Transform, Type } from 'class-transformer'; | ||
import { Types } from 'mongoose'; | ||
import { ALARM_STORE_TYPE } from 'src/common/consts/enum'; | ||
import { AlarmShowDto } from './alarmShow.dto'; | ||
|
||
// use for message transfor | ||
export class AlarmPaginationShowDto { | ||
constructor(noti_list: AlarmShowDto[], isLast: boolean, lastId: string) { | ||
this.isLast = isLast; | ||
this.lastId = lastId; | ||
this.noti_list = noti_list; | ||
} | ||
// 직렬화 | ||
@ApiProperty({ | ||
type: String, | ||
description: '알림 리스트', | ||
}) | ||
@Expose() | ||
@Type(() => AlarmShowDto) | ||
noti_list: AlarmShowDto[]; | ||
|
||
@ApiProperty({ | ||
type: String, | ||
description: '마지막인지 여부 ', | ||
}) | ||
@Expose() | ||
isLast: boolean; | ||
|
||
@ApiProperty({ | ||
type: String, | ||
description: '마지막 콘텐트의 아이디', | ||
}) | ||
@Expose() | ||
lastId: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { Expose, Transform, Type } from 'class-transformer'; | ||
import { ALARM_STORE_TYPE } from 'src/common/consts/enum'; | ||
import { Types } from 'mongoose'; | ||
|
||
// use for message transfor | ||
export class ChatAlarmSubDto { | ||
// 직렬화 | ||
@Expose() | ||
roomId: string; | ||
|
||
@Expose() | ||
chatId: string; | ||
|
||
@Expose() | ||
nickname: string; | ||
|
||
@Expose() // message 내용 | ||
content: string; | ||
|
||
@Expose() | ||
sender: string; | ||
} | ||
|
||
// nickname | ||
// content : message | ||
// chatId : string | ||
// roomId : 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
Oops, something went wrong.