-
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: remove unused import * refactor(eslint): 문법 수정 * refactor(auth): 중복 코드 삭제 * refactor(study): 사용하지 않는 메소드 삭제 * refactor(member): repository 메소드 네이밍 통일 * fix(activity/study): author 시그니처 변경 * fix(activity/study): controller에서 member 그만 받기 * fix(activity/study): 중복된 study가 생성되지 않도록 수정
- Loading branch information
1 parent
e978007
commit ecc9320
Showing
23 changed files
with
131 additions
and
176 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
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/study/exception/already-exists-study.exception.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 { HttpStatus } from '@nestjs/common'; | ||
|
||
import { ApiException } from '@wink/swagger'; | ||
|
||
export class AlreadyExistsStudyException extends ApiException { | ||
constructor() { | ||
super({ | ||
swagger: '스터디가 이미 존재하는 경우', | ||
message: '스터디가 이미 존재합니다.', | ||
code: HttpStatus.CONFLICT, | ||
}); | ||
} | ||
} |
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,4 +1,4 @@ | ||
export * from './already-exists-category.exception'; | ||
export * from './already-exists-study.exception'; | ||
export * from './category-not-found.exception'; | ||
|
||
export * from './study-not-found.exception'; |
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,78 +1,28 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
import { Role, MyInfoLinks } from '@wink/member/schema'; | ||
import { Member } from '@wink/member/schema'; | ||
|
||
export class MyInfoResponseDto { | ||
@ApiProperty({ | ||
description: '멤버 아이디', | ||
example: '1a2b3c4d5e6f7a8b9c0d1e2f', | ||
}) | ||
memberId!: string; | ||
|
||
@ApiProperty({ | ||
description: '계정 생성일', | ||
example: '2024-01-01T00:00:00.000Z', | ||
}) | ||
createdAt!: Date; | ||
|
||
@ApiProperty({ | ||
description: '계정 수정일', | ||
example: '2024-01-01T00:00:00.000Z', | ||
}) | ||
updatedAt!: Date; | ||
|
||
@ApiProperty({ | ||
description: '이름', | ||
example: '홍길동', | ||
}) | ||
name!: string; | ||
|
||
@ApiProperty({ | ||
description: '학번', | ||
example: '20240001', | ||
}) | ||
studentId!: string; | ||
|
||
@ApiProperty({ | ||
description: '이메일', | ||
example: '[email protected]', | ||
}) | ||
email!: string; | ||
|
||
@ApiProperty({ | ||
description: '아이콘 URL', | ||
example: | ||
'https://kmu-wink.s3.ap-northeast-2.amazonaws.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee.jpeg', | ||
}) | ||
avatar!: string | null; | ||
|
||
@ApiProperty({ | ||
description: '자기소개', | ||
example: '안녕하세요', | ||
}) | ||
description!: string | null; | ||
|
||
@ApiProperty({ | ||
description: '링크', | ||
type: Object, | ||
description: '사용자', | ||
example: { | ||
github: 'https://github.com/hongildong', | ||
instagram: 'https://www.instagram.com/hongildong/', | ||
blog: 'https://hongildong.tistory.com/', | ||
_id: '60f6b5c3f5d0e7b2c2a3c2b0', | ||
createdAt: '2021-07-20T07:47:07.000Z', | ||
updatedAt: '2021-07-20T07:47:07.000Z', | ||
name: '홍길동', | ||
studentId: '20240001', | ||
email: '[email protected]', | ||
avatar: | ||
'https://kmu-wink.s3.ap-northeast-2.amazonaws.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee.jpeg', | ||
description: '안녕하세요', | ||
link: { | ||
github: 'https://github.com/hongildong', | ||
instagram: 'https://www.instagram.com/hongildong/', | ||
blog: 'https://hongildong.tistory.com/', | ||
}, | ||
role: 'MEMBER', | ||
fee: true, | ||
}, | ||
}) | ||
link!: MyInfoLinks; | ||
|
||
@ApiProperty({ | ||
description: '역할', | ||
enum: Role, | ||
example: Role.MEMBER, | ||
}) | ||
role!: Role | null; | ||
|
||
@ApiProperty({ | ||
description: '회비 납부 여부', | ||
example: true, | ||
}) | ||
fee!: boolean; | ||
member!: Member; | ||
} |
Oops, something went wrong.