-
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 #39 from Modagbul/feat/mission_archive
feat : 미션 인증 좋아요, 미션 모아보기(단일,반복)
- Loading branch information
Showing
41 changed files
with
783 additions
and
200 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,16 @@ | ||
|
||
|
||
[[MissionGatherBoard-API]] | ||
= MissionBoard API | ||
|
||
[[MissionBoard-미션-모아보기-단일]] | ||
=== 미션_모아보기_단일_미션 | ||
operation::mission-gather-controller-test/미션_모아보기_단일_미션[snippets='http-request,path-parameters,request-fields,http-response,response-fields'] | ||
|
||
--- | ||
|
||
[[MissionBoard-미션-모아보기-반복]] | ||
=== 미션_모아보기_반복_미션 | ||
operation::mission-gather-controller-test/미션_모아보기_반복_미션[snippets='http-request,path-parameters,request-fields,http-response,response-fields'] | ||
|
||
--- |
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
...ain/java/com/moing/backend/domain/mission/application/dto/res/GatherRepeatMissionRes.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,18 @@ | ||
package com.moing.backend.domain.mission.application.dto.res; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@Builder | ||
@AllArgsConstructor | ||
public class GatherRepeatMissionRes { | ||
|
||
private Long missionId; | ||
private String teamName; | ||
private String missionTitle; | ||
private String totalNum; | ||
private String doneNum; | ||
|
||
} |
17 changes: 17 additions & 0 deletions
17
...ain/java/com/moing/backend/domain/mission/application/dto/res/GatherSingleMissionRes.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,17 @@ | ||
package com.moing.backend.domain.mission.application.dto.res; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@Builder | ||
@AllArgsConstructor | ||
public class GatherSingleMissionRes { | ||
private Long missionId; | ||
private String teamName; | ||
private String missionTitle; | ||
private String dueTo; | ||
|
||
|
||
} |
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
35 changes: 35 additions & 0 deletions
35
.../java/com/moing/backend/domain/mission/application/service/MissionGatherBoardUseCase.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,35 @@ | ||
package com.moing.backend.domain.mission.application.service; | ||
|
||
import com.moing.backend.domain.member.domain.entity.Member; | ||
import com.moing.backend.domain.member.domain.service.MemberGetService; | ||
import com.moing.backend.domain.mission.application.dto.res.GatherRepeatMissionRes; | ||
import com.moing.backend.domain.mission.application.dto.res.GatherSingleMissionRes; | ||
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 MissionGatherBoardUseCase { | ||
|
||
private final MissionQueryService missionQueryService; | ||
private final MemberGetService memberGetService; | ||
|
||
public List<GatherSingleMissionRes> getAllActiveSingleMissions(String userId) { | ||
Long memberId = memberGetService.getMemberBySocialId(userId).getMemberId(); | ||
return missionQueryService.findAllSingleMission(memberId); | ||
|
||
} | ||
public List<GatherRepeatMissionRes> getAllActiveRepeatMissions(String userId) { | ||
Long memberId = memberGetService.getMemberBySocialId(userId).getMemberId(); | ||
return missionQueryService.findAllRepeatMission(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
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
Oops, something went wrong.