-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from Modagbul/feat/mission-closing
Feat/mission closing
- Loading branch information
Showing
52 changed files
with
921 additions
and
194 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
|
||
[[TeamScore-API]] | ||
= TeamScore API | ||
|
||
[[TeamScore-팀별-불-레벨-경험치-조회]] | ||
=== 팀별_불_레벨_경험치_조회 | ||
operation::team-score-controller-test/팀별_불_레벨_경험치_조회[snippets='http-request,path-parameters,request-fields,http-response,response-fields'] | ||
|
||
--- |
1 change: 0 additions & 1 deletion
1
src/main/java/com/moing/backend/domain/fire/domain/repository/FireCustomRepositoryImpl.java
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
5 changes: 5 additions & 0 deletions
5
src/main/java/com/moing/backend/domain/mission/application/dto/req/MissionReq.java
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: 3 additions & 0 deletions
3
...main/java/com/moing/backend/domain/mission/application/dto/res/SingleMissionBoardRes.java
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
4 changes: 4 additions & 0 deletions
4
...main/java/com/moing/backend/domain/mission/application/service/MissionCheckScheduler.java
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,4 @@ | ||
package com.moing.backend.domain.mission.application.service; | ||
|
||
public class MissionCheckScheduler { | ||
} |
47 changes: 47 additions & 0 deletions
47
.../java/com/moing/backend/domain/mission/application/service/MissionTerminationUseCase.java
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,47 @@ | ||
package com.moing.backend.domain.mission.application.service; | ||
|
||
import com.moing.backend.domain.member.domain.service.MemberGetService; | ||
import com.moing.backend.domain.mission.domain.entity.Mission; | ||
import com.moing.backend.domain.mission.domain.entity.constant.MissionStatus; | ||
import com.moing.backend.domain.mission.domain.service.MissionQueryService; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.stereotype.Service; | ||
import org.springframework.transaction.annotation.Transactional; | ||
|
||
import java.util.List; | ||
|
||
@Service | ||
@Transactional | ||
@RequiredArgsConstructor | ||
public class MissionTerminationUseCase { | ||
|
||
private final MemberGetService memberGetService; | ||
private final MissionQueryService missionQueryService; | ||
|
||
// 스케쥴러에서 호출 | ||
public void terminateMission() { | ||
|
||
List<Mission> missionByDueTo = missionQueryService.findMissionByDueTo(); | ||
|
||
missionByDueTo.stream().forEach( | ||
// 미션 종료 처리 | ||
mission -> mission.updateStatus(MissionStatus.END) | ||
|
||
); | ||
} | ||
|
||
// 미션 점수 반영 -> MissionState | ||
|
||
|
||
// MissionState 조회 해서 미션 점수 현황조회 | ||
|
||
public void getMissionScoreStatus() { | ||
|
||
} | ||
|
||
// 팀별 점수 반영 | ||
public void updateMissionScore() { | ||
|
||
} | ||
|
||
} |
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
12 changes: 12 additions & 0 deletions
12
src/main/java/com/moing/backend/domain/mission/exception/NotFoundEndMissionException.java
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,12 @@ | ||
package com.moing.backend.domain.mission.exception; | ||
|
||
import com.moing.backend.global.response.ErrorCode; | ||
import org.springframework.http.HttpStatus; | ||
|
||
public class NotFoundEndMissionException extends MissionException { | ||
|
||
public NotFoundEndMissionException() { | ||
super(ErrorCode.NOT_FOUND_MISSION, | ||
HttpStatus.NOT_FOUND); | ||
} | ||
} |
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
24 changes: 0 additions & 24 deletions
24
...m/moing/backend/domain/missionArchive/application/service/MissionArchiveScoreService.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.