-
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.
- Loading branch information
Showing
10 changed files
with
197 additions
and
182 deletions.
There are no files selected for viewing
85 changes: 0 additions & 85 deletions
85
...erver/app/src/main/java/org/haedal/zzansuni/controller/challenge/ChallengeController.java
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...i-api-server/app/src/main/java/org/haedal/zzansuni/controller/challenge/ChallengeReq.java
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
...src/main/java/org/haedal/zzansuni/controller/challenge/interact/ChallengeInteractRes.java
This file was deleted.
Oops, something went wrong.
69 changes: 69 additions & 0 deletions
69
...src/main/java/org/haedal/zzansuni/controller/challengegroup/ChallengeGroupController.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,69 @@ | ||
package org.haedal.zzansuni.controller.challengegroup; | ||
|
||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import jakarta.validation.Valid; | ||
import lombok.RequiredArgsConstructor; | ||
import org.haedal.zzansuni.controller.PagingRequest; | ||
import org.haedal.zzansuni.controller.PagingResponse; | ||
import org.haedal.zzansuni.core.api.ApiResponse; | ||
import org.haedal.zzansuni.domain.challenge.ChallengeCategory; | ||
import org.haedal.zzansuni.global.jwt.JwtUser; | ||
import org.springframework.security.core.annotation.AuthenticationPrincipal; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.PathVariable; | ||
import org.springframework.web.bind.annotation.RequestParam; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
@Tag(name = "challengeGroups", description = "챌린지 그룹 관련 API") | ||
@RequiredArgsConstructor | ||
@RestController | ||
public class ChallengeGroupController { | ||
|
||
@Operation(summary = "챌린지 그룹 목록 페이징", description = "챌린지 그룹 페이징 조회.") | ||
@GetMapping("/api/challengeGroups") | ||
public ApiResponse<PagingResponse<ChallengeGroupRes.ChallengeGroupDto>> getChallengesPaging( | ||
@Valid PagingRequest pagingRequest, | ||
@RequestParam ChallengeCategory category | ||
) { | ||
throw new RuntimeException("Not implemented"); | ||
} | ||
|
||
@Operation(summary = "챌린지 그룹 상세 조회", description = "챌린지 상세 조회한다.") | ||
@GetMapping("/api/challengeGroups/{challengeGroupId}") | ||
public ApiResponse<ChallengeGroupRes.ChallengeGroupDetailDto> getChallengeDetail( | ||
@PathVariable Long challengeGroupId | ||
) { | ||
throw new RuntimeException("Not implemented"); | ||
} | ||
|
||
@Operation(summary = "챌린지 그룹 최근 리뷰 페이징", description = "챌린지 최근 리뷰 페이징 조회.") | ||
@GetMapping("/api/challengeGroups/reviews") | ||
public ApiResponse<PagingResponse<ChallengeGroupRes.ChallengeReviewDto>> getChallengeReviews( | ||
@Valid PagingRequest pagingRequest | ||
) { | ||
throw new RuntimeException("Not implemented"); | ||
} | ||
|
||
@Operation(summary = "챌린지 그룹 랭킹 조회", description = "챌린지 랭킹 조회한다.") | ||
@GetMapping("/api/challengeGroups/{challengeGroupId}/rankings") | ||
public ApiResponse<ChallengeGroupRes.ChallengeGroupRankingPagingResponse> getChallengeRankings( | ||
@AuthenticationPrincipal JwtUser jwtUser, | ||
@PathVariable Long challengeGroupId, | ||
@Valid PagingRequest pagingRequest | ||
) { | ||
throw new RuntimeException("Not implemented"); | ||
} | ||
|
||
//숏폼 조회 | ||
@Operation(summary = "챌린지 그룹 숏폼 페이징", description = "챌린지 숏폼 페이징 조회한다.") | ||
@GetMapping("/api/challengeGroups/shorts") | ||
public ApiResponse<PagingResponse<ChallengeGroupRes.ChallengeGroupDto>> getChallengeShortsPaging( | ||
@RequestParam Long page | ||
) { | ||
throw new RuntimeException("Not implemented"); | ||
} | ||
|
||
|
||
|
||
} |
5 changes: 5 additions & 0 deletions
5
...er/app/src/main/java/org/haedal/zzansuni/controller/challengegroup/ChallengeGroupReq.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,5 @@ | ||
package org.haedal.zzansuni.controller.challengegroup; | ||
|
||
public class ChallengeGroupReq { | ||
|
||
} |
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.