-
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(member): 코틀린 마이그레이션 * refactor(status): 별도 패키지로 모듈화한다 - 이벤트 구조 사용 * feat(member): 회원 탈퇴 및 필요 절차들을 수행한다 * test(member): 회원 탈퇴 후 재가입할 수 있다 * feat(member.controller): 회원 탈퇴 API를 개방한다
- Loading branch information
Showing
49 changed files
with
888 additions
and
557 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
16 changes: 0 additions & 16 deletions
16
src/main/java/com/snackgame/server/applegame/event/GameEndEvent.java
This file was deleted.
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
18 changes: 18 additions & 0 deletions
18
src/main/java/com/snackgame/server/applegame/service/AppleGameSessionWithdrawal.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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.snackgame.server.applegame.service | ||
|
||
import com.snackgame.server.applegame.domain.game.AppleGames | ||
import com.snackgame.server.member.service.MemberWithdrawalOperation | ||
import org.springframework.stereotype.Component | ||
import org.springframework.transaction.annotation.Propagation | ||
import org.springframework.transaction.annotation.Transactional | ||
|
||
@Component | ||
class AppleGameSessionWithdrawal( | ||
private val appleGames: AppleGames | ||
) : MemberWithdrawalOperation { | ||
|
||
@Transactional(propagation = Propagation.MANDATORY) | ||
override fun executeOn(memberId: Long) { | ||
appleGames.deleteAllByOwnerId(memberId) | ||
} | ||
} |
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
18 changes: 18 additions & 0 deletions
18
...om/snackgame/server/game/snackgame.infinite/service/SnackgameInfiniteSessionWithdrawal.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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.snackgame.server.game.snackgame.infinite.service | ||
|
||
import com.snackgame.server.game.snackgame.domain.SnackgameInifiniteRepository | ||
import com.snackgame.server.member.service.MemberWithdrawalOperation | ||
import org.springframework.stereotype.Component | ||
import org.springframework.transaction.annotation.Propagation | ||
import org.springframework.transaction.annotation.Transactional | ||
|
||
@Component | ||
class SnackgameInfiniteSessionWithdrawal( | ||
private val snackgameInfiniteRepository: SnackgameInifiniteRepository | ||
) : MemberWithdrawalOperation { | ||
|
||
@Transactional(propagation = Propagation.MANDATORY) | ||
override fun executeOn(memberId: Long) { | ||
snackgameInfiniteRepository.deleteAllByOwnerId(memberId) | ||
} | ||
} |
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
18 changes: 18 additions & 0 deletions
18
src/main/java/com/snackgame/server/game/snackgame/service/SnackgameSessionWithdrawal.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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.snackgame.server.game.snackgame.service | ||
|
||
import com.snackgame.server.game.snackgame.domain.SnackgameRepository | ||
import com.snackgame.server.member.service.MemberWithdrawalOperation | ||
import org.springframework.stereotype.Component | ||
import org.springframework.transaction.annotation.Propagation | ||
import org.springframework.transaction.annotation.Transactional | ||
|
||
@Component | ||
class SnackgameSessionWithdrawal( | ||
private val snackgameRepository: SnackgameRepository | ||
) : MemberWithdrawalOperation { | ||
|
||
@Transactional(propagation = Propagation.MANDATORY) | ||
override fun executeOn(memberId: Long) { | ||
snackgameRepository.deleteAllByOwnerId(memberId) | ||
} | ||
} |
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
107 changes: 0 additions & 107 deletions
107
src/main/java/com/snackgame/server/member/controller/MemberController.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.