-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
181491b
commit 6196cb4
Showing
6 changed files
with
92 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,32 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class MogacoDto { | ||
@ApiProperty({ description: 'ID of the Mogaco', example: 1 }) | ||
id: bigint; | ||
|
||
@ApiProperty({ description: 'Group ID', example: 1 }) | ||
groupId: bigint; | ||
|
||
@ApiProperty({ description: 'Title of the Mogaco', example: '사당역 모각코' }) | ||
title: string; | ||
|
||
@ApiProperty({ description: 'Contents of the Mogaco', example: '사당역에서 모각코를 열려고 합니다.' }) | ||
contents: string; | ||
|
||
@ApiProperty({ description: 'Date of the Mogaco', example: '2023-11-22T12:00:00Z' }) | ||
date: Date; | ||
|
||
@ApiProperty({ description: 'Maximum number of participants', example: 5 }) | ||
maxHumanCount: number; | ||
|
||
@ApiProperty({ description: 'Address of the Mogaco', example: '서울특별시 관악구 어디길 22 모락 카페' }) | ||
address: string; | ||
|
||
@ApiProperty({ description: 'Status of the Mogaco', example: '모집 중' }) | ||
status: string; | ||
} | ||
|
||
export class StatusDto { | ||
@ApiProperty({ description: 'Status of the Mogaco', example: '모집 마감' }) | ||
status: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { MemberDto } from 'src/member/dto/member.dto'; | ||
|
||
export class MogacoWithMemberDto { | ||
@ApiProperty({ description: 'ID of the Mogaco', example: '3' }) | ||
id: string; | ||
|
||
@ApiProperty({ description: 'Group ID', example: '1' }) | ||
groupId: string; | ||
|
||
@ApiProperty({ description: 'Title of the Mogaco', example: '사당역 모각코' }) | ||
title: string; | ||
|
||
@ApiProperty({ description: 'Contents of the Mogaco', example: '사당역에서 모각코를 열려고 합니다.' }) | ||
contents: string; | ||
|
||
@ApiProperty({ description: 'Date of the Mogaco', example: '2023-11-25T12:00:00.000Z' }) | ||
date: string; | ||
|
||
@ApiProperty({ description: 'Maximum number of participants', example: 5 }) | ||
maxHumanCount: number; | ||
|
||
@ApiProperty({ description: 'Address of the Mogaco', example: '서울특별시 관악구 어디길 22 모락 카페' }) | ||
address: string; | ||
|
||
@ApiProperty({ description: 'Status of the Mogaco', example: '모집 마감' }) | ||
status: string; | ||
|
||
@ApiProperty({ description: 'Date of Mogaco creation', example: '2023-11-22T12:16:08.913Z' }) | ||
createdAt: string; | ||
|
||
@ApiProperty({ description: 'Date of Mogaco update', example: '2023-11-22T12:16:08.913Z' }) | ||
updatedAt: string; | ||
|
||
@ApiProperty({ description: 'Date of Mogaco deletion', example: null }) | ||
deletedAt: string | null; | ||
|
||
@ApiProperty({ description: 'Member information', type: MemberDto }) | ||
member: MemberDto; | ||
} |
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'; | ||
|
||
export class ParticipantResponseDto { | ||
@ApiProperty({ description: 'ID of the Member', example: '1' }) | ||
id: string; | ||
|
||
@ApiProperty({ description: 'Provider ID', example: '117187214221556274884' }) | ||
providerId: string; | ||
|
||
@ApiProperty({ description: 'Email of the Member', example: '[email protected]' }) | ||
email: string; | ||
|
||
@ApiProperty({ description: 'Social Type', example: 'google' }) | ||
socialType: string; | ||
|
||
@ApiProperty({ description: 'Date of Member creation', example: '2023-11-22T04:55:02.988Z' }) | ||
createdAt: string; | ||
} |