-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: 북마크 여부 포함 경험 전체 조회 API 구현 #136
Merged
Merged
Changes from 24 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
f3118af
chore: 트랜잭션 추가 및 API 명세 누락 추가(#115)
whereami2048 15e6a7c
feat: 경험 id 리스트 조회 기능 구현(#115)
whereami2048 253c09b
feat: 북마크 조회 기능 구현(직무 공고, 상태 기준)(#115)
whereami2048 7f033e4
feat: 북마크한 경험 조회 APi 구현(#115)
whereami2048 e211d19
feat: JD id & 상태 별 북마크 조회 기능 구현(#115)
whereami2048 3709f5c
feat: 북마크 Boolean 상태 값 추가(#115)
whereami2048 20d0956
feat: 북마크 경험 전체 조회 API 구현(#115)
whereami2048 7671660
feat: 경험 검색 API 정의
whereami2048 e4759a6
feat: 북마크 경험 아이디로 조회 기능 정의(#115)
whereami2048 cd6bbdb
feat: 경험 검색 기능 정의(#115)
whereami2048 1437a15
feat: 태그 이름 검색 기능 구현(#115)
whereami2048 36734b1
feat: 역량 키워드 이름 검색 기능 구현(#115)
whereami2048 8e7c404
feat: 경험 제목 & 내용 검색 기능 구현체 추가 및 북마크 경험 id 배열 조회 기능 구현(#115)
whereami2048 1f1dc61
feat: 경험 검색 기능 API 구현(#115)
whereami2048 bd22466
feat: 북마크 경험 id 배열 조회 기능 구현(#115)
whereami2048 48858c8
Merge branch 'develop' into feat/flight-115
whereami2048 6b24765
feat: 북마크 상태 Boolean 값 제거(#115)
whereami2048 036e217
Merge branch 'feat/flight-115' of github.com:KUSITMS-29th-TEAM-B/Back…
whereami2048 96aafc9
chore: 깃 충돌 문제 해결(#115)
whereami2048 544058f
fix: 엔티티 오타 수정(#115)
whereami2048 f63d98e
fix: @Modifying 제거(#115)
whereami2048 7581227
fix: 하위 태그 관련 조회 연도 기준 활동 시작일로 변경(#115)
whereami2048 1ce8466
feat: 태그로 경험 조회 기능 구현(#115)
whereami2048 9f7c022
feat: 태그 삭제 시 관련 경험 삭제 로직 추가(#115)
whereami2048 8a4c29d
fix: @Modifying 누락 추가(#115)
whereami2048 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 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
3 changes: 2 additions & 1 deletion
3
.../bamyanggang/apimodule/domain/strongpoint/application/service/StrongPointDeleteService.kt
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
20 changes: 19 additions & 1 deletion
20
.../main/kotlin/com/bamyanggang/apimodule/domain/tag/application/service/TagDeleteService.kt
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,16 +1,34 @@ | ||
package com.bamyanggang.apimodule.domain.tag.application.service | ||
|
||
import com.bamyanggang.apimodule.common.getAuthenticationPrincipal | ||
import com.bamyanggang.domainmodule.domain.experience.service.ExperienceReader | ||
import com.bamyanggang.domainmodule.domain.experience.service.ExperienceRemover | ||
import com.bamyanggang.domainmodule.domain.tag.service.TagReader | ||
import com.bamyanggang.domainmodule.domain.tag.service.TagRemover | ||
import org.springframework.stereotype.Service | ||
import org.springframework.transaction.annotation.Transactional | ||
import java.util.* | ||
|
||
@Service | ||
class TagDeleteService( | ||
private val tagRemover: TagRemover | ||
private val tagRemover: TagRemover, | ||
private val tagReader: TagReader, | ||
private val experienceReader: ExperienceReader, | ||
private val experienceRemover: ExperienceRemover | ||
) { | ||
@Transactional | ||
fun deleteTag(tagId: UUID) { | ||
val deleteTag = tagReader.readById(tagId) | ||
|
||
if (deleteTag.parentTagId == null) { | ||
experienceReader.readByUserIdAndParentTagId(getAuthenticationPrincipal(), deleteTag.id) | ||
.forEach { experienceRemover.remove(it.id) } | ||
}else { | ||
experienceReader.readByChildTag(tagId).forEach { | ||
experienceRemover.remove(it.id) | ||
} | ||
} | ||
|
||
tagRemover.removeTag(tagId) | ||
} | ||
} |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요거는 추후에 이벤트로 처리해도 좋을 듯 합니당
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
서로 다른 애그리거트니까!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오 좋아요오~~