-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/organization #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
d801d2a
feat: article에 organizationId 추가
liveforpresent 8352e26
fix: 게시글 생성 시 organizationId 사용하도록 수정
liveforpresent abd70e2
feat: 게시글 수정 시 organizationId 사용하도록 수정
liveforpresent c5fccaf
fix: 게시글 삭제 시 roganizationId 사용하도록 수정
liveforpresent 28fcbe3
feat: organization 전용 article controller 생성 및 guard 사용
liveforpresent 74dc9b1
feat: Role type 구현
liveforpresent f1c14cd
fix: JwtPayload 범용성을 위해 userId -> sub으로 수정
liveforpresent 4a87809
fix: 토큰 발급 시 Role을 포함하도록 수정
liveforpresent c689d8d
fix: 유저 생성 이벤트 수정
liveforpresent aecd570
feat: organization decorator 구현 및 적용
liveforpresent 3b4388d
feat: role decorator 구현
liveforpresent 577a3f5
feat: role guard 구현
liveforpresent 85110ef
feat: organization role guard 적용
liveforpresent ef09a4c
feat: user role guard 적용
liveforpresent 6f247ac
feat: article 조회 모델 구현
liveforpresent 80e86ac
feat: organization article repository 구현
liveforpresent c4e6560
feat: 기관 전용 게시물 조회 구현
liveforpresent 2fece12
feat: 기관 전용 게시글 조회 api 구현
liveforpresent c40f474
docs: organization article swagger 문서 작성
liveforpresent 5048062
fix: 기관 게시글 목록 조회 시, 신청 시작/마감 일시 표시되도록 수정
liveforpresent 551fcbc
fix: copilot 리뷰 수정사항 반영
liveforpresent File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
17 changes: 17 additions & 0 deletions
17
src/article/command/application/create-article/create-article.command.ts
This file contains hidden or 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,17 @@ | ||
| import { ICommand } from '@nestjs/cqrs'; | ||
|
|
||
| export class CreateArticleCommand implements ICommand { | ||
| constructor( | ||
| public readonly organizationId: string, | ||
| public readonly title: string, | ||
| public readonly organization: string, | ||
| public readonly description: string, | ||
| public readonly location: string, | ||
| public readonly startAt: string, | ||
| public readonly endAt: string, | ||
| public readonly tags: string[], | ||
| public readonly registrationUrl?: string, | ||
| public readonly registrationStartAt?: string, | ||
| public readonly registrationEndAt?: string, | ||
| ) {} | ||
| } |
This file contains hidden or 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
8 changes: 8 additions & 0 deletions
8
src/article/command/application/delete-article/delete-article.comand.ts
This file contains hidden or 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,8 @@ | ||
| import { ICommand } from '@nestjs/cqrs'; | ||
|
|
||
| export class DeleteArticleCommand implements ICommand { | ||
| constructor( | ||
| public readonly id: string, | ||
| public readonly organizationId: string, | ||
| ) {} | ||
| } |
This file contains hidden or 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
18 changes: 18 additions & 0 deletions
18
src/article/command/application/update-article/update-article.command.ts
This file contains hidden or 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 { ICommand } from '@nestjs/cqrs'; | ||
|
|
||
| export class UpdateArticleCommand implements ICommand { | ||
| constructor( | ||
| public readonly id: string, | ||
| public readonly organizationId: string, | ||
| public readonly title?: string, | ||
| public readonly organization?: string, | ||
| public readonly description?: string, | ||
| public readonly location?: string, | ||
| public readonly startAt?: string, | ||
| public readonly endAt?: string, | ||
| public readonly tags?: string[], | ||
| public readonly registrationUrl?: string, | ||
| public readonly registrationStartAt?: string, | ||
| public readonly registrationEndAt?: string, | ||
| ) {} | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
File renamed without changes.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.