-
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
26 changed files
with
596 additions
and
51 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
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/gongjakso/server/domain/apply/dto/CategoryRes.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.gongjakso.server.domain.apply.dto; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
import java.util.List; | ||
|
||
public record CategoryRes( | ||
List<String> category | ||
) { | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/java/com/gongjakso/server/domain/apply/dto/PeriodReq.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,6 @@ | ||
package com.gongjakso.server.domain.apply.dto; | ||
|
||
public record PeriodReq( | ||
int addDateNum | ||
) { | ||
} |
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
40 changes: 40 additions & 0 deletions
40
src/main/java/com/gongjakso/server/domain/banner/controller/BannerController.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,40 @@ | ||
package com.gongjakso.server.domain.banner.controller; | ||
|
||
import com.gongjakso.server.domain.banner.dto.response.BannerRes; | ||
import com.gongjakso.server.domain.banner.service.BannerService; | ||
import com.gongjakso.server.global.common.ApplicationResponse; | ||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
import java.util.List; | ||
|
||
@RestController | ||
@RequiredArgsConstructor | ||
@RequestMapping("/api/v1/banner") | ||
@Tag(name = "Banner", description = "메인 페이지, 공고 페이지 등의 배너 이미지 정보 반환 API") | ||
public class BannerController { | ||
|
||
private final BannerService bannerService; | ||
|
||
@Operation(description = "메인 페이지 공고 리스트 반환") | ||
@GetMapping("/main") | ||
public ApplicationResponse<List<BannerRes>> getMainImageList() { | ||
return ApplicationResponse.ok(bannerService.getMainImageList()); | ||
} | ||
|
||
@Operation(description = "프로젝트 공고 페이지 배너 리스트 반환") | ||
@GetMapping("/project") | ||
public ApplicationResponse<List<BannerRes>> getProjectImageList() { | ||
return ApplicationResponse.ok(bannerService.getProjectImageList()); | ||
} | ||
|
||
@Operation(description = "공모전 공고 페이지 배너 리스트 반환") | ||
@GetMapping("/content") | ||
public ApplicationResponse<List<BannerRes>> getContestImageList() { | ||
return ApplicationResponse.ok(bannerService.getContestImageList()); | ||
} | ||
} |
Oops, something went wrong.